2 <!DOCTYPE alphabets SYSTEM "alphabet.dtd">
3 <?xml-stylesheet type="text/xsl" href="alphabet-nest.xsl"?>
4 <!-- Author: David MacKay and Behdad -->
6 <alphabet name="Persian (Nested groups) with punctuation and numerals">
7 <orientation type="RL"/>
8 <encoding type="Western"/>
9 <palette>European/Asian</palette>
10 <train>training_persian_IR.txt</train>
11 <space d="□" t=" " b="9" note="box" />
12 <paragraph d="¶" b="9"/>
13 <control d="Control" t="" b="8"/>
14 <group name="Persian letters" b="0">
15 <group name="Vowels etc" b="110">
16 <s d="◌َ" t="َ" b="90" note="fatha" />
17 <s d="◌ِ" t="ِ" b="91" note="kasra" />
18 <s d="◌ُ" t="ُ" b="92" note="damma" />
19 <s d="◌ّ" t="ّ" b="93" note="shadda" />
20 <s d="◌ْ" t="ْ" b="94" note="sukun" />
21 <s d="◌ً" t="ً" b="90" note="FATHATAN" />
22 <s d="◌ٍ" t="ٍ" b="91" note="kasratan" />
23 <s d="◌ٌ" t="ٌ" b="92" note="dammatan" />
24 <s d="◌ٓ" t="ٓ" b="93" note="maddah above" />
25 <s d="◌ٔ" t="ٔ" b="94" note="hamza above" />
26 <s d="◌ٕ" t="ٕ" b="90" note="hamza below" />
27 <s d="◌ٰ" t="ٰ" b="91" note="superscript alef" />
29 <group name="Hamza" b="60">
30 <s d="ء" t="ء" b="70" note="HAMZA " />
32 <group b="60" name="alef" >
33 <s d="آ" t="آ" b="80" note="ALEF WITH MADDA ABOVE " />
34 <s d="ا" t="ا" b="70" note="ALEF " />
35 <s d="أ" t="أ" b="80" note="ALEF WITH HAMZA ABOVE " />
38 <s d="ب" t="ب" b="81" note="BEH " />
39 <s d="پ" t="پ" b="71" note="PEH " />
40 <s d="ت" t="ت" b="81" note="TEH " />
41 <s d="ث" t="ث" b="71" note="THEH " />
44 <s d="ج" t="ج" b="82" note="JEEM " />
45 <s d="چ" t="چ" b="72" note="TCHEH " />
46 <s d="ح" t="ح" b="82" note="HAH " />
47 <s d="خ" t="خ" b="72" note="KHAH " />
50 <s d="د" t="د" b="73" note="DAL " />
51 <s d="ذ" t="ذ" b="83" note="THAL " />
52 <s d="ر" t="ر" b="73" note="REH " />
53 <s d="ز" t="ز" b="83" note="ZAIN " />
54 <s d="ژ" t="ژ" b="73" note="JEH " />
57 <s d="س" t="س" b="84" note="SEEN " />
58 <s d="ش" t="ش" b="74" note="SHEEN " />
61 <s d="ص" t="ص" b="75" note="SAD " />
62 <s d="ض" t="ض" b="85" note="DAD " />
63 <s d="ط" t="ط" b="75" note="TAH " />
64 <s d="ظ" t="ظ" b="85" note="ZAH " />
67 <s d="ع" t="ع" b="86" note="AIN " />
68 <s d="غ" t="غ" b="76" note="GHAIN " />
69 <s d="ف" t="ف" b="86" note="FEH " />
70 <s d="ق" t="ق" b="76" note="QAF " />
73 <s d="ک" t="ک" b="77" note="KAF (unicode LETTER KEHEH)" />
74 <s d="گ" t="گ" b="87" note="GAF " />
77 <s d="ل" t="ل" b="78" note=" LAM " />
78 <s d="م" t="م" b="88" note=" MEEM " />
79 <s d="ن" t="ن" b="78" note=" NOON " />
82 <s d="و" t="و" b="79" note=" WAW " />
83 <s d="ؤ" t="ؤ" b="89" note=" WAW WITH HAMZA ABOVE " />
84 <s d="ه‍" t="ه" b="79" note=" HEH (with non-joiner added to the canvas glyph) " />
85 <s d="ی" t="ی" b="89" note="ARABIC LETTER FARSI YEH " />
86 <s d="ئ" t="ئ" b="79" note=" YEH WITH HAMZA ABOVE " />
89 <group name="Arabic letters" b="115">
90 <s b="99" t="ـ" d="ـ" note="ARABIC TATWEEL joining character"/>
91 <s d="إ" t="إ" b="70" note="ALEF WITH HAMZA BELOW " />
92 <s d="ٱ" t="ٱ" b="80" note="ALEF WASLA " />
93 <s d="ك" t="ك" b="77" note="ARABIC KAF perhaps omit this"/>
94 <s d="ة" t="ة" b="79" note=" TEH MARBUTA " />
95 <s d="ى‍" t="ى" b="89" note=" ALEF MAKSURA (Looks like YEH!)" />
96 <s d="ي" t="ي" b="79" note=" YEH " />
98 <group name="Persian numbers" b="113">
99 <s d="۱" t="۱" b="105" note="ONE"/>
100 <s d="۲" t="۲" b="106" note="TWO"/>
101 <s d="۳" t="۳" b="107" note="THREE"/>
102 <s d="۴" t="۴" b="108" note="FOUR"/>
103 <s d="۵" t="۵" b="109" note="FIVE"/>
104 <s d="۶" t="۶" b="105" note="SIX"/>
105 <s d="۷" t="۷" b="106" note="SEVEN"/>
106 <s d="۸" t="۸" b="107" note="EIGHT"/>
107 <s d="۹" t="۹" b="108" note="NINE"/>
108 <s d="۰" t="۰" b="109" note="ZERO"/>
109 <s d="٫" t="٫" b="104" note="decimal point"/>
110 <s d="٬" t="٬" b="102" note="thousands"/>
112 <group name="ASCII Punctuation" b="114">
113 <s b="9" d="◊" t="	" note="TAB (represented by a diamond)"/>
114 <s b="99" d="~" t="~"/>
115 <s b="98" d="@" t="@"/>
116 <s b="95" d="#" t="#"/>
117 <s b="96" d="$" t="$"/>
118 <s b="90" d="%" t="%"/>
119 <s b="95" d="^" t="^"/>
120 <s b="97" d="&" t="&"/>
121 <s b="91" d="*" t="*"/>
122 <s b="100" d="-" t="-"/>
123 <s b="96" d="_" t="_"/>
124 <s b="98" d="\" t="\"/>
125 <s b="97" d="|" t="|"/>
127 <group name="Persian Punctuation" b="112">
128 <s b="90" d="﷼" t="﷼" note="currency"/>
129 <s b="91" d="٪" t="٪" note="Arabic percent"/>
130 <s b="92" d="+" t="+"/>
131 <s b="93" d="−" t="−" note="minus"/>
132 <s b="94" d="×" t="×" note="times"/>
133 <s b="90" d="÷" t="÷" note="divide"/>
134 <s b="91" d="=" t="="/>
135 <s b="92" d="/" t="/" note="keep in persian as separator"/>
136 <s b="109" d="‏<‏" t="<"/>
137 <s b="105" d="‏>‏" t=">"/>
138 <s b="107" d="‏{‏" t="{"/>
139 <s b="108" d="‏}‏" t="}"/>
140 <s b="105" d="‏[‏" t="["/>
141 <s b="106" d="‏]‏" t="]"/>
142 <s b="106" d="‏(‏" t="("/>
143 <s b="107" d="‏)‏" t=")"/>
144 <s d="‏‹‏" t="‹" note="French opening single quotation mark" />
145 <s d="‏›‏" t="›" note="French opening single quotation mark" />
146 <s d="‏«‏" t="«" note="French left double quotation mark" />
147 <s d="‏»‏" t="»" note="French right double quotation mark" />
148 <s b="100" d="‐" t="‐"/>
149 <s b="100" d="!" t="!"/>
150 <s b="101" d="؟" t="؟" note="Arabic question mark"/>
151 <s b="101" d=":" t=":"/>
152 <s b="102" d="؛" t="؛" note="Arabic semicolon"/>
153 <s b="103" d="،" t="،" note="Arabic comma"/>
154 <s b="104" d="." t="."/>
156 <group name="Joiners" b="111">
157 <s b="73" t="‌" d="∥" note="Zero width non-joiner"/>
158 <s b="74" t="‍" d="↕" note="Zero width joiner"/>