1<?xml version="1.0" encoding="UTF-8" ?> 2<!DOCTYPE ldml SYSTEM "../../common/dtd/ldml.dtd"> 3<!-- 4Copyright © 1991-2015 Unicode, Inc. 5CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/) 6For terms of use, see http://www.unicode.org/copyright.html 7--> 8<ldml> 9 <identity> 10 <version number="$Revision$"/> 11 <language type="root"/> 12 </identity> 13 <segmentations> 14 <segmentation type="GraphemeClusterBreak"> 15 <variables> 16 <!-- VARIABLES --> 17 <variable id="$CR">\p{Grapheme_Cluster_Break=CR}</variable> 18 <variable id="$LF">\p{Grapheme_Cluster_Break=LF}</variable> 19 <variable id="$Control">\p{Grapheme_Cluster_Break=Control}</variable> 20 <variable id="$Extend">\p{Grapheme_Cluster_Break=Extend}</variable> 21 <variable id="$ZWJ">\p{Grapheme_Cluster_Break=ZWJ}</variable> 22 <variable id="$RI">\p{Grapheme_Cluster_Break=Regional_Indicator}</variable> 23 <variable id="$Prepend">\p{Grapheme_Cluster_Break=Prepend}</variable> 24 <variable id="$SpacingMark">\p{Grapheme_Cluster_Break=SpacingMark}</variable> 25 <variable id="$L">\p{Grapheme_Cluster_Break=L}</variable> 26 <variable id="$V">\p{Grapheme_Cluster_Break=V}</variable> 27 <variable id="$T">\p{Grapheme_Cluster_Break=T}</variable> 28 <variable id="$LV">\p{Grapheme_Cluster_Break=LV}</variable> 29 <variable id="$LVT">\p{Grapheme_Cluster_Break=LVT}</variable> 30 <!-- Note: The following may overlap with the above --> 31 <variable id="$Virama">[\p{Gujr}\p{sc=Telu}\p{sc=Mlym}\p{sc=Orya}\p{sc=Beng}\p{sc=Deva}&\p{Indic_Syllabic_Category=Virama}]</variable> 32 <variable id="$LinkingConsonant">[\p{Gujr}\p{sc=Telu}\p{sc=Mlym}\p{sc=Orya}\p{sc=Beng}\p{sc=Deva}&\p{Indic_Syllabic_Category=Consonant}]</variable> 33 <variable id="$ExtPict">\p{Extended_Pictographic}</variable> 34 <variable id="$ExtCccZwj">[[$Extend-\p{ccc=0}] $ZWJ]</variable> 35 </variables> 36 <segmentRules> 37 <!-- RULES --> 38 <!-- Break at the start and end of text, unless the text is empty. --> 39 <!-- Do not break between a CR and LF. Otherwise, break before and after controls. --> 40 <rule id="3"> $CR × $LF </rule> 41 <rule id="4"> ( $Control | $CR | $LF ) ÷ </rule> 42 <rule id="5"> ÷ ( $Control | $CR | $LF ) </rule> 43 <!-- Do not break Hangul syllable sequences. --> 44 <rule id="6"> $L × ( $L | $V | $LV | $LVT ) </rule> 45 <rule id="7"> ( $LV | $V ) × ( $V | $T ) </rule> 46 <rule id="8"> ( $LVT | $T) × $T </rule> 47 <rule id="9"> × ($Extend | $ZWJ) </rule> 48 <!-- Only for extended grapheme clusters: Do not break before SpacingMarks, or after Prepend characters. --> 49 <rule id="9.1"> × $SpacingMark </rule> 50 <rule id="9.2"> $Prepend × </rule> 51 <rule id="9.3"> $LinkingConsonant $ExtCccZwj* $Virama $ExtCccZwj* × $LinkingConsonant </rule> 52 <!-- Do not break within emoji zwj sequences. --> 53 <rule id="11"> $ExtPict $Extend* $ZWJ × $ExtPict </rule> 54 <!-- Do not break within emoji flag sequences. That is, do not break between regional indicator (RI) symbols if there is an odd number of RI characters before the break point. --> 55 <rule id="12"> ^ ($RI $RI)* $RI × $RI </rule> 56 <rule id="13"> [^$RI] ($RI $RI)* $RI × $RI </rule> 57 <!-- Otherwise, break everywhere. --> 58 </segmentRules> 59 </segmentation> 60 <segmentation type="LineBreak"> 61 <variables> 62 <!-- VARIABLES --> 63 <variable id="$AI">\p{Line_Break=Ambiguous}</variable> 64 <variable id="$AL">\p{Line_Break=Alphabetic}</variable> 65 <variable id="$B2">\p{Line_Break=Break_Both}</variable> 66 <variable id="$BA">\p{Line_Break=Break_After}</variable> 67 <variable id="$BB">\p{Line_Break=Break_Before}</variable> 68 <variable id="$BK">\p{Line_Break=Mandatory_Break}</variable> 69 <variable id="$CB">\p{Line_Break=Contingent_Break}</variable> 70 <variable id="$CL">\p{Line_Break=Close_Punctuation}</variable> 71 <variable id="$CP">\p{Line_Break=CP}</variable> 72 <variable id="$CP30">[$CP - [\p{ea=F}\p{ea=W}\p{ea=H}]]</variable> 73 <variable id="$CM1">\p{Line_Break=Combining_Mark}</variable> 74 <variable id="$CR">\p{Line_Break=Carriage_Return}</variable> 75 <variable id="$EX">\p{Line_Break=Exclamation}</variable> 76 <variable id="$GL">\p{Line_Break=Glue}</variable> 77 <variable id="$H2">\p{Line_Break=H2}</variable> 78 <variable id="$H3">\p{Line_Break=H3}</variable> 79 <variable id="$HL">\p{Line_Break=HL}</variable> 80 <variable id="$HY">\p{Line_Break=Hyphen}</variable> 81 <variable id="$ID">\p{Line_Break=Ideographic}</variable> 82 <variable id="$IN">\p{Line_Break=Inseparable}</variable> 83 <variable id="$IS">\p{Line_Break=Infix_Numeric}</variable> 84 <variable id="$JL">\p{Line_Break=JL}</variable> 85 <variable id="$JT">\p{Line_Break=JT}</variable> 86 <variable id="$JV">\p{Line_Break=JV}</variable> 87 <variable id="$LF">\p{Line_Break=Line_Feed}</variable> 88 <variable id="$NL">\p{Line_Break=Next_Line}</variable> 89 <variable id="$NS">\p{Line_Break=Nonstarter}</variable> 90 <variable id="$NU">\p{Line_Break=Numeric}</variable> 91 <variable id="$OP">\p{Line_Break=Open_Punctuation}</variable> 92 <variable id="$OP30">[$OP - [\p{ea=F}\p{ea=W}\p{ea=H}]]</variable> 93 <variable id="$PO">\p{Line_Break=Postfix_Numeric}</variable> 94 <variable id="$PR">\p{Line_Break=Prefix_Numeric}</variable> 95 <variable id="$QU">\p{Line_Break=Quotation}</variable> 96 <variable id="$SA">\p{Line_Break=Complex_Context}</variable> 97 <variable id="$SG">\p{Line_Break=Surrogate}</variable> 98 <variable id="$SP">\p{Line_Break=Space}</variable> 99 <variable id="$SY">\p{Line_Break=Break_Symbols}</variable> 100 <variable id="$WJ">\p{Line_Break=Word_Joiner}</variable> 101 <variable id="$XX">\p{Line_Break=Unknown}</variable> 102 <variable id="$ZW">\p{Line_Break=ZWSpace}</variable> 103 <variable id="$CJ">\p{Line_Break=Conditional_Japanese_Starter}</variable> 104 <variable id="$RI">\p{Line_Break=Regional_Indicator}</variable> 105 <variable id="$EB">\p{Line_Break=E_Base}</variable> 106 <variable id="$EM">\p{Line_Break=E_Modifier}</variable> 107 <variable id="$ZWJ_O">\p{Line_Break=ZWJ}</variable> 108 <variable id="$ZWJ">\p{Line_Break=ZWJ}</variable> 109 <!-- SPECIAL EXTENSIONS --> 110 <variable id="$CM">[$CM1 $ZWJ]</variable> 111 <!-- LB 1 Assign a line breaking class to each code point of the input. --> 112 <!-- Resolve AI, CB, SA, SG, and XX into other line breaking classes depending on criteria outside the scope of this algorithm. --> 113 <!-- NOTE: CB is ok to fall through, but must handle others here. --> 114 <variable id="$AL">[$AI $AL $SG $XX $SA]</variable> 115 <variable id="$NS">[$NS $CJ]</variable> 116 <!-- WARNING: Fixes for Rule 9 --> 117 <!-- Treat X (CM|ZWJ* as if it were X. --> 118 <!-- Where X is any line break class except SP, BK, CR, LF, NL or ZW. --> 119 <variable id="$X">$CM*</variable> 120 <!-- MACROS --> 121 <variable id="$Spec1_">[$SP $BK $CR $LF $NL $ZW]</variable> 122 <variable id="$Spec2_">[^ $SP $BK $CR $LF $NL $ZW]</variable> 123 <variable id="$Spec3a_">[^ $SP $BA $HY $CM]</variable> 124 <variable id="$Spec3b_">[^ $BA $HY $CM]</variable> 125 <variable id="$Spec4_">[^ $NU $CM]</variable> 126 <variable id="$Spec5_">[$BK $CB $CR $LF $NL $SP $ZW]</variable> 127 <variable id="$AI">($AI $X)</variable> 128 <variable id="$AL">($AL $X)</variable> 129 <variable id="$B2">($B2 $X)</variable> 130 <variable id="$BA">($BA $X)</variable> 131 <variable id="$BB">($BB $X)</variable> 132 <variable id="$CB">($CB $X)</variable> 133 <variable id="$CL">($CL $X)</variable> 134 <variable id="$CP">($CP $X)</variable> 135 <variable id="$CP30">($CP30 $X)</variable> 136 <variable id="$CM">($CM $X)</variable> 137 <variable id="$EX">($EX $X)</variable> 138 <variable id="$GL">($GL $X)</variable> 139 <variable id="$H2">($H2 $X)</variable> 140 <variable id="$H3">($H3 $X)</variable> 141 <variable id="$HL">($HL $X)</variable> 142 <variable id="$HY">($HY $X)</variable> 143 <variable id="$ID">($ID $X)</variable> 144 <variable id="$IN">($IN $X)</variable> 145 <variable id="$IS">($IS $X)</variable> 146 <variable id="$JL">($JL $X)</variable> 147 <variable id="$JT">($JT $X)</variable> 148 <variable id="$JV">($JV $X)</variable> 149 <variable id="$NS">($NS $X)</variable> 150 <variable id="$NU">($NU $X)</variable> 151 <variable id="$OP">($OP $X)</variable> 152 <variable id="$OP30">($OP30 $X)</variable> 153 <variable id="$PO">($PO $X)</variable> 154 <variable id="$PR">($PR $X)</variable> 155 <variable id="$QU">($QU $X)</variable> 156 <variable id="$SA">($SA $X)</variable> 157 <variable id="$SG">($SG $X)</variable> 158 <variable id="$SY">($SY $X)</variable> 159 <variable id="$WJ">($WJ $X)</variable> 160 <variable id="$XX">($XX $X)</variable> 161 <variable id="$RI">($RI $X)</variable> 162 <variable id="$EB">($EB $X)</variable> 163 <variable id="$EM">($EM $X)</variable> 164 <variable id="$ZWJ">($ZWJ $X)</variable> 165 <!-- OUT OF ORDER ON PURPOSE --> 166 <!-- LB 10 Treat any remaining combining mark as AL. --> 167 <variable id="$AL">($AL | ^ $CM | (?<=$Spec1_) $CM)</variable> 168 </variables> 169 <segmentRules> 170 <!-- RULES --> 171 <!-- LB 4 Always break after hard line breaks (but never between CR and LF). --> 172 <rule id="4"> $BK ÷ </rule> 173 <!-- LB 5 Treat CR followed by LF, as well as CR, LF and NL as hard line breaks. --> 174 <rule id="5.01"> $CR × $LF </rule> 175 <rule id="5.02"> $CR ÷ </rule> 176 <rule id="5.03"> $LF ÷ </rule> 177 <rule id="5.04"> $NL ÷ </rule> 178 <!-- LB 6 Do not break before hard line breaks. --> 179 <rule id="6"> × ( $BK | $CR | $LF | $NL ) </rule> 180 <!-- LB 7 Do not break before spaces or zero-width space. --> 181 <rule id="7.01"> × $SP </rule> 182 <rule id="7.02"> × $ZW </rule> 183 <!-- LB 8 Break before any character following a zero-width space, even if one or more spaces intervene. --> 184 <rule id="8"> $ZW $SP* ÷ </rule> 185 <!-- LB 8a Don't break between ZWJ and IDs (for use in Emoji ZWJ sequences) --> 186 <rule id="8.1"> $ZWJ_O × </rule> 187 <!-- LB 9 Do not break a combining character sequence; treat it as if it has the LB class of the base character --> 188 <!-- in all of the following rules. (Where X is any line break class except SP, BK, CR, LF, NL or ZW.) --> 189 <rule id="9"> $Spec2_ × $CM </rule> 190 <!-- LB 11 Do not break before or after WORD JOINER and related characters. --> 191 <rule id="11.01"> × $WJ </rule> 192 <rule id="11.02"> $WJ × </rule> 193 <!-- LB 12 Do not break after NBSP and related characters. --> 194 <rule id="12"> $GL × </rule> 195 <rule id="12.1"> $Spec3a_ × $GL </rule> 196 <rule id="12.2"> $Spec3b_ $CM+ × $GL </rule> 197 <rule id="12.3"> ^ $CM+ × $GL </rule> 198 <!-- LB 13 Do not break before \u2018]\u2019 or \u2018!\u2019 or \u2018;\u2019 or \u2018/\u2019, even after spaces. --> 199 <!-- Using customization 7. --> 200 <rule id="13.01"> × $EX </rule> 201 <rule id="13.02"> $Spec4_ × ($CL | $CP | $IS | $SY) </rule> 202 <rule id="13.03"> $Spec4_ $CM+ × ($CL | $CP | $IS | $SY) </rule> 203 <rule id="13.04"> ^ $CM+ × ($CL | $CP | $IS | $SY) </rule> 204 <!-- LB 14 Do not break after \u2018[\u2019, even after spaces. --> 205 <rule id="14"> $OP $SP* × </rule> 206 <!-- LB 15 Do not break within \u2018\"[\u2019, even with intervening spaces. --> 207 <rule id="15"> $QU $SP* × $OP </rule> 208 <!-- LB 16 Do not break between closing punctuation and a nonstarter (lb=NS), even with intervening spaces. --> 209 <rule id="16"> ($CL | $CP) $SP* × $NS </rule> 210 <!-- LB 17 Do not break within \u2018\u2014\u2014\u2019, even with intervening spaces. --> 211 <rule id="17"> $B2 $SP* × $B2 </rule> 212 <!-- LB 18 Break after spaces. --> 213 <rule id="18"> $SP ÷ </rule> 214 <!-- LB 19 Do not break before or after \u2018\"\u2019. --> 215 <rule id="19.01"> × $QU </rule> 216 <rule id="19.02"> $QU × </rule> 217 <!-- LB 20 Break before and after unresolved CB. --> 218 <rule id="20.01"> ÷ $CB </rule> 219 <rule id="20.02"> $CB ÷ </rule> 220 <!-- LB 20.9 Don't break between Hyphens and Letters when there is a break preceding the hyphen. --> 221 <!-- Originally added as a Finnish tailoring, now promoted to default CLDR behavior. --> 222 <!-- Must be before LB 21. Note: this is not default UAX-14 behaviour. See ICU issue ICU-8151. --> 223 <!-- (Unlike in ICU, here we just check a limited set of known breaks, ignoring some cases like LB 14). --> 224 <rule id="20.09"> $Spec5_ $HY × $AL </rule> 225 <!-- LB 21 Do not break before hyphen-minus, other hyphens, fixed-width spaces, small kana and other non-starters, or after acute accents. --> 226 <rule id="21.01"> × $BA </rule> 227 <rule id="21.02"> × $HY </rule> 228 <rule id="21.03"> × $NS </rule> 229 <rule id="21.04"> $BB × </rule> 230 <!-- LB 21a Don't break after Hebrew + Hyphen. --> 231 <rule id="21.1"> $HL ($HY | $BA) × </rule> 232 <!-- LB 21b Don’t break between Solidus and Hebrew letters. --> 233 <rule id="21.2"> $SY × $HL </rule> 234 <!-- LB 22 Do not break before ellipsis. --> 235 <rule id="22.01"> × $IN </rule> 236 <!-- LB 23 Do not break between digits and letters. --> 237 <rule id="23.02"> ($AL | $HL) × $NU </rule> 238 <rule id="23.03"> $NU × ($AL | $HL) </rule> 239 <!-- LB 24 Do not break between prefix and letters or ideographs. --> 240 <rule id="23.12"> $PR × ($ID | $EB | $EM) </rule> 241 <rule id="23.13"> ($ID | $EB | $EM) × $PO </rule> 242 <!-- LB24 Do not break between numeric prefix/postfix and letters, or between letters and prefix/postfix. --> 243 <rule id="24.02"> ($PR | $PO) × ($AL | $HL) </rule> 244 <rule id="24.03"> ($AL | $HL) × ($PR | $PO) </rule> 245 <!-- Using customization 7 --> 246 <!-- LB Alternative: ( PR | PO) ? ( OP | HY ) ? NU (NU | SY | IS) * (CL | CP) ? ( PR | PO) ? --> 247 <!-- Insert × every place it could go. However, make sure that at least one thing is concrete, otherwise would cause $NU to not break before or after --> 248 <rule id="25.01"> ($PR | $PO) × ( $OP | $HY )? $NU </rule> 249 <rule id="25.02"> ( $OP | $HY ) × $NU </rule> 250 <rule id="25.03"> $NU × ($NU | $SY | $IS) </rule> 251 <rule id="25.04"> $NU ($NU | $SY | $IS)* × ($NU | $SY | $IS | $CL | $CP) </rule> 252 <rule id="25.05"> $NU ($NU | $SY | $IS)* ($CL | $CP)? × ($PO | $PR) </rule> 253 <!-- LB 26 Do not break a Korean syllable. --> 254 <rule id="26.01"> $JL × $JL | $JV | $H2 | $H3 </rule> 255 <rule id="26.02"> $JV | $H2 × $JV | $JT </rule> 256 <rule id="26.03"> $JT | $H3 × $JT </rule> 257 <!-- LB 27 Treat a Korean Syllable Block the same as ID. --> 258 <rule id="27.01"> $JL | $JV | $JT | $H2 | $H3 × $IN </rule> 259 <rule id="27.02"> $JL | $JV | $JT | $H2 | $H3 × $PO </rule> 260 <rule id="27.03"> $PR × $JL | $JV | $JT | $H2 | $H3 </rule> 261 <!-- LB 28 Do not break between alphabetics (\"at\"). --> 262 <rule id="28"> ($AL | $HL) × ($AL | $HL) </rule> 263 <!-- LB 29 Do not break between numeric punctuation and alphabetics (\"e.g.\"). --> 264 <rule id="29"> $IS × ($AL | $HL) </rule> 265 <!-- LB 30 Do not break between letters, numbers or ordinary symbols and non-East-Asian opening or closing punctuation. --> 266 <rule id="30.01"> ($AL | $HL | $NU) × $OP30 </rule> 267 <rule id="30.02"> $CP30 × ($AL | $HL | $NU) </rule> 268 <!-- LB 30a Break between two Regional Indicators if and only if there is an even number of them before the point being considered. --> 269 <rule id="30.11"> ^ ($RI $RI)* $RI × $RI </rule> 270 <rule id="30.12"> [^$RI] ($RI $RI)* $RI × $RI </rule> 271 <rule id="30.13"> $RI ÷ $RI </rule> 272 <rule id="30.2"> $EB × $EM </rule> 273 </segmentRules> 274 </segmentation> 275 <segmentation type="SentenceBreak"> 276 <variables> 277 <!-- VARIABLES --> 278 <variable id="$CR">\p{Sentence_Break=CR}</variable> 279 <variable id="$LF">\p{Sentence_Break=LF}</variable> 280 <variable id="$Extend">\p{Sentence_Break=Extend}</variable> 281 <variable id="$Format">\p{Sentence_Break=Format}</variable> 282 <variable id="$Sep">\p{Sentence_Break=Sep}</variable> 283 <variable id="$Sp">\p{Sentence_Break=Sp}</variable> 284 <variable id="$Lower">\p{Sentence_Break=Lower}</variable> 285 <variable id="$Upper">\p{Sentence_Break=Upper}</variable> 286 <variable id="$OLetter">\p{Sentence_Break=OLetter}</variable> 287 <variable id="$Numeric">\p{Sentence_Break=Numeric}</variable> 288 <variable id="$ATerm">\p{Sentence_Break=ATerm}</variable> 289 <variable id="$STerm">\p{Sentence_Break=STerm}</variable> 290 <variable id="$Close">\p{Sentence_Break=Close}</variable> 291 <variable id="$SContinue">\p{Sentence_Break=SContinue}</variable> 292 <variable id="$Any">.</variable> 293 <!-- SPECIAL EXTENSIONS --> 294 <!-- WARNING: For Rule 5, now add format and extend to everything but Sep, Format, and Extend --> 295 <variable id="$FE">[$Format $Extend]</variable> 296 <variable id="$NotPreLower_">[^ $OLetter $Upper $Lower $Sep $CR $LF $STerm $ATerm]</variable> 297 <variable id="$Sp">($Sp $FE*)</variable> 298 <variable id="$Lower">($Lower $FE*)</variable> 299 <variable id="$Upper">($Upper $FE*)</variable> 300 <variable id="$OLetter">($OLetter $FE*)</variable> 301 <variable id="$Numeric">($Numeric $FE*)</variable> 302 <variable id="$ATerm">($ATerm $FE*)</variable> 303 <variable id="$STerm">($STerm $FE*)</variable> 304 <variable id="$Close">($Close $FE*)</variable> 305 <variable id="$SContinue">($SContinue $FE*)</variable> 306 <!-- MACROS --> 307 <variable id="$ParaSep">($Sep | $CR | $LF)</variable> 308 <variable id="$SATerm">($STerm | $ATerm)</variable> 309 </variables> 310 <segmentRules> 311 <!-- RULES --> 312 <!-- Break at the start and end of text, unless the text is empty. --> 313 <!-- Do not break within CRLF. --> 314 <rule id="3"> $CR × $LF </rule> 315 <!-- Break after paragraph separators. --> 316 <rule id="4"> $ParaSep ÷ </rule> 317 <!-- Ignore Format and Extend characters, except after sot, ParaSep, and within CRLF. (See Section 6.2, Replacing Ignore Rules.) This also has the effect of: Any × (Format | Extend) --> 318 <!-- WARNING: Implemented as don't break before format (except after linebreaks), --> 319 <!-- AND add format and extend in all variables definitions that appear after this point! --> 320 <rule id="5"> × [$Format $Extend] </rule> 321 <!-- Do not break after full stop in certain contexts. [See note below.] --> 322 <!-- Do not break after ambiguous terminators like period, if immediately followed by a number or lowercase letter, --> 323 <!-- is between uppercase letters, or if the first following letter (optionally after certain punctuation) is lowercase. --> 324 <!-- For example, a period may be an abbreviation or numeric period, and not mark the end of a sentence. --> 325 <rule id="6"> $ATerm × $Numeric </rule> 326 <rule id="7"> ($Upper | $Lower) $ATerm × $Upper </rule> 327 <rule id="8"> $ATerm $Close* $Sp* × $NotPreLower_* $Lower </rule> 328 <rule id="8.1"> $SATerm $Close* $Sp* × ($SContinue | $SATerm) </rule> 329 <!-- Break after sentence terminators, but include closing punctuation, trailing spaces, and any paragraph separator. [See note below.] Include closing punctuation, trailing spaces, and (optionally) a paragraph separator. --> 330 <rule id="9"> $SATerm $Close* × ( $Close | $Sp | $ParaSep ) </rule> 331 <!-- Note the fix to $Sp*, $Sep? --> 332 <rule id="10"> $SATerm $Close* $Sp* × ( $Sp | $ParaSep ) </rule> 333 <rule id="11"> $SATerm $Close* $Sp* $ParaSep? ÷ </rule> 334 <!-- Otherwise, do not break --> 335 <rule id="998"> × $Any </rule> 336 </segmentRules> 337 </segmentation> 338 <segmentation type="WordBreak"> 339 <variables> 340 <!-- VARIABLES --> 341 <variable id="$CR">\p{Word_Break=CR}</variable> 342 <variable id="$LF">\p{Word_Break=LF}</variable> 343 <variable id="$Newline">\p{Word_Break=Newline}</variable> 344 <variable id="$Extend">\p{Word_Break=Extend}</variable> 345 <!-- Now normal variables --> 346 <variable id="$Format">\p{Word_Break=Format}</variable> 347 <variable id="$Katakana">\p{Word_Break=Katakana}</variable> 348 <variable id="$ALetter">\p{Word_Break=ALetter}</variable> 349 <variable id="$MidLetter">\p{Word_Break=MidLetter}</variable> 350 <variable id="$MidNum">\p{Word_Break=MidNum}</variable> 351 <variable id="$MidNumLet">\p{Word_Break=MidNumLet}</variable> 352 <variable id="$Numeric">\p{Word_Break=Numeric}</variable> 353 <variable id="$ExtendNumLet">\p{Word_Break=ExtendNumLet}</variable> 354 <variable id="$RI">\p{Word_Break=Regional_Indicator}</variable> 355 <variable id="$Hebrew_Letter">\p{Word_Break=Hebrew_Letter}</variable> 356 <variable id="$Double_Quote">\p{Word_Break=Double_Quote}</variable> 357 <variable id="$Single_Quote">\p{Word_Break=Single_Quote}</variable> 358 <variable id="$ZWJ">\p{Word_Break=ZWJ}</variable> 359 <!-- Note: The following may overlap with the above --> 360 <variable id="$ExtPict">\p{Extended_Pictographic}</variable> 361 <variable id="$WSegSpace">\p{Word_Break=WSegSpace}</variable> 362 <!-- MACROS --> 363 <variable id="$AHLetter">($ALetter | $Hebrew_Letter)</variable> 364 <variable id="$MidNumLetQ">($MidNumLet | $Single_Quote)</variable> 365 <!-- SPECIAL EXTENSIONS --> 366 <!-- Add format and extend to everything --> 367 <variable id="$FE">[$Format $Extend $ZWJ]</variable> 368 <variable id="$NotBreak_">[^ $Newline $CR $LF ]</variable> 369 <variable id="$Katakana">($Katakana $FE*)</variable> 370 <variable id="$ALetter">($ALetter $FE*)</variable> 371 <variable id="$MidLetter">($MidLetter $FE*)</variable> 372 <variable id="$MidNum">($MidNum $FE*)</variable> 373 <variable id="$MidNumLet">($MidNumLet $FE*)</variable> 374 <variable id="$Numeric">($Numeric $FE*)</variable> 375 <variable id="$ExtendNumLet">($ExtendNumLet $FE*)</variable> 376 <variable id="$RI">($RI $FE*)</variable> 377 <variable id="$Hebrew_Letter">($Hebrew_Letter $FE*)</variable> 378 <variable id="$Double_Quote">($Double_Quote $FE*)</variable> 379 <variable id="$Single_Quote">($Single_Quote $FE*)</variable> 380 <variable id="$AHLetter">($AHLetter $FE*)</variable> 381 <variable id="$MidNumLetQ">($MidNumLetQ $FE*)</variable> 382 </variables> 383 <segmentRules> 384 <!-- RULES --> 385 <!-- Break at the start and end of text, unless the text is empty. --> 386 <!-- Do not break within CRLF. --> 387 <rule id="3"> $CR × $LF </rule> 388 <!-- Otherwise break before and after Newlines (including CR and LF) --> 389 <rule id="3.1"> ($Newline | $CR | $LF) ÷ </rule> 390 <rule id="3.2"> ÷ ($Newline | $CR | $LF) </rule> 391 <!-- Do not break within emoji zwj sequences. --> 392 <rule id="3.3"> $ZWJ × $ExtPict </rule> 393 <rule id="3.4"> $WSegSpace × $WSegSpace </rule> 394 <!-- Ignore Format and Extend characters, except after sot, CR, LF, and Newline. (See Section 6.2, Replacing Ignore Rules.) This also has the effect of: Any × (Format | Extend) --> 395 <!-- WARNING: Implemented as don't break before format (except after linebreaks), --> 396 <!-- AND add format and extend in all variables definitions that appear after this point! --> 397 <rule id="4"> $NotBreak_ × [$Format $Extend $ZWJ] </rule> 398 <!-- VANILLA RULES --> 399 <!-- Do not break between most letters. --> 400 <rule id="5"> $AHLetter × $AHLetter </rule> 401 <!-- Do not break letters across certain punctuation. --> 402 <rule id="6"> $AHLetter × ($MidLetter | $MidNumLetQ) $AHLetter </rule> 403 <rule id="7"> $AHLetter ($MidLetter | $MidNumLetQ) × $AHLetter </rule> 404 <rule id="7.1"> $Hebrew_Letter × $Single_Quote </rule> 405 <rule id="7.2"> $Hebrew_Letter × $Double_Quote $Hebrew_Letter </rule> 406 <rule id="7.3"> $Hebrew_Letter $Double_Quote × $Hebrew_Letter </rule> 407 <!-- Do not break within sequences of digits, or digits adjacent to letters (“3a”, or “A3”). --> 408 <rule id="8"> $Numeric × $Numeric </rule> 409 <rule id="9"> $AHLetter × $Numeric </rule> 410 <rule id="10"> $Numeric × $AHLetter </rule> 411 <!-- Do not break within sequences, such as “3.2” or “3,456.789”. --> 412 <rule id="11"> $Numeric ($MidNum | $MidNumLetQ) × $Numeric </rule> 413 <rule id="12"> $Numeric × ($MidNum | $MidNumLetQ) $Numeric </rule> 414 <!-- Do not break between Katakana. --> 415 <rule id="13"> $Katakana × $Katakana </rule> 416 <!-- Do not break from extenders. --> 417 <rule id="13.1"> ($AHLetter | $Numeric | $Katakana | $ExtendNumLet) × $ExtendNumLet </rule> 418 <rule id="13.2"> $ExtendNumLet × ($AHLetter | $Numeric | $Katakana) </rule> 419 <!-- Do not break within emoji flag sequences. That is, do not break between regional indicator (RI) symbols if there is an odd number of RI characters before the break point. --> 420 <rule id="15"> ^ ($RI $RI)* $RI × $RI </rule> 421 <rule id="16"> [^$RI] ($RI $RI)* $RI × $RI </rule> 422 <!-- Otherwise, break everywhere (including around ideographs). --> 423 </segmentRules> 424 </segmentation> 425 </segmentations> 426</ldml> 427