Unicode Version: 9.0.0
Date: 2016-06-02, 18:28:31 GMT
This page illustrates the application of the boundary specification for Words. The material here is informative, not normative.
The first chart shows where breaks would appear between different sample characters or strings. The sample characters are chosen mechanically to represent the different properties used by the specification.
Each cell shows the break-status for the position between the character(s) in its row header and the character(s) in its column header. The × symbol indicates no break, while the ÷ symbol indicated a break. The cells with × are also shaded to make it easier to scan the table. For example, in the cell at the intersection of the row headed by 'CR' and the column headed by 'LF', there is a × symbol, indicating that there is no break between CR and LF.
After the heavy blue line in the table are additional rows, either with different sample characters or for sequences, such as "ALetter MidLetter" in WordBreak. Some column headers may be composed, reflecting 'treat as' or 'ignore' rules.
If your browser handles titles (tool tips), then hovering the mouse over the row header will show a sample character of that type. Hovering over a column header will show the sample character, plus its abbreviated general category and script. Hovering over the intersected cells shows the rule number that produces the break-status. For example, in GraphemeBreakTest, hovering over the cell at the intersection of LVT and T shows ×, with the rule 8.0. Checking below, the rule 8.0 is '( LVT | T) × T', which is the one that applies to that case. Note that a rule is invoked only when no lower-numbered rules have applied.
Other | CR | LF | Newline | Katakana | ALetter | MidLetter | MidNum | MidNumLet | Numeric | ExtendNumLet | RI | Hebrew_Letter | Double_Quote | Single_Quote | E_Base | E_Modifier | Glue_After_Zwj | EBG | Format_FE | Extend_FE | ZWJ_FE | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Other | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | × | × |
CR | ÷ | ÷ | × | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ |
LF | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ |
Newline | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ |
Katakana | ÷ | ÷ | ÷ | ÷ | × | ÷ | ÷ | ÷ | ÷ | ÷ | × | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | × | × |
ALetter | ÷ | ÷ | ÷ | ÷ | ÷ | × | ÷ | ÷ | ÷ | × | × | ÷ | × | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | × | × |
MidLetter | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | × | × |
MidNum | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | × | × |
MidNumLet | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | × | × |
Numeric | ÷ | ÷ | ÷ | ÷ | ÷ | × | ÷ | ÷ | ÷ | × | × | ÷ | × | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | × | × |
ExtendNumLet | ÷ | ÷ | ÷ | ÷ | × | × | ÷ | ÷ | ÷ | × | × | ÷ | × | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | × | × |
RI | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | × | × |
Hebrew_Letter | ÷ | ÷ | ÷ | ÷ | ÷ | × | ÷ | ÷ | ÷ | × | × | ÷ | × | ÷ | × | ÷ | ÷ | ÷ | ÷ | × | × | × |
Double_Quote | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | × | × |
Single_Quote | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | × | × |
E_Base | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | ÷ | ÷ | × | × | × |
E_Modifier | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | × | × |
Glue_After_Zwj | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | × | × |
EBG | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | ÷ | ÷ | × | × | × |
Format_FE | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | × | × |
Extend_FE | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | × | × |
ZWJ_FE | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | × | × | × | × |
ALetter Format_FE | ÷ | ÷ | ÷ | ÷ | ÷ | × | ÷ | ÷ | ÷ | × | × | ÷ | × | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | × | × |
ALetter MidLetter | ÷ | ÷ | ÷ | ÷ | ÷ | × | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | × | × |
ALetter Single_Quote | ÷ | ÷ | ÷ | ÷ | ÷ | × | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | × | × |
ALetter Single_Quote Format_FE | ÷ | ÷ | ÷ | ÷ | ÷ | × | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | × | × |
ALetter MidNum | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | × | × |
Numeric MidLetter | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | × | × |
Numeric Single_Quote | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | × | × |
Numeric MidNum | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | × | × |
Numeric MidNumLet Format_FE | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | ÷ | × | × | × |
This section shows the rules. They are mechanically modified for programmatic generation of the tables and test code, and thus do not match the UAX rules precisely. In particular:
For the original rules, see the UAX.
0.2 | sot | ÷ | |
---|---|---|---|
0.3 | ÷ | eot | |
3.0 | CR | × | LF |
3.1 | (Newline | CR | LF) | ÷ | |
3.2 | ÷ | (Newline | CR | LF) | |
3.3 | ZWJ | × | (Glue_After_Zwj | EBG) |
4.0 | [^ Newline CR LF ] | × | [Format Extend ZWJ] |
5.0 | AHLetter | × | AHLetter |
6.0 | AHLetter | × | (MidLetter | MidNumLetQ) AHLetter |
7.0 | AHLetter (MidLetter | MidNumLetQ) | × | AHLetter |
7.1 | Hebrew_Letter | × | Single_Quote |
7.2 | Hebrew_Letter | × | Double_Quote Hebrew_Letter |
7.3 | Hebrew_Letter Double_Quote | × | Hebrew_Letter |
8.0 | Numeric | × | Numeric |
9.0 | AHLetter | × | Numeric |
10.0 | Numeric | × | AHLetter |
11.0 | Numeric (MidNum | MidNumLetQ) | × | Numeric |
12.0 | Numeric | × | (MidNum | MidNumLetQ) Numeric |
13.0 | Katakana | × | Katakana |
13.1 | (AHLetter | Numeric | Katakana | ExtendNumLet) | × | ExtendNumLet |
13.2 | ExtendNumLet | × | (AHLetter | Numeric | Katakana) |
14.0 | (E_Base | EBG) | × | E_Modifier |
15.0 | ^ (RI RI)* RI | × | RI |
16.0 | [^RI] (RI RI)* RI | × | RI |
999.0 | ÷ | Any |
The following samples illustrate the application of the rules. The blue lines indicate possible break points. If your browser supports titles (tool-tips), then positioning the mouse over each character will show its name, while positioning between characters shows the rule number of the rule responsible for the break-status.
1 | □ □ a □ ◌̈ |
---|---|
2 | a ◌̈ |
3 | □ ن |
4 | ن □ |
5 | A A A |
6 | A : A |
7 | A : : A |
8 | א ' |
9 | א " א |
10 | A 0 0 A |
11 | 0 , 0 |
12 | 0 , , 0 |
13 | 〱 〱 |
14 | A _ 0 _ 〱 _ |
15 | A _ _ A |
16 | 🇦 🇧 🇨 b |
17 | a 🇦 🇧 🇨 b |
18 | a 🇦 🇧 □ 🇨 b |
19 | a 🇦 □ 🇧 🇨 b |
20 | a 🇦 🇧 🇨 🇩 b |
21 | ☝ 🏻 ☝ |
22 | 👦 🏻 |
23 | □ 👦 🏻 |
24 | □ ❤ |
25 | □ 👦 |
26 | 👦 👦 |
27 | a ◌̈ □ ◌̈ b |