-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroots.rnc
49 lines (38 loc) · 1.54 KB
/
roots.rnc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
datatypes xsd = "http://www.w3.org/2001/XMLSchema-datatypes"
grammar {
start = element roots { Comment*, Entry+ }
Entry = element entry { Comment*, Form, Comment*, Subentry+,
Comment* }
Form = element form { Lexical, Comment*, Surface? }
Lexical = element lexical { LexicalString }
LexicalString = xsd:string {
pattern="[AJMPRU]?['aächiïjklmnñpqrstuüwxy^CVdgo]+" }
# d and g and o just for suspicious borrowings?
Surface = element surface { text }
Subentry = element subentry {
attribute cat { "ncommon" |
"nproper" |
"positional" |
"positionaldefective" |
"digit" |
"multiplier" |
"negative" |
"ntemporal" |
"dayname" |
"monthname" |
"pronounpersonal" |
"pronoundemonstrative" |
"interrogative" |
"adjective" |
"verb" },
Comment*, Glosses, Comment*, Features? }
Glosses = element glosses { Comment*, English, Comment*, Spanish,
Comment* }
English = element english { Comment*, (Gloss, Comment*)+ }
Gloss = element gloss { text }
Spanish = element spanish { Comment*, (Glosa, Comment*)+ }
Glosa = element glosa { text }
Features = element features { Comment*, (Feature, Comment*)+ }
Feature = element feature { text }
Comment = element comment { text }
}