2 # Copyright (C) 2002-2004, International Business Machines Corporation and others.
7 # ICU Character Break Rules, also known as Grapheme Cluster Boundaries
8 # See Unicode Standard Annex #29.
9 # These rules are based on TR29 Version 4.0.0
13 # Character Class Definitions.
14 # The names are those from TR29.
18 $Control = [[:Zl:] [:Zp:] [:Cc:] [:Cf:] - [:Grapheme_Extend = TRUE:]];
20 $Extend = [[:Grapheme_Extend = TRUE:]];
23 # Korean Syllable Definitions
25 $L = [:Hangul_Syllable_Type = L:];
26 $V = [:Hangul_Syllable_Type = V:];
27 $T = [:Hangul_Syllable_Type = T:];
29 $LV = [:Hangul_Syllable_Type = LV:];
30 $LVT = [:Hangul_Syllable_Type = LVT:];
32 $HangulSyllable = $L+ | ($L* ($LV? $V+ | $LV | $LVT) $T*) | $T+;
34 ## -------------------------------------------------
39 ([^$Control] | $HangulSyllable) $Extend*;
41 ## -------------------------------------------------
45 $BackHangulSyllable = $L+ | ($T* ($V+$LV? | $LV | $LVT) $L*) | $T+;
46 $BackOneCluster = ($LF $CR) | ($Extend* ([^$Control] | $BackHangulSyllable));
49 ## -------------------------------------------------
56 ## -------------------------------------------------