2 # Copyright (c) 2016, International Business Machines Corporation and others. All Rights Reserved.
6 # Reference Grapheme Break rules for intltest rbbi/RBBIMonkeyTest
9 # Note: Rule syntax and the monkey test itself are still a work in progress.
10 # They are expected to change with review and the addition of support for rule tailoring.
12 type = grapheme; # one of grapheme | word | line | sentence
18 Control = [[\p{Grapheme_Cluster_Break = Control}]-[:Block=Tags:]];
19 Extend = [[\p{Grapheme_Cluster_Break = Extend}][:Block=Tags:]];
21 Regional_Indicator = [\p{Grapheme_Cluster_Break = Regional_Indicator}];
23 SpacingMark = [\p{Grapheme_Cluster_Break = SpacingMark}];
26 # Korean Syllable Definitions
28 L = [\p{Grapheme_Cluster_Break = L}];
29 V = [\p{Grapheme_Cluster_Break = V}];
30 T = [\p{Grapheme_Cluster_Break = T}];
31 LV = [\p{Grapheme_Cluster_Break = LV}];
32 LVT = [\p{Grapheme_Cluster_Break = LVT}];
36 E_Base = [\u261D\u26F9\u270A-\u270D\U0001F385\U0001F3C3-\U0001F3C4\U0001F3CA-\U0001F3CB\U0001F442-\U0001F443\U0001F446-\U0001F450\U0001F466-\U0001F469\U0001F46E\U0001F470-\U0001F478\U0001F47C\U0001F481-\U0001F483\U0001F485-\U0001F487\U0001F4AA\U0001F575\U0001F590\U0001F595-\U0001F596\U0001F645-\U0001F647\U0001F64B-\U0001F64F\U0001F6A3\U0001F6B4-\U0001F6B6\U0001F6C0\U0001F918];
37 E_Modifier = [\U0001F3FB-\U0001F3FF];
38 GAZ = [\u2640\u2642\u2764\U0001F308\U0001F466-\U0001F469\U0001F48B\U0001F5E8];
41 GB4: (Control | CR | LF) ÷;
42 GB5: . ÷ (Control | CR | LF);
44 GB6: L (L | V | LV | LVT);
45 GB7: (LV | V) (V | T);
48 GB10: (E_Base | GAZ) Extend* E_Modifier;
49 GB9: . (Extend | ZWJ);
55 # Regional Indicators, split into pairs.
56 # Note that a pair of RIs that is not followed by a third RI will fall into
57 # the normal rules for Extend, etc.
59 GB12: Regional_Indicator Regional_Indicator ÷ Regional_Indicator;
60 GB13: Regional_Indicator Regional_Indicator;