Sentence_Break Chart

Unicode Version: 16.0.0

Date: 2023-09-19, 18:50:40 GMT

This page illustrates the application of the Sentence_Break specification. 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.

Some column headers may be composed, reflecting “treat as” or “ignore” rules.

If your browser handles titles (tooltips), 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, hovering over the cell at the intersection of ATerm and Close shows ×, with the rule 9.0. Checking below the table, rule 9.0 is “SATerm Close* × ( Close | Sp | ParaSep )”, which is the one that applies to that case. Note that a rule is invoked only when no lower-numbered rules have applied.

Table

OtherCRLFSepSpLowerUpperOLetterNumericATermSTermCloseSContinueFormat_FEExtend_FE
Other×××××××××××××××
CR÷÷×÷÷÷÷÷÷÷÷÷÷÷÷
LF÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷
Sep÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷
Sp×××××××××××××××
Lower×××××××××××××××
Upper×××××××××××××××
OLetter×××××××××××××××
Numeric×××××××××××××××
ATerm÷×××××÷÷×××××××
STerm÷××××÷÷÷÷××××××
Close×××××××××××××××
SContinue×××××××××××××××
Format_FE×××××××××××××××
Extend_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 ÷”, “÷ eot”, and “÷ Any” are added mechanically, and have artificial numbers.
  3. The rules are given decimal numbers using tenths, and are written without prefix. For example, rule SB8a is given the number 8.1.
  4. Any “treat as” or “ignore” rules are handled as discussed in UAX #29, and thus reflected in a transformation of the rules usually not visible here. In addition, final rules like “Any ÷ Any” may be recast as the equivalent expression “÷ Any”.
  5. In some cases, the numbering and form of a rule is changed due to “treat as” rules.

For the original rules and the macro values they use, see UAX #29.

0.2sot ÷
0.3÷ eot
3.0CR × LF
4.0ParaSep ÷
5.0× [Format Extend]
6.0ATerm × Numeric
7.0(Upper | Lower) ATerm × Upper
8.0ATerm Close* Sp* × [^ OLetter Upper Lower Sep CR LF STerm ATerm]* Lower
8.1SATerm Close* Sp* × (SContinue | SATerm)
9.0SATerm Close* × ( Close | Sp | ParaSep )
10.0SATerm Close* Sp* × ( Sp | ParaSep )
11.0SATerm Close* Sp* ParaSep? ÷
998.0× Any
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 (tooltips), then positioning the mouse over each character will show its name, while positioning between characters shows the number of the rule responsible for the break-status.

1       a    ◌̈  
2   a  ◌̈  
3        ن  
4   ن       
5   (  "  G  o  .  "  )     (  H  e     d  i  d  .  )  
6   (    G  o  ?    )     (  H  e     d  i  d  .  )  
7   U  .  S  .  A  ◌̀  .     i  s  
8   U  .  S  .  A  ◌̀  ?     H  e  
9   U  .  S  .  A  ◌̀  .  
10   3  .  4  
11   c  .  d  
12   C  .  d  
13   c  .  D  
14   C  .  D  
15   e  t  c  .  )       t  h  e  
16   e  t  c  .  )       T  h  e  
17   e  t  c  .  )         (  t  h  e  
18   e  t  c  .  )         (  T  h  e  
19   e  t  c  .  )       ◌̈  t  h  e  
20   e  t  c  .  )       ◌̈  T  h  e  
21   e  t  c  .  )    ◌̈  T  h  e  
22   e  t  c  .  )    ◌̈  T  h  e  
23   t  h  e     r  e  s  p  .     l  e  a  d  e  r  s     a  r  e  
24     .    
25   e  t  c  .    
26   e  t  c  .    
27         
28   !        
29   a  .  
30   a  .      
31   a  .         
32   a  .      a  
33   A  .      A  
34     (    "    G    o    .    "    )         (    H    e         d    i    d    .    )      
35     (        G    o    ?        )         (    H    e         d    i    d    .    )      
36     U    .    S    .    A    ◌̀  .         i    s      
37     U    .    S    .    A    ◌̀  ?         H    e      
38     U    .    S    .    A    ◌̀  .      
39     3    .    4      
40     c    .    d      
41     C    .    d      
42     c    .    D      
43     C    .    D      
44     e    t    c    .    )             t    h    e      
45     e    t    c    .    )             T    h    e      
46     e    t    c    .    )                 (    t    h    e      
47     e    t    c    .    )                 (    T    h    e      
48     e    t    c    .    )             ◌̈  t    h    e      
49     e    t    c    .    )             ◌̈  T    h    e      
50     e    t    c    .    )        ◌̈  T    h    e      
51     e    t    c    .    )        ◌̈    T    h    e      
52     t    h    e         r    e    s    p    .         l    e    a    d    e    r    s         a    r    e      
53         .          
54     e    t    c    .          
55     e    t    c    .          
56                   
57     !                
58     a    .      
59     a    .            
60     a    .                 
61     a    .          a      
62     A    .          A      

Access to Copyright and terms of use