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
|
## xetex-devanagari 0.99a
(based on velthuis-sanskrit.map by Zdeněk Wagner)
XeTeX input mappings for convenient Unicode Devanagari (0900-097F) typesetting.
To be processed with teckit_compile ([http://scripts.sil.org/TECkit](http://scripts.sil.org/TECkit)).
#### harvardkyoto.map
Input coding:
A = ā, I = ī, U= ū, R = ṛ, RR = ṝ, L = ḷ
G = ṅ, J = ñ
T = ṭ, D = ḍ, N = ṇ
z = ś, S = ṣ
M = Anusvara, H = Visarga, , = Virama, ' = Avagraha
.l = ऴ, .m = Anunasika, - = Anudatta (Rv), ! = Svarita (Rv), om = ॐ
q = क़, x = ख़, .g = ग़, .z = ज़, f = फ़, .r = ड़, .R = ढ़
Usage like:
\documentclass{article}
\usepackage{fontspec}
\setmainfont[Script=Devanagari,Mapping=harvardkyoto]{Devanagari2003}
\begin{document}
dharmakSetre kurukSetre samavetA yuyutsavaH | \\
mAmakAH pANDavAzcaiva kimakurvata saMjaya ||
a-gnimI!.le pu-rohi!taM ya-jJasya! de-vamR-tvijaM! | \\
hotA!raM ratna-dhA!tamaM ||
tumase itanI cau.rI nadI pAr karate nahIM banegA |
\end{document}
#### iast.map
Input coding includes IAST Unicode entities:
ā ī ū ṛ ṝ (1E5B 0304) ḷ ṅ ñ ṭ ḍ ṇ ś ṣ ṃ ḥ
Usage like:
\documentclass{article}
\usepackage{fontspec}
\setmainfont[Script=Devanagari,Mapping=iast]{Devanagari2003}
\begin{document}
dharmakṣetre kurukṣetre samavetā yuyutsavaḥ | \\
māmakāḥ pāṇḍavāścaiva kimakurvata saṃjaya ||
\end{document}
Please report bugs to: [https://github.com/danstender/xetex-devanagari/issues](https://github.com/danstender/xetex-devanagari/issues)
Enjoy!
(C) 2008-2011 Daniel Stender ([daniel@danielstender.com](mailto:daniel@danielstender.com))
[http://www.danielstender.com/granthinam](http://www.danielstender.com/granthinam)
|