axf:text-autospace
(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 Spacing and Alignment >> Adding Space
The axf:text-autospace specifies whether to add space surrounding ideographic glyphs or not. [CSS3-Text] Adding space: the ‘text-autospace’ property
Value: | none | [ ideograph-numeric || ideograph-alpha || ideograph-parenthesis ] | auto |
Initial: | auto |
Applies to: | all block-level and inline-level formatting objects |
Inherited: | yes |
Percentages: | N/A |
Values have the following meanings.
none | Space is not added. |
ideograph-numeric | Space is added between ideograph character and non-ideographic number character. Non-ideographic number character mentioned here indicates the character of Nd classified by Unicode and the non-full-width character. |
ideograph-alpha | Space is added between ideograph character and non-ideographic alphabet character. Non-ideographic alphabet character mentioned here indicates the character of Lu, Ll, Lt and Lm classified by Unicode. |
ideograph-parenthesis | Space is added between ideograph character and non-ideographic parenthesis character. However space is not added between ideograph character and non-ideographic closing parenthesis or between non-ideographic opening parenthesis and ideograph character. |
auto | Dependent on the system setting. It's regarded as "none" or "ideograph-numeric ideograph-alpha" according to the setting. |
The initial value of whether space is added or not can be set by text-autospace in the Option Setting File. It can also be set in the Format Option Setting Dialog in the GUI.
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> | |
| ||
| ||
| ||
| ||
| Space between Japanese and Western languages | |
| </fo:block> | |
| </fo:block> | |
| ||
| Here is a setting of automatically inserting a space between Japanese and Western languages. No space is entered when axf:text-autospace is specified as none. A space is entered between Kanji/Kana and European languages if ideograph-numeric is set. Likewise, a space is entered between Kanji/Kana and alphabets with ideograph-alpha, and between Kanji/Kana and Western language parenthesis with ideograph-prenthesis (however, a space will be entered outside the parenthesis only). A space between Japanese and Western languages can be specified with the value of axf:text-autospace-width. | |
| </fo:block> | |
| ||
| <fo:block> | |
| none | |
| </fo:block> | |
| ||
| ||
| 漢0漢X漢(漢)漢[漢]漢{漢}漢 | |
| </fo:block> | |
| ||
| <fo:block> | |
| ideograph-numeric + ideograph-alpha | |
| </fo:block> | |
| ||
| ||
| 漢0漢X漢(漢)漢[漢]漢{漢}漢 | |
| </fo:block> | |
| ||
| <fo:block> | |
| ideograph-parenthesis | |
| </fo:block> | |
| ||
| ||
| 漢0漢X漢(漢)漢[漢]漢{漢}漢 | |
| </fo:block> | |
| ||
| ||
| ideograph-numeric + ideograph-alpha + ideograph-parenthesis, axf:text-autospace-width="0.125em" | |
| </fo:block> | |
| ||
| ||
| 漢0漢X漢(漢)漢[漢]漢{漢}漢 | |
| </fo:block> | |
| ||
| <fo:block> | |
| ideograph-numeric + ideograph-alpha + ideograph-parenthesis, axf:text-autospace-width="0.25em" | |
| </fo:block> | |
| ||
| ||
| 漢0漢X漢(漢)漢[漢]漢{漢}漢 | |
| </fo:block> | |
| ||
| <fo:block> | |
| ideograph-numeric + ideograph-alpha + ideograph-parenthesis, axf:text-autospace-width="0.5em" | |
| </fo:block> | |
| ||
| ||
| 漢0漢X漢(漢)漢[漢]漢{漢}漢 | |
| </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: |