axf:hyphenation-minimum-character-count
(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 Extension for Hyphenations
The axf:hyphenation-minimum-character-count specifies the minimum number of the character to hyphenate.
Value: | <number> |
Initial: | 1 |
Applies to: | fo:block, fo:character |
Inherited: | yes |
Percentages: | N/A |
The axf:hyphenation-minimum-character-count must be an integer number of 1 or more.
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> | |
| ||
| ||
| ||
| ||
| Specifying the character count and zone of the word to be hyphenated | |
| </fo:block> | |
| </fo:block> | |
| ||
| The minimum character count (integral value of 1 or more) of the word to be hyphenated can be specified by axf:hyphenation-minimum-character-count. The available range to be hyphenated can be controlled by axf:hyphenation-zone. With axf:hyphenation-zone, if the length from the end of a word to the end of line is less or equal to the specified value, the following word is not hyphenated. It is invalid when 0 or less value is specified. | |
| </fo:block> | |
| ||
| No setting of axf:hyphenation-minimum-character-count | |
| </fo:block> | |
| ||
| a sample sample sample sample sample sample sample sample | |
| ||
| hyphenation | |
| </fo:inline> | |
| sample sample sample sample | |
| </fo:block> | |
| ||
| axf:hyphenation-minimum-character-count="12" | |
| </fo:block> | |
| ||
| a sample sample sample sample sample sample sample sample | |
| ||
| hyphenation | |
| </fo:inline> | |
| sample sample sample sample | |
| </fo:block> | |
| ||
| axf:hyphenation-zone="none" | |
| </fo:block> | |
| ||
| a sample sample sample sample sample sample sample sample | |
| ||
| hyphenation | |
| </fo:inline> | |
| sample sample sample sample | |
| </fo:block> | |
| ||
| axf:hyphenation-zone="4em" | |
| </fo:block> | |
| ||
| a sample sample sample sample sample sample sample sample | |
| ||
| hyphenation | |
| </fo:inline> | |
| sample sample sample sample | |
| </fo:block> | |
| ||
| axf:hyphenation-zone="5em" | |
| </fo:block> | |
| ||
| a sample sample sample sample sample sample sample sample | |
| ||
| hyphenation | |
| </fo:inline> | |
| sample sample sample sample | |
| </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: |