blob: c028dc62a299bac74c7de70350ee6b527c6ebef0 (
plain)
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
|
; $Id: velthuis.map,v 1.1 2007-07-15 14:47:55 icebearsoft Exp $
; TECkit mapping for conversion of Velthuis transliteration
; to UTF-8 directly in XeTeX
; Viramas are NOT added after the final consonant.
; Rules from tex-text.map and devanagarinumerals.map are included.
LHSName "Velthuis-standard-hindi"
RHSName "UNICODE"
LHSDescription "Velthuis Devanagari for Standard Hindi"
Version "1"
Contact "http://devnag.sarovar.org"
Define a U+0061 ;a
Define b U+0062 ;b
Define c U+0063 ;c
Define d U+0064 ;d
Define e U+0065 ;e
Define f U+0066 ;f
Define g U+0067 ;g
Define h U+0068 ;h
Define i U+0069 ;i
Define j U+006A ;j
Define k U+006B ;k
Define l U+006C ;l
Define m U+006D ;m
Define n U+006E ;n
Define o U+006F ;o
Define p U+0070 ;p
Define q U+0071 ;q
Define r U+0072 ;r
Define s U+0073 ;s
Define t U+0074 ;t
Define u U+0075 ;u
Define v U+0076 ;v
Define w U+0077 ;w
Define x U+0078 ;x
Define y U+0079 ;y
Define z U+007A ;z
Define A U+0041 ;A
Define B U+0042 ;B
Define C U+0043 ;C
Define D U+0044 ;D
Define G U+0047 ;G
Define I U+0049 ;I
Define J U+004A ;J
Define K U+004B ;K
Define L U+004C ;L
Define M U+004d ;M
Define P U+0050 ;P
Define R U+0052 ;R
Define T U+0054 ;T
Define U U+0055 ;U
Define quot U+0022
Define hash U+0023
Define amper U+0026
Define plus U+002B
Define dot U+002E
Define slash U+002F
Define at U+0040
Define under U+005F
Define lbrace U+007B
Define bar U+007C
Define rbrace U+007D
Define tlde U+007E
Define candrabindu U+0901
Define bindu U+0902
Define visarga U+0903
Define asvara U+0905
Define Asvara U+0906
Define isvara U+0907
Define Isvara U+0908
Define usvara U+0909
Define Usvara U+090A
Define rvoc U+090B
Define lvoc U+090C
Define esvara U+090F
Define aisvara U+0910
Define ocandra U+0911
Define osvara U+0913
Define ausvara U+0914
Define ka U+0915
Define kha U+0916
Define ga U+0917
Define gha U+0918
Define nga U+0919
Define ca U+091A
Define cha U+091B
Define ja U+091C
Define jha U+091D
Define nya U+091E
Define Ta U+091F
Define Tha U+0920
Define Da U+0921
Define Dha U+0922
Define Na U+0923
Define ta U+0924
Define tha U+0925
Define da U+0926
Define dha U+0927
Define na U+0928
Define pa U+092A
Define pha U+092B
Define ba U+092C
Define bha U+092D
Define ma U+092E
Define ya U+092F
Define ra U+0930
Define la U+0932
Define La U+0933
Define va U+0935
Define sha U+0936
Define Sa U+0937
Define sa U+0938
Define ha U+0939
Define avagraha U+093D
Define Amatra U+093E
Define imatra U+093F
Define Imatra U+0940
Define umatra U+0941
Define Umatra U+0942
Define rmatra U+0943
Define Rmatra U+0944
Define ematra U+0947
Define aimatra U+0948
Define ocmatra U+0949
Define omatra U+094B
Define aumatra U+094C
Define virama U+094D
Define aum U+0950
Define qa U+0958
Define khha U+0959
Define ghha U+095A
Define za U+095B
Define Ra U+095C
Define Rha U+095D
Define fa U+095E
Define Rvoc U+0960
Define Lvoc U+0961
Define lmatra U+0962
Define Lmatra U+0963
Define danda U+0964
Define dbldanda U+0965
Define abbrev U+0970
Define zwnj U+200C
Define zwj U+200D
;; First pass
pass(Unicode)
; From TeX-text
U+002D U+002D <> U+2013 ; -- -> en dash
U+002D U+002D U+002D <> U+2014 ; --- -> em dash
U+0027 <> U+2019 ; ' -> right single quote
U+0027 U+0027 <> U+201D ; '' -> right double quote
U+0022 > U+201D ; " -> right double quote
U+0060 <> U+2018 ; ` -> left single quote
U+0060 U+0060 <> U+201C ; `` -> left double quote
; Numerals
U+0030 > U+0966
U+0031 > U+0967
U+0032 > U+0968
U+0033 > U+0969
U+0034 > U+096A
U+0035 > U+096B
U+0036 > U+096C
U+0037 > U+096D
U+0038 > U+096E
U+0039 > U+096F
; Vowels, all independent
a <> asvara
a a > Asvara
A <> Asvara
i <> isvara
i i > Isvara
I <> Isvara
u <> usvara
u u > Usvara
U <> Usvara
dot r <> rvoc
dot R <> Rvoc
dot l <> lvoc
dot L <> Lvoc
e <> esvara
a i <> aisvara
o <> osvara
a u <> ausvara
M <> bindu
dot m > bindu
tlde m <> candrabindu
slash > candrabindu
dot h <> visarga
under <> virama
amper > virama
dot a <> avagraha
tlde o <> ocandra
dot o <> aum
; Consonants, no conjuncts
k <> ka
k h <> kha
K > kha
g <> ga
g h <> gha
G > gha
quot n <> nga
q <> qa
dot k h <> khha
dot g <> ghha
c <> ca
c h <> cha
C > cha
j <> ja
j h <> jha
J > jha
tlde n <> nya
z <> za
dot t <> Ta
dot t h <> Tha
dot T > Tha
dot d <> Da
dot d h <> Dha
dot D > Dha
dot n <> Na
R <> Ra
R h <> Rha
t <> ta
t h <> tha
T > tha
d <> da
d h <> dha
D > dha
n <> na
p <> pa
p h <> pha
P > pha
b <> ba
b h <> bha
B > bha
m <> ma
f <> fa
y <> ya
r <> ra
l <> la
v <> va
L <> La
quot s <> sha
dot s <> Sa
s <> sa
h <> ha
; Symbols
at <> abbrev
bar <> danda
; Ligature breaking
plus <> zwj
;; Second pass: converting vowels + a few simple rules
pass (Unicode)
;; Classes
UniClass [vyanjana] = (ka .. ha qa .. fa)
UniClass [svara] = (Asvara isvara Isvara usvara Usvara rvoc Rvoc lvoc Lvoc esvara aisvara \
osvara ausvara ocandra)
UniClass [matra] = (Amatra imatra Imatra umatra Umatra rmatra Rmatra lmatra Lmatra ematra \
aimatra omatra aumatra ocmatra)
[vyanjana] [svara] <> [vyanjana] [matra]
[vyanjana] zwj <> [vyanjana] virama zwj
danda danda <> dbldanda
;; Third pass: making conjuncts
pass (Unicode)
;; Classes
UniClass [vyanjana] = (ka .. ha qa .. fa)
[vyanjana]=v1 [vyanjana]=v2 <> @v1 virama @v2
;; Fourth pass: making remaining conjuncts (for groups of two or more consonants)
pass (Unicode)
;; Classes
UniClass [vyanjana] = (ka .. ha qa .. fa)
[vyanjana]=v1 [vyanjana]=v2 <> @v1 virama @v2
;; Fifth pass: removing inherent "a"
pass (Unicode)
;; Classes
UniClass [vyanjana] = (ka .. ha qa .. fa)
[vyanjana] asvara <> [vyanjana]
|