X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b75a7d8f3b4adbae880cab104ce2c6a50eee4db2..374ca955a76ecab1204ca8bfa63ff9238d998416:/icuSources/data/brkitr/char.txt diff --git a/icuSources/data/brkitr/char.txt b/icuSources/data/brkitr/char.txt index ff6969fd..9214e61e 100644 --- a/icuSources/data/brkitr/char.txt +++ b/icuSources/data/brkitr/char.txt @@ -1,5 +1,5 @@ # -# Copyright (C) 2002-2003, International Business Machines Corporation and others. +# Copyright (C) 2002-2004, International Business Machines Corporation and others. # All Rights Reserved. # # file: char.txt @@ -15,9 +15,9 @@ # $CR = \r; $LF = \n; -$Control = [[:Zl:] [:Zp:] [:Cc:] [:Cf:]]; +$Control = [[:Zl:] [:Zp:] [:Cc:] [:Cf:] - [:Grapheme_Extend = TRUE:]]; -$Extend = [[:Grapheme_Extend = TRUE:]]; +$Extend = [[:Grapheme_Extend = TRUE:]]; # # Korean Syllable Definitions @@ -31,15 +31,31 @@ $LVT = [:Hangul_Syllable_Type = LVT:]; $HangulSyllable = $L+ | ($L* ($LV? $V+ | $LV | $LVT) $T*) | $T+; -# -# Forward Break Rules -# +## ------------------------------------------------- + +!!forward; + $CR $LF; ([^$Control] | $HangulSyllable) $Extend*; -.; +## ------------------------------------------------- -# -# Reverse Rule, back up to the beginning of some preceding grapheme cluster. -# -! ($Extend | $V | $T )* ($LF $CR | ($LV | $LVT)?$L* | .); +!!reverse; + +$BackHangulSyllable = $L+ | ($T* ($V+$LV? | $LV | $LVT) $L*) | $T+; +$BackOneCluster = ($LF $CR) | ($Extend* ([^$Control] | $BackHangulSyllable)); +$BackOneCluster; + +## ------------------------------------------------- + +!!safe_reverse; + +# rule 6, 7, 8 +$V+ $L; + +## ------------------------------------------------- + +!!safe_forward; + +# rule 6, 7, 8 +$V+ $T;