Subtitle formats: Difference between revisions

Jump to navigation Jump to search
m
→‎Format specifications: just improve the grammar
No edit summary
m (→‎Format specifications: just improve the grammar)
Line 447: Line 447:
Format specifications:  
Format specifications:  


A file consists of 4 or 5 parts, declared ala INI file (but it's not an INI !)
A file consists of 4 or 5 sections, declared ala INI file (but it's not an INI!)


The first, "[Script Info]" contains some information about the subtitle file, such as it's title, who created it, type of script and a very important one : "PlayResY". Be carefull of this value, everything in your script (font size, positioning) is scaled by it. Sub Station Alpha uses your desktops Y resolution to write this value, so if a friend with a large monitor and a high screen resolution gives you an edited script, you can mess everything up by saving the script in SSA with your low-cost monitor.
The first section, "[Script Info]" contains some information about the subtitle file, such as its title and author, the type of script and a very important field: "PlayResY". Be careful of this value, everything in your script (font size, positioning) is scaled by it. Sub Station Alpha uses your desktop's Y resolution to write this value, so if a friend with a large monitor and a high screen resolution gives you an edited script, you can mess everything up by saving the script in SSA with your low-cost monitor.


The second, "[V4 Styles]", is a list of style definitions. A style describe how will look a text on the screen. It defines font, font size, primary/.../outile colour, position, aligment etc ...
The second section, "[V4 Styles]", is a list of style definitions. A style describes how text will look on the screen. It defines the font, font size, primary/.../outile colour, position, alignment etc.


For example this :
For example:


<pre>Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, TertiaryColour, BackColour, Bold, Italic, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, AlphaLevel, Encoding
<pre>Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, TertiaryColour, BackColour, Bold, Italic, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, AlphaLevel, Encoding
Style: Wolf main,Wolf_Rain,56,15724527,15724527,15724527,4144959,0,0,1,1,2,2,5,5,30,0,0</pre>
Style: Wolf main,Wolf_Rain,56,15724527,15724527,15724527,4144959,0,0,1,1,2,2,5,5,30,0,0</pre>


The third, "[Events]", is the list of text you want to display at the right timing. You can specify some attribute here. Like the style to use for this event (must be defined in the list), the position of the text (Left, Right, Vertical Margin), an effect. Name is mostly used by translator to know who said this sentence. Timing is in h:mm:ss.cc (centisec).
The third section, "[Events]", is the list of text you want to display at the right time. You can specify some attributes here, like the style to use for each event (must be defined in the style list), the position of the text (Left, Right, Vertical Margin), and an effect. Name is mostly used by translator to know who said each sentence. Times are given as h:mm:ss.cc (centiseconds).


<pre>Format: Marked, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
<pre>Format: Marked, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Line 464: Line 464:
Dialogue: Marked=0,0:02:42.42,0:02:44.15,Wolf main,autre,0000,0000,0000,,Toujours rien.</pre>
Dialogue: Marked=0,0:02:42.42,0:02:44.15,Wolf main,autre,0000,0000,0000,,Toujours rien.</pre>


"[Pictures]" or "[Fonts]" part can be found in some SSA file, they contains UUE-encoded pictures/font but those features are only used by Sub Station Alpha, i.e. no filter (Vobsub/Avery Lee Subtiler filter) use them.
"[Pictures]" or "[Fonts]" part can be found in some SSA files. They contain UUE-encoded pictures/fonts, but those features are only used by Sub Station Alpha, i.e. no filter (Vobsub/Avery Lee Subtiler filter) uses them.


===Example===
===Example===
5

edits

Navigation menu

MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.