Crate aspasia

source ·
Expand description

aspasia is a subtitle parsing library for Rust

Re-exports

Modules

  • MicroDVD (.sub) format subtitle implementations
  • Implementations for plain subtitles
  • SubRip (.srt) format subtitle implementations
  • SubStation (.ass / .ssa) format subtitle implementations
  • Types used for subtitle timing
  • WebVTT (.vtt) format subtitle implementations

Structs

  • Advanced SubStation Alpha v4+ (.ass) subtitle
  • Unmodified MicroDVD subtitle, with events timed in terms of frames.
  • Basic subtitle data containing only the textual content and start/end timing with no style or formatting information
  • SubStation Alpha v4 (.ssa) subtitle
  • SubRip (.srt) subtitle data, containing only a list of events.
  • Timed version of MicroDVD (.sub) subtitle, using user-supplied framerate to calculate timings
  • WebVTT (.vtt) subtitle data

Enums

  • Wrapper around errors that can potentially be produced by aspasia
  • Supported file formats
  • Convenience interface for interacting with time-based subtitle files in a generic manner.

Traits

Functions