]> git.saurik.com Git - apple/icu.git/blame - icuSources/test/testdata/break_rules/grapheme.txt
ICU-57131.0.1.tar.gz
[apple/icu.git] / icuSources / test / testdata / break_rules / grapheme.txt
CommitLineData
2ca993e8
A
1#
2# Copyright (c) 2016, International Business Machines Corporation and others. All Rights Reserved.
3
4# file: grapheme.txt
5#
6# Reference Grapheme Break rules for intltest rbbi/RBBIMonkeyTest
7#
8#
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.
11
12type = grapheme; # one of grapheme | word | line | sentence
13locale = en;
14
15CR = [\u000d];
16LF = [\u000a];
17
18Control = [[\p{Grapheme_Cluster_Break = Control}]-[:Block=Tags:]];
19Extend = [[\p{Grapheme_Cluster_Break = Extend}][:Block=Tags:]];
20ZWJ = [\u200D];
21Regional_Indicator = [\p{Grapheme_Cluster_Break = Regional_Indicator}];
22Prepend = [];
23SpacingMark = [\p{Grapheme_Cluster_Break = SpacingMark}];
24
25#
26# Korean Syllable Definitions
27#
28L = [\p{Grapheme_Cluster_Break = L}];
29V = [\p{Grapheme_Cluster_Break = V}];
30T = [\p{Grapheme_Cluster_Break = T}];
31LV = [\p{Grapheme_Cluster_Break = LV}];
32LVT = [\p{Grapheme_Cluster_Break = LVT}];
33
34# Emoji defintions
35
36E_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];
37E_Modifier = [\U0001F3FB-\U0001F3FF];
38GAZ = [\u2640\u2642\u2764\U0001F308\U0001F466-\U0001F469\U0001F48B\U0001F5E8];
39
40GB3: CR LF;
41GB4: (Control | CR | LF) ÷;
42GB5: . ÷ (Control | CR | LF);
43
44GB6: L (L | V | LV | LVT);
45GB7: (LV | V) (V | T);
46GB8: (LVT | T) T;
47
48GB10: (E_Base | GAZ) Extend* E_Modifier;
49GB9: . (Extend | ZWJ);
50
51GB9a: . SpacingMark;
52GB9b: Prepend .;
53GB11: ZWJ GAZ;
54
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.
58#
59GB12: Regional_Indicator Regional_Indicator ÷ Regional_Indicator;
60GB13: Regional_Indicator Regional_Indicator;
61
62GB999: . ÷;