Word Break Chart

Unicode Version: 7.0.0

Date: 2013-11-27, 09:54:53 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.

Table

OtherCRLFNewlineKatakanaALetterMidLetterMidNumMidNumLetNumericExtendNumLetRegional_IndicatorHebrew_LetterDouble_QuoteSingle_QuoteFormat_FEExtend_FE
Other÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷××
CR÷÷×÷÷÷÷÷÷÷÷÷÷÷÷÷÷
LF÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷
Newline÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷
Katakana÷÷÷÷×÷÷÷÷÷×÷÷÷÷××
ALetter÷÷÷÷÷×÷÷÷××÷×÷÷××
MidLetter÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷××
MidNum÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷××
MidNumLet÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷××
Numeric÷÷÷÷÷×÷÷÷××÷×÷÷××
ExtendNumLet÷÷÷÷××÷÷÷××÷×÷÷××
Regional_Indicator÷÷÷÷÷÷÷÷÷÷÷×÷÷÷××
Hebrew_Letter÷÷÷÷÷×÷÷÷××÷×÷×××
Double_Quote÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷××
Single_Quote÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷××
Format_FE÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷××
Extend_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÷÷÷÷÷÷÷÷÷×÷÷÷÷÷××

Rules

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:

  1. The rules are cast into a form that is more like regular expressions.
  2. The rules "sot ÷ or ×", "÷ eot", and "÷ Any" are added mechanically, and have artificial numbers.
  3. The rules are given decimal numbers, so rules such as 11a are given a number using tenths, such as 11.1.
  4. Any 'treat as' or 'ignore' rules are handled as discussed in the UAX, and thus reflected in a transformation of the rules usually not visible here. Where it does show up, an extra variable like CM* or FE* may appear, and the rule may be recast. In addition, final rules like "Any ÷ Any" may be recast as the equivalent expression "÷ Any".
  5. Where a rule has multiple parts (lines), each one is numbered using hundredths, such as 21.01) × BA, 21.02) × HY,... In some cases, the numbering and form of a rule is changed due to 'treat as' rules.

For the original rules, see the UAX.

0.2sot ÷
0.3÷ eot
3.0CR × LF
3.1(Newline | CR | LF) ÷
3.2÷ (Newline | CR | LF)
4.0[^ Newline CR LF ] × [Format Extend]
5.0(ALetter | Hebrew_Letter) × (ALetter | Hebrew_Letter)
6.0(ALetter | Hebrew_Letter) × (MidLetter | MidNumLet | Single_Quote) (ALetter | Hebrew_Letter)
7.0(ALetter | Hebrew_Letter) (MidLetter | MidNumLet | Single_Quote) × (ALetter | Hebrew_Letter)
7.1Hebrew_Letter × Single_Quote
7.2Hebrew_Letter × Double_Quote Hebrew_Letter
7.3Hebrew_Letter (Single_Quote | Double_Quote) × Hebrew_Letter
8.0Numeric × Numeric
9.0(ALetter | Hebrew_Letter) × Numeric
10.0Numeric × (ALetter | Hebrew_Letter)
11.0Numeric (MidNum | MidNumLet | Single_Quote) × Numeric
12.0Numeric × (MidNum | MidNumLet | Single_Quote) Numeric
13.0Katakana × Katakana
13.1(ALetter | Hebrew_Letter | Numeric | Katakana | ExtendNumLet) × ExtendNumLet
13.2ExtendNumLet × (ALetter | Hebrew_Letter | Numeric | Katakana)
13.3Regional_Indicator × Regional_Indicator
999.0÷ Any

Sample Strings

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   c  a  n  '  t  
2   c  a  n    t  
3   a  b    b  y  
4   a  $  -  3  4  ,  5  6  7  .  1  4  %  b  
5   3  a  
6     c    a    n    '    t      
7     c    a    n        t      
8     a    b        b    y      
9     a    $    -    3    4    ,    5    6    7    .    1    4    %    b      
10     3    a      
11   a  🇦  b  
12   🇷  🇺  
13   🇷  🇺  🇸  
14   🇷  🇺  🇸  🇪  
15   🇷  🇺    🇸  🇪  
16   🇦  🇧  🇨  
17   🇦    🇧  🇨  
18   🇦  🇧    🇨  
19        ن  
20   ن       

Access to Copyright and terms of use