XML technologies / XSL-FO / Reference / Antenna House Formatter XSL Extensions / Properties / line-break

(Excerpt from “XSL-FO ― The Reference” by 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 Line Breaking

The axf:line-break specifies the method of line breaking. [CSS3-Text] Breaking Rules for Punctuation: the ‘line-break’ property

Value:

normal | strict

Initial:

normal

Applies to:

all block-level and inline-level formatting objects

Inherited:

yes

Percentages:

N/A

Values have the following meanings.

normal

CJK Nonstarter characters (prolonged sound mark, small hiragana letters, small katakana letters, and iteration marks ) defined in JIS X 4051:2004 are not treated as Nonstarter characters. Characters marked with [NS] in the following list are processed.

strict

CJK Nonstarter character is treated. Characters marked with [NS] and [JIS] in the following list are processed.

The line breaking other than Nonstarter charcters in CJK complies with UAX#14: Line Breaking Properties. At this time, characters specified to the properties of axf:append-non-starter-characters, axf:except-non-starter-characters, axf:append-non-end-of-line-characters and axf:except-non-end-of-line-characters are included.

The CJK Nonstarter character is as follows. [NS] is classified into NS in LineBreak-5.0.0.txt. [JIS] is classified into the Nonstarter character in JIS X 4051:2004.

U+203C

DOUBLE EXCLAMATION MARK

‼

[NS]

U+203D

INTERROBANG

‽

[NS]

U+2047

DOUBLE QUESTION MARK

⁇

[NS]

U+2048

QUESTION EXCLAMATION MARK

⁈

[NS]

U+2049

EXCLAMATION QUESTION MARK

⁉

[NS]

U+3005

IDEOGRAPHIC ITERATION MARK

々

[NS]

[JIS]

U+301C

WAVE DASH

〜

[NS]

U+303B

VERTICAL IDEOGRAPHIC ITERATION MARK

〻

[NS]

[JIS]

U+303C

MASU MARK

〼

[NS]

U+3041

HIRAGANA LETTER SMALL A

ぁ

[JIS]

U+3043

HIRAGANA LETTER SMALL I

ぃ

[JIS]

U+3045

HIRAGANA LETTER SMALL U

ぅ

[JIS]

U+3047

HIRAGANA LETTER SMALL E

ぇ

[JIS]

U+3049

HIRAGANA LETTER SMALL O

ぉ

[JIS]

U+3063

HIRAGANA LETTER SMALL TU

っ

[JIS]

U+3083

HIRAGANA LETTER SMALL YA

ゃ

[JIS]

U+3085

HIRAGANA LETTER SMALL YU

ゅ

[JIS]

U+3087

HIRAGANA LETTER SMALL YO

ょ

[JIS]

U+308E

HIRAGANA LETTER SMALL WA

ゎ

[JIS]

U+3095

HIRAGANA LETTER SMALL KA

ゕ

[JIS]

U+3096

HIRAGANA LETTER SMALL KE

ゖ

[JIS]

U+309B

KATAKANA-HIRAGANA VOICED SOUND MARK

゛

[NS]

U+309C

KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK

゜

[NS]

U+309D

HIRAGANA ITERATION MARK

ゝ

[NS]

[JIS]

U+309E

HIRAGANA VOICED ITERATION MARK

ゞ

[NS]

[JIS]

U+30A0

KATAKANA-HIRAGANA DOUBLE HYPHEN

゠

[NS]

U+30A1

KATAKANA LETTER SMALL A

ァ

[JIS]

U+30A3

KATAKANA LETTER SMALL I

ィ

[JIS]

U+30A5

KATAKANA LETTER SMALL U

ゥ

[JIS]

U+30A7

KATAKANA LETTER SMALL E

ェ

[JIS]

U+30A9

KATAKANA LETTER SMALL O

ォ

[JIS]

U+30C3

KATAKANA LETTER SMALL TU

ッ

[JIS]

U+30E3

KATAKANA LETTER SMALL YA

ャ

[JIS]

U+30E5

KATAKANA LETTER SMALL YU

ュ

[JIS]

U+30E7

KATAKANA LETTER SMALL YO

ョ

[JIS]

U+30EE

KATAKANA LETTER SMALL WA

ヮ

[JIS]

U+30F5

KATAKANA LETTER SMALL KA

ヵ

[JIS]

U+30F6

KATAKANA LETTER SMALL KE

ヶ

[JIS]

U+30FB

KATAKANA MIDDLE DOT

・

[NS]

U+30FC

KATAKANA-HIRAGANA PROLONGED SOUND MARK

ー

[JIS]

U+30FD

KATAKANA ITERATION MARK

ヽ

[NS]

[JIS]

U+30FE

KATAKANA VOICED ITERATION MARK

ヾ

[NS]

[JIS]

U+31F0

KATAKANA LETTER SMALL KU

ㇰ

[JIS]

U+31F1

KATAKANA LETTER SMALL SI

ㇱ

[JIS]

U+31F2

KATAKANA LETTER SMALL SU

ㇲ

[JIS]

U+31F3

KATAKANA LETTER SMALL TO

ㇳ

[JIS]

U+31F4

KATAKANA LETTER SMALL NU

ㇴ

[JIS]

U+31F5

KATAKANA LETTER SMALL HA

ㇵ

[JIS]

U+31F6

KATAKANA LETTER SMALL HI

ㇶ

[JIS]

U+31F7

KATAKANA LETTER SMALL HU

ㇷ

[JIS]

U+31F8

KATAKANA LETTER SMALL HE

ㇸ

[JIS]

U+31F9

KATAKANA LETTER SMALL HO

ㇹ

[JIS]

U+31FA

KATAKANA LETTER SMALL MU

ㇺ

[JIS]

U+31FB

KATAKANA LETTER SMALL RA

ㇻ

[JIS]

U+31FC

KATAKANA LETTER SMALL RI

ㇼ

[JIS]

U+31FD

KATAKANA LETTER SMALL RU

ㇽ

[JIS]

U+31FE

KATAKANA LETTER SMALL RE

ㇾ

[JIS]

U+31FF

KATAKANA LETTER SMALL RO

ㇿ

[JIS]

U+FE54

SMALL SEMICOLON

﹔

[NS]

U+FE55

SMALL COLON

﹕

[NS]

U+FF1A

FULLWIDTH COLON

:

[NS]

U+FF1B

FULLWIDTH SEMICOLON

;

[NS]

U+FF65

HALFWIDTH KATAKANA MIDDLE DOT

・

[NS]

U+FF67

HALFWIDTH KATAKANA LETTER SMALL A

ァ

[JIS]

U+FF68

HALFWIDTH KATAKANA LETTER SMALL I

ィ

[JIS]

U+FF69

HALFWIDTH KATAKANA LETTER SMALL U

ゥ

[JIS]

U+FF6A

HALFWIDTH KATAKANA LETTER SMALL E

ェ

[JIS]

U+FF6B

HALFWIDTH KATAKANA LETTER SMALL O

ォ

[JIS]

U+FF6C

HALFWIDTH KATAKANA LETTER SMALL YA

ャ

[JIS]

U+FF6D

HALFWIDTH KATAKANA LETTER SMALL YU

ュ

[JIS]

U+FF6E

HALFWIDTH KATAKANA LETTER SMALL YO

ョ

[JIS]

U+FF6F

HALFWIDTH KATAKANA LETTER SMALL TU

ッ

[JIS]

U+FF70

HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK

ー

[JIS]

U+FF9E

HALFWIDTH KATAKANA VOICED SOUND MARK

゙

[NS]

U+FF9F

HALFWIDTH KATAKANA SEMI-VOICED SOUND MARK

゚

[NS]

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">
<axf:document-info name="document-title" value="Non-starter
                                                Japanese character"/>
<axf:document-info name="author" value="Antenna House,
                                                Inc."/>
<fo:layout-master-set>
<fo:simple-page-master page-height="297mm" page-width="210mm" margin-top="10mm" margin-left="20mm" margin-right="20mm" margin-bottom="10mm" master-name="PageMaster1">
<fo:region-after extent="7mm"/>
<fo:region-body margin-top="0mm" margin-left="0mm" margin-right="0mm" margin-bottom="10mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="PageMaster1">
<fo:static-content flow-name="xsl-region-after">
<fo:block font-size="0.8em" text-align="right" color="green">
<fo:basic-link external-destination="http://www.antennahouse.com/">
Antenna House, Inc.
</fo:basic-link>
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body" font-family="serif" font-size="1em" line-height="1.4" axf:hyphenate-hyphenated-word="false" hyphenate="true">
<fo:block span="all" font-family="sans-serif" font-size="2em" font-weight="bold" line-height="2" space-before="1em" space-after="1em" space-before.conditionality="retain" space-after.conditionality="retain" background-color="#EEEEEE">
<fo:block start-indent="1em" end-indent="1em">
Non-starter Japanese character
</fo:block>
</fo:block>
<fo:block span="all" space-before="1em" space-after="1em" space-after.conditionality="retain" text-indent="0em" border="1pt solid
                                        #9999FF" start-indent="0.5em" end-indent="0.5em" padding="0.5em" text-align="justify">
Specifies whether to apply the non-starter processing to
                                non-starter Japanese characters under JIS X 4051:2004. The
                                non-starter processing is not applied when axf:line-break is
                                specified as normal (a type of mild prohibition). The non-starter
                                processing is applied when specified as strict (strict prohibition).
                                As neither ending parenthesis, periods, and mid points are
                                non-starter Japanese characters, they are targets of non-starter
                                processing in either case of normal or strict setting.
</fo:block>
<fo:block text-align="justify">
<fo:block>
normal
</fo:block>
<fo:block-container font-size="1.5em" width="5em" axf:line-break="normal">
<fo:block background="orange" margin="0.25em
                                    0">
<fo:block>
あいうえおっかき
</fo:block>
</fo:block>
<fo:block background="orange" margin="0.25em
                                    0">
<fo:block>
あいうえお々かき
</fo:block>
</fo:block>
<fo:block background="orange" margin="0.25em
                                    0">
<fo:block>
あいうえおーかき
</fo:block>
</fo:block>
<fo:block background="orange" margin="0.25em
                                    0">
<fo:block>
あいうえお:かき
</fo:block>
</fo:block>
<fo:block background="orange" margin="0.25em
                                    0">
<fo:block>
あいうえお〜かき
</fo:block>
</fo:block>
<fo:block background="orange" margin="0.25em
                                    0">
<fo:block>
あいうえお」かき
</fo:block>
</fo:block>
</fo:block-container>
<fo:block>
strict
</fo:block>
<fo:block-container font-size="1.5em" width="5em" axf:line-break="strict">
<fo:block background="orange" margin="0.25em
                                    0">
<fo:block>
あいうえおっかき
</fo:block>
</fo:block>
<fo:block background="orange" margin="0.25em
                                    0">
<fo:block>
あいうえお々かき
</fo:block>
</fo:block>
<fo:block background="orange" margin="0.25em
                                    0">
<fo:block>
あいうえおーかき
</fo:block>
</fo:block>
<fo:block background="orange" margin="0.25em
                                    0">
<fo:block>
あいうえお:かき
</fo:block>
</fo:block>
<fo:block background="orange" margin="0.25em
                                    0">
<fo:block>
あいうえお〜かき
</fo:block>
</fo:block>
<fo:block background="orange" margin="0.25em
                                    0">
<fo:block>
あいうえお」かき
</fo:block>
</fo:block>
</fo:block-container>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>

Download examples

Output:

back to top