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