axf:hyphenation-zone

(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

axf:hyphenation-zone limits the range where a hyphenation is available.

Value:none | <length>
Initial:none
Applies to:fo:block
Inherited:yes
Percentages:N/A

Values have the following meanings.

noneNothing is limited in hyphenation.
<length>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.

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.

Specifying the character count and zone of the word to be hyphenated

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.

No setting of axf:hyphenation-minimum-character-count

a sample sample sample sample sample sample sample sample

hyphenation

sample sample sample sample

axf:hyphenation-minimum-character-count="12"

a sample sample sample sample sample sample sample sample

hyphenation

sample sample sample sample

axf:hyphenation-zone="none"

a sample sample sample sample sample sample sample sample

hyphenation

sample sample sample sample

axf:hyphenation-zone="4em"

a sample sample sample sample sample sample sample sample

hyphenation

sample sample sample sample

axf:hyphenation-zone="5em"

a sample sample sample sample sample sample sample sample

hyphenation

sample sample sample sample

Download der Beispiele

Output:

Tipp der data2type-Redaktion:
Zum Thema XSL-FO bieten wir auch folgende Schulungen zur Vertiefung und professionellen Fortbildung an: