Crate aligned_media [] [src]

Aligned media and text format for language-learning software

This is a Rust implementation of the aligned media specification for language-learning software.

Modules

iso_short_code_serialization

Routines for serialzing and deserialzing optional ISO 639-1 and 639-3 codes, represented as isolang::Language. These are intended for use with serde_derive's with = argument.

Structs

Alignment

The smallest unit of alignment or synchronization. This might be a subtitle, a sentence, or perhaps multiple sentences if that's the best the aligning application can do.

FilePath

A portable, relative path in Unix notation. These are highly restricted to help prevent directory traversal attacks. Specifically, they:

Metadata

A single media file, typically an episode of a TV series, a film, an chapter of an audiobook. It might also be something more exotic, like a PDF of a graphic novel.

TimeSpan

A span of time, measured in floating-point seconds.

Track

An individual "track" of context. This might be a single subtitle in a single language, or a still image taken from a video

Enums

Error

Errors which can be returned by this crate.

TrackType

Different possible track types.

Type Definitions

ExtensionData

Custom extension data which hasn't been standardized. All custom fields must go in a block of this type, and should generally have names like myapp-attrname, where myapp is the application that uses them. This is a map with string keys and arbitrary JSON values.

Result

Type alias for results returned by our crate.