-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathfreedict-database.rng
88 lines (88 loc) · 2.78 KB
/
freedict-database.rng
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<element name="FreeDictDatabase"
xmlns="http://relaxng.org/ns/structure/1.0"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<oneOrMore>
<element name="dictionary">
<attribute name="name">
<data type="string"> <!-- three-digit lang code, separated by dash, e.g. deu-ita -->
<param name="pattern">[a-z]{3}-[a-z]{3}</param>
</data>
</attribute>
<attribute name="headwords">
<data type="positiveInteger"/> <!-- 4452 -->
</attribute>
<attribute name="edition">
<data type="string"> <!-- version in the format 0.1.1 or 0.1.1-anything -->
<param name="pattern">\d+(\.\d+(\.\d+)?)?(-.+)?</param>
</data>
</attribute>
<attribute name="date">
<data type="date"/> <!-- date in the format 2011-10-01 -->
</attribute>
<attribute name="maintainerName">
<text/> <!-- e.g. FreeDict - no maintainer assigned -->
</attribute>
<optional>
<attribute name="maintainerEmail">
<text/>
</attribute>
</optional>
<optional>
<attribute name="status">
<text/> <!-- e.g. small -->
</attribute>
</optional>
<optional>
<attribute name="sourceURL">
<data type="anyURI"/>
</attribute>
</optional>
<oneOrMore>
<element name="release">
<attribute name="platform">
<text/> <!-- e.g. dict-tgz -->
</attribute>
<attribute name="version">
<data type="string"> <!-- version in the format 0.1.1 -->
<param name="pattern">\d+(\.\d+(\.\d+)?)?(-.+)?</param>
</data>
</attribute>
<attribute name="size">
<data type="positiveInteger"/> <!-- 76216 -->
</attribute>
<attribute name="date">
<data type="date"/> <!-- 2005-11-20 -->
</attribute>
<attribute name="URL">
<data type="anyURI"/> <!-- "
https://download.freedict.org/dictionaries/... -->
</attribute>
<attribute name="checksum">
<text/> <!-- e.g. 3ab5dcf9g7... -->
</attribute>
</element>
</oneOrMore>
</element>
</oneOrMore>
<element name="software">
<oneOrMore>
<element name="tools">
<attribute name="date">
<data type="date"/>
</attribute>
<attribute name="URL">
<data type="anyURI"/>
</attribute>
<attribute name="checksum">
<text/>
</attribute>
<attribute name="version">
<data type="string">
<param name="pattern">\d+(\.\d+(\.\d+)?)?(-(beta|alpha).*|\+.*)?</param>
</data>
</attribute>
</element>
</oneOrMore>
</element>
<text/>
</element>