]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/data/brkitr/char.txt
ICU-6.2.4.tar.gz
[apple/icu.git] / icuSources / data / brkitr / char.txt
index ff6969fd4379823a200d1bdfa2e347a9d04aae63..9214e61e168447b50c395c15a5c13c86fb5384b7 100644 (file)
@@ -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;