pub struct SSAInfo {Show 16 fields
pub title: Option<String>,
pub original_script: Option<String>,
pub original_translation: Option<String>,
pub original_editing: Option<String>,
pub original_timing: Option<String>,
pub synch_point: Option<String>,
pub script_update_by: Option<String>,
pub update_details: Option<String>,
pub script_type: Option<String>,
pub collisions: Option<String>,
pub play_res_y: Option<u32>,
pub play_res_x: Option<u32>,
pub play_depth: Option<u32>,
pub timer: Option<f32>,
pub wrap_style: Option<u8>,
pub additional_fields: HashMap<String, String>,
}
Expand description
SSAInfo contains headers and general information about the script.
Fields§
§title: Option<String>
Description of the script.
original_script: Option<String>
Original author(s) of the script.
original_translation: Option<String>
Original translator of the dialogue.
original_editing: Option<String>
Original script editor(s).
original_timing: Option<String>
Whoever timed the original script
synch_point: Option<String>
Description of where in the video the script should begin playback.
script_update_by: Option<String>
Names of any other subtitling groups who edited the original script.
update_details: Option<String>
The details of any updates to the original script - made by other subtitling groups
script_type: Option<String>
The SSA script format version.
collisions: Option<String>
Determines how subtitles are moved, when automatically preventing onscreen collisions. Allowed values:
Normal
: SSA will attempt to position subtitles in the position specified by the “margins”. However, subtitles can be shifted vertically to prevent onscreen collisions. With “normal” collision prevention, the subtitles will “stack up” one above the other - but they will always be positioned as close the vertical (bottom) margin as possible - filling in “gaps” in other subtitles if one large enough is available.Reverse
: Subtitles will be shifted upwards to make room for subsequent overlapping subtitles. This means the subtitles can nearly always be read top-down - but it also means that the first subtitle can appear halfway up the screen before the subsequent overlapping subtitles appear. It can use a lot of screen area.
play_res_y: Option<u32>
The height of the screen used by the script’s author(s) when playing the script.
play_res_x: Option<u32>
The width of the screen used by the script’s author(s) when playing the script.
play_depth: Option<u32>
The color depth used by the script’s author(s) when playing the script.
timer: Option<f32>
The Timer Speed for the script, as percentage. So 100
== 100%
.
wrap_style: Option<u8>
Defines the default wrapping style. Allowed values are:
0
: smart wrapping, lines are evenly broken1
: end-of-line word wrapping, only \N breaks2
: no word wrapping, \n \N both breaks3
: same as 0, but lower line gets wider
additional_fields: HashMap<String, String>
Additional fields that aren’t covered by the ASS spec.