axf:text-justify-trim
(Auszug aus "XSL-FO ― Die Referenz" von Manuel Montero Pineda & Steffen Herkert, 2016, dpunkt.verlag)
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
Category Trimming and Hanging
Specifies the way to trim in text justification. [CSS3-Text] Additional compression: The 'text-justify-trim' property
Value: | none | [ punctuation || punctuation-except-fullstop || punctuation-except-middledot || [ kana | ideograph ] || inter-word ] | auto |
Initial: | auto |
Applies to: | all block-level and inline-level formatting objects |
Inherited: | yes |
Percentages: | N/A |
Values have the following meanings.
none | Do not trim Japanese text. | |||||||||
punctuation | Trim text with parentheses, middle dots, and punctuations of full width in Japanese. | |||||||||
punctuation-except-fullstop | Behaves as the same as the punctuation value except for the following two characters.
| |||||||||
punctuation-except-middledot | Behaves as the same as the punctuation value except for the following middle dots.
| |||||||||
kana | Trim Hiragana and Katakana a bit. | |||||||||
ideograph | Trim spaces between Kanji or Kana. | |||||||||
inter-word | Trim spaces between Western words. | |||||||||
auto | Dependent on the system setting. This is the value specified by punctuation-trim and text-justify-mode in the Option Setting File. However, when axf:avoid-widow-words is "true", it is considered as "Ideograph inter-word" specified. |
Trim the spaces between characters as specified so that text fits into a line. When axf:punctuation-trim="all" is specified, there may be no more space to trim.
XSL-FO sample:
| <fo:root xml:lang="en" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:cpfo="http://www.compart.net/xmlns/cpfo" xmlns:svg="http://www.w3.org/2000/svg" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions"> | |
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| Antenna House, Inc. | |
| ||
| </fo:block> | |
| ||
| ||
| ||
| ||
| Example of trimming Japanese text | |
| </fo:block> | |
| </fo:block> | |
| ||
| Spesify whether text is trimmed or not. If none is specified to axf:text-justify-trim, text is not trimmed. Parentheses, middle dots, and punctuations of full width in Japanese are also trimmed. Hiragana and Katakana, spaces between Kanji or Kana, spaces between Western words can also be trimmed. | |
| </fo:block> | |
| ||
| ||
| none | |
| </fo:block> | |
| ||
| ||
| (あいうえお。かき・くけこ) | |
| </fo:block> | |
| ||
| ||
| punctuation | |
| </fo:block> | |
| ||
| ||
| (あいうえお。かき・くけこ) | |
| </fo:block> | |
| ||
| ||
| punctuation-except-fullstop | |
| </fo:block> | |
| <fo:block> | |
| Same as punctuation, but the two letters of U+3002 (。), U+FF0E (.) are excluded. | |
| </fo:block> | |
| ||
| ||
| (あいうえお。かき・くけこ) | |
| </fo:block> | |
| ||
| ||
| punctuation-except-middledot | |
| </fo:block> | |
| <fo:block> | |
| Same as punctuation, but middle dots of U+30FB (・), U+FF1A (:), U+FF1B (;) are excluded. | |
| </fo:block> | |
| ||
| ||
| (あいうえお。かき・くけこ) | |
| </fo:block> | |
| ||
| ||
| none | |
| </fo:block> | |
| ||
| ||
| Specify whether text is trimmed or not. | |
| </fo:block> | |
| ||
| ||
| kana, ideograph | |
| </fo:block> | |
| ||
| ||
| Specify whether text is trimmed or not. | |
| </fo:block> | |
| ||
| ||
| none | |
| </fo:block> | |
| ||
| ||
| Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam bibendum tincidunt pharetra. | |
| </fo:block> | |
| ||
| ||
| inter-word | |
| </fo:block> | |
| ||
| ||
| Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam bibendum tincidunt pharetra. | |
| </fo:block> | |
| ||
| </fo:block> | |
| </fo:flow> | |
| ||
| </fo:root> |
Output:
Tipp der data2type-Redaktion: Zum Thema XSL-FO bieten wir auch folgende Schulungen zur Vertiefung und professionellen Fortbildung an: |