axf:hyphenate-hyphenated-word
(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
Specifies whether to hyphenate the already hyphenated word or not.
Value: | true | false |
Initial: | true |
Applies to: | fo:block, fo:character |
Inherited: | yes |
Percentages: | N/A |
Values have the following meanings.
true | Hyphenates a word. |
false | Does not hyphenate a word. The line may break only at the hyphen position. |
The followings are recognized as hyphens.
U+002D | HYPHEN-MINUS |
U+00AD | SOFT HYPHEN |
U+2010 | HYPHEN |
U+2011 | NON-BREAKING HYPHEN |
This setting is invalid when hyphenate="false" 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. | |
| ||
| </fo:block> | |
| ||
| ||
| ||
| ||
| Writing dorection in vertical mode | |
| </fo:block> | |
| </fo:block> | |
| ||
| Here is an example of writing text in vertical mode for entire page by specifying writing-mode="tb-rl" to region body. | |
| </fo:block> | |
| ||
| ||
| 電子ファイルの形式としてのPDFを大雑把にいうと紙のページを電子的に表現したものである。 | |
| </fo:block> | |
| ||
| 人間が一枚の白紙の紙に鉛筆で文字を書いたり、線を引くときは、頭の中でどの位置に、どんな大きさで、どんな文字や絵を描こうかと考え、考えたとおりに手を動かして、文字と絵を書く。 | |
| </fo:block> | |
| ||
| これと同じようにPDF のファイルの中には、頭の中で考えた状態と同じような情報がプログラムへの「命令」として記述されている。 | |
| </fo:block> | |
| ||
| 即ち、PDFファイルには1 枚の紙の左上を原点にして、下方向と右方向に座標軸をとってできる平面を定義し、その平面のどこに、どんな大きさで、なんという文字を書くか、どんな太さで、どんな種類(直線、点線、…)の線を引くか、どんな画像をどこにどんな大きさで配置するか、といった命令が1ページ毎に記録されている。 | |
| </fo:block> | |
| </fo:block> | |
| </fo:flow> | |
| ||
| ||
| ||
| ||
| ||
| Antenna House, Inc. | |
| ||
| </fo:block> | |
| ||
| ||
| ||
| ||
| Writing direction in vertical mode "tb-rl" | |
| </fo:block> | |
| </fo:block> | |
| ||
| Here is an example of writing text in vertical mode partially within a page. | |
| </fo:block> | |
| ||
| <fo:block> | |
| 電子ファイルの形式としてのPDFを大雑把にいうと紙のページを電子的に表現したものである。 | |
| </fo:block> | |
| <fo:block> | |
| 人間が一枚の白紙の紙に鉛筆で文字を書いたり、線を引くときは、頭の中でどの位置に、どんな大きさで、どんな文字や絵を描こうかと考え、考えたとおりに手を動かして、文字と絵を書く。 | |
| </fo:block> | |
| <fo:block> | |
| これと同じようにPDF のファイルの中には、頭の中で考えた状態と同じような情報がプログラムへの「命令」として記述されている。 | |
| </fo:block> | |
| <fo:block> | |
| 即ち、PDFファイルには1 枚の紙の左上を原点にして、下方向と右方向に座標軸をとってできる平面を定義し、その平面のどこに、どんな大きさで、なんという文字を書くか、どんな太さで、どんな種類(直線、点線、…)の線を引くか、どんな画像をどこにどんな大きさで配置するか、といった命令が1ページ毎に記録されている。 | |
| </fo:block> | |
| ||
| ||
| As this example shows, it is possible to write a text whose writing mode is a mixture of vertical and horizontal. | |
| </fo:block> | |
| </fo:flow> | |
| ||
| </fo:root> |
Output:
page 2
Tipp der data2type-Redaktion: Zum Thema XSL-FO bieten wir auch folgende Schulungen zur Vertiefung und professionellen Fortbildung an: |