axf:punctuation-spacing
(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
The axf:punctuation-spacing specifies the trimming spacing between a full width punctuation and a full width character in Japanese.
Value: | <length> | <percentage> | auto |
Initial: | auto |
Applies to: | all block-level and inline-level formatting objects |
Inherited: | yes |
Percentages: | refer to the font size |
The initial value of this space can be set by punctuation-spacing in the Option Setting File.
Values have the following meanings.
<length> | Specifies the amount of the trimming space with an absolute value. |
<percentage> | It's a relative setting to the font size when actually applied. |
auto | Dependent on the system setting. This is the value specified by punctuation-spacing in the Option Setting File. |
This space is used for the following space amount specified by axf:punctuation-trim="adjacent".
- Between full width close parenthesis and full width open parenthesis.
- Between full width close parenthesis and full width non punctuation characters.
- Between full width non punctuation character and full width open parenthesis.
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> | |
| ||
| ||
| ||
| ||
| Trimming the space between full-width punctuation and full-width character | |
| </fo:block> | |
| </fo:block> | |
| ||
| In Japanese, the space between punctuation and character in full-width can be specified by axf:punctuation-spacing. The specified space is applied between the full-width closing parenthesis and opening parenthesis, between the full-width closing parenthesis and full-width non-punctuation, between the full-width non-punctuation and full-width opening parenthesis when axf:punctuation-trim="adjacent" is specified. The value can be specified by the absolute or percentage. The default value of the space to trim can be specified by punctuation-spacing in the option setting file. The default value of punctuation-spacing is 50%. | |
| </fo:block> | |
| ||
| ||
| axf:punctuation-trim="adjacent" Without the setting of axf:punctuation-spacing | |
| </fo:block> | |
| ||
| ||
| (あい「うえお」「「かきく」けこ」) | |
| </fo:block> | |
| ||
| ||
| axf:punctuation-trim="adjacent" axf:punctuation-spacing="1em" | |
| </fo:block> | |
| ||
| ||
| (あい「うえお」「「かきく」けこ」) | |
| </fo:block> | |
| ||
| ||
| axf:punctuation-trim="adjacent" axf:punctuation-spacing="2em" | |
| </fo:block> | |
| ||
| ||
| (あい「うえお」「「かきく」けこ」) | |
| </fo:block> | |
| ||
| ||
| axf:punctuation-trim="adjacent" axf:punctuation-spacing="0%" | |
| </fo:block> | |
| ||
| ||
| (あい「うえお」「「かきく」けこ」) | |
| </fo:block> | |
| ||
| ||
| axf:punctuation-trim="adjacent" axf:punctuation-spacing="50%" | |
| </fo:block> | |
| ||
| ||
| (あい「うえお」「「かきく」けこ」) | |
| </fo:block> | |
| ||
| ||
| axf:punctuation-trim="adjacent" axf:punctuation-spacing="200%" | |
| </fo:block> | |
| ||
| ||
| (あい「うえお」「「かきく」けこ」) | |
| </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: |