Subtitles Tool

85.2.18.2 Rules (sbt_rules.xml)

In case you want to use vertical subtitling, an XML file named sbt_rules.xml (needed to determine the alignment rule) must be created and saved in the local Etere path as described in the next procedure:

1.You must add 'rule' tags, a different tag for each rule under the root tag 'rules'. For example:
<rules>
<rule>...</rule>
<rule>...</rule>
<rule>...</rule>
</rules>

2.In the rule tag you may want to specify the following attributes:
- ccVpos         The vertical position
- mnr           The max num of rows
As tag value you may use a string that will be used as template, if the first character is a + sign then the string will be appended to the original template name

3.For example, in order to create the following templates in the CG, the below rules must apply:
Templates:                
- file name 777B (template specific to line 21) with monospace font 43 characters per column and the number of lines equal to 23
- file name 777C (template specific to line 22) with monospace font 43 characters per column and the number of lines equal to 23
Rules:
<rule ccVpos="22" mnr="23">+C</rule>
<rule ccVpos="21" mnr="23">+B</rule>
<rule>+A</rule>

4.Any other combinations will result in the use of template 777A. Other rule examples are:

Example 1:
<rule ccVpos="22" mnr="23">+2</rule>
This rule means that when a subititle vertical pos = 22 and max num of rows = 23 then STMAN adds the character 2 to the base template name

Example 2:
<rule ccVpos="22">MED</rule>
This rule means that when a subtitle vertical pos = 22, no matter of max num of rows, STMAN uses MED as template name.  Rules are processed from the first to the last until a match is found.  If no match is found STMAN uses the default template.

Example 3: (suppose you have the following rules and the default template name is "777")
<rule ccVpos="22" mnr="23">+A</rule>
<rule ccVpos="21" mnr="23">+A</rule>
<rule>DEF</rule>
In this case if vpos is 21 or 22 then the template that will be used is 777A, else the used template will be DEF.

Example 4: suppose you have the following rules and the scheduled template name is "777"
<rule ccVpos="22" mnr="23">+A</rule>
<rule ccVpos="21" mnr="23">+A</rule>
In this case if vpos is 21 or 22 then the template that will be used is 777A, else the used template will be 777.

5.Save the sbt_rules.xml file.
 
NB: If you do not intend to use vertical subtitling, just leave the default 777 template and the creation of this file will be be omitted.