Macro Language Reference > PIs > Text > <?rta>
  
<?rta>
Description
This command is similar in use to the <?rt> command, except that it can be used when nested levels of ruby annotation are to be applied to the base text. The text size of the ruby annotation is halved by 50% on each nested level.
 
Example 506. Set ruby annotation with text after base text
Below is an example of a ruby annotation with text specified after the base text. In this case, the base text is 'B1B2B3B4' and the ruby annotation after the base text is 'Spanning Text'.
<?ruby=1>B1B2B3B4<?rta=1>Spanning Text<?rta=0><?ruby=0>
This example will produce the following result:
 
Example 507. Set nested levels of ruby annotation after base text
This syntax will produce nested levels of ruby annotations after the base text, with the text size reduced by 50% on each nested level:
<?ruby=1>Base<?rta=1><?ruby=1>After x 1<?rta=1><?ruby=1>
After x 2<?ruby><?ruby><?ruby>
This code will produce the following result:
 
Example 508. Span text under four different pieces of base text in ruby annotation
<?ruby=1><?rb=1>B1<?rb=1>B2<?rb=1>B3<?rb=1>B4<?rta 4>
Spanning Text<?ruby>
This code will be displayed as:
 
Note that it is the <?rta 4> command that makes the text after the base text span across the different base texts.
Syntax
<?rt on off:o?>
<?rt>
[no parameter]
The end of ruby text after the base text
on off
1
Introduces ruby text after the base text
0
The end of ruby text after the base text
Additional Information
There are several positions where the ruby text can appear relative to its base text. Because East Asian text may be rendered vertically as well as horizontally, the terms 'before' and 'after' are used rather than 'above' and 'below' or 'right side' and 'left side'. The words 'before' and 'after' should be understood as 'before'/'after' the line containing the base text.
Sometimes more than one ruby text is associated with the same base text. A typical example is to indicate both meaning as well as reading for the same base text. In such cases, ruby texts may appear on both sides of the base text. Ruby text before the base text is often used to indicate reading; ruby text after the base text is often used to indicate meaning.
Related Links