(Auszug aus "XSL-FO ― Die Referenz" von Manuel Montero Pineda & Steffen Herkert, 2016, dpunkt.verlag)
Category Character and Text Decoration
Sets horizontal-in-vertical composition in vertical writing mode automatically. [CSS3-WritingModes] Horizontal-in-Vertical Composition: the ‘text-combine-horizontal’ property[no-LT]
|Value:||none | all | [ digits <integer> || alpha <integer> || alphanumeric <integer> ]|
|Applies to:||all block-level and inline-level formatting objects|
Values have the following meanings.
|none||Does not set horizontal-in-vertical composition.|
|all||The whole inline element which consists of only text is set to horizontal-in-vertical composition.|
|digits||A sequence of consecutive numbers (0-9) that are less than or equal to the digit number specified by <integer> is set to horizontal-in-vertical composition.|
|alpha||A sequence of consecutive alphabetic characters (A-Z, a-z) that are less than or equal to the digit number specified by <integer> is set to horizontal-in-vertical composition.|
|alphanumeric||A sequence of consecutive alphanumeric characters (0-9, A-Z, a-z) that are less than or equal to the digit number specified by <integer> is set to horizontal-in-vertical composition.|
Usually, horizontal-in-vertical composition will be marked up as follows: The automatic horizontal-in-vertical composition saves time and effort for this.
<fo:inline-container writing-mode="lr-tb" line-height="1" text-align="center" text-indent="0pt" start-indent="0pt" end-indent="0pt" padding="0pt" wrap-option="no-wrap"> <fo:block>12</fo:block> </fo:inline-container>
axf:text-combine-horizontal is applied before axf:text-orientation or text-transform, etc. The removable white space placed before and after the character string targeted for horizontal-in-vertical composition will be removed.
When digits is specified to axf:text-combine-horizontal and axf:text-orientation="upright" is also specified, the following behaviors are applied to the sequence of numbers targeted for horizontal-in-vertical composition that are shorter than <integer>, that has adjacent decimal point.
- U+002E and U+FF65 are regarded as decimal points.
- A sequence of numbers targeted for horizontal-in-vertical composition after the decimal point will not be set to horizontal-in-vertical composition. However, the decimal point will be transferred to U+FF65.
- When the decimal point comes after a sequence of numbers targeted for horizontal-in-vertical composition, the sequence of numbers will be set to horizontal-in-vertical composition. The decimal point will be transferred to U+FF65.
The figure on the right shows the example of the horizontal-in-vertical composition set to "12.34" automatically.
<fo:block axf:text-combine-horizontal="digits 2" axf:text-orientation="upright" >12.34</fo:block>
Furthermore, with the combination of text-transform, you can set two or more characters in non full-width, change others in full-width in horizontal-in-vertical composition.
<fo:block axf:text-combine-horizontal="digits 2" axf:text-orientation="upright" text-transform="full-width" >平成25年4月16日</fo:block>
|CAUTION:||Automatic horizontal-in-vertical composition is not recommended to use in any other way than axf:text-orientation="upright".|
Automatic horizontal-in-vertical composition is invalid in the following cases. Emphasis marks in horizontal-in-vertical composition will be deleted.
- In horizontal writing mode (includes the case where the value for axf:text-orientation is sideways in horizontal-in-vertical composition)
- When languages other than CJK are specified
- Within ruby
- Character strings generated dynamically, such as lt;fo:page-number>
This property is not available with AH Formatter V6.3 Lite.