summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/fonts/misc/xetex/fontmapping/xetex-devanagari/README
blob: 430c4aa926c5886b132a0a853c08d70cd2b8970f (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
xetex-devanagari 0.5
====================

Xetex-devanagari (1,2) are input mappings (*.map) for convenient LaTeX
typesetting of simple Unicode Devanagari (0900-097F, 3) with the
PDF-engine XeTeX (4).

(1) http://www.ctan.org/tex-archive/macros/xetex/generic/devanagari
(2) https://github.com/danstender/xetex-devanagari
(3) http://www.unicode.org/charts/PDF/U0900.pdf
(4) http://en.wikipedia.org/wiki/Xetex

Their sources (*.tec) are to be compiled with the TECkit (5).

(5) http://scripts.sil.org/TECkit

The maps are maintained by Daniel Stender (6), please send hints and
report problems to: daniel@danielstender.com.

(6) http://www.danielstender.com/blog/

Velthuis maps
=============

velthuis.map, velthuis-sanskrit.map and devanagarinumerals.map are taken
over from the Velthuis packet (7), much thanks to Zdeněk Wagner.

(7) http://www.ctan.org/tex-archive/language/devanagari/velthuis

devanagarinumerals.tec is the simplest way to turn automatically
generated counters to Devanagari (XeTeX displays the numbers in
Devanagari while applications like Xindy could work with the original
Arabic numbering).

Since "~" expands to nonbreakable space it's important to set `~=12 in
the preamble (8).

(8) http://cikitsa.blogspot.com/2010/09/xelatex-velthuis-encoding-and-palatal.html

velthuis-sanskrit.map (for Sanskrit)
------------------------------------

Input encoding includes:

  input   means
  ------- -------------------
  aa      ā
  ii      ī
  uu      ū
  .r      ṛ
  .R      ṝ
  .l      ḷ
  .L      ḹ
  "n      ṅ
  ~n      ñ
  .t      ṭ
  .d      ḍ
  .n      ṇ
  "s      ś
  .s      ṣ
  .m      Anusvāra
  .h      Visarga
  .a      Avagrāha
  .o      ॐ
  @       °
  +       ligature breaking

For a complete list of Velthuis input scheme cf. the manual of the
Velthuis packet (9), p. 6.

(9) http://mirrors.ctan.org/language/devanagari/velthuis/doc/generic/velthuis/manual.pdf

Usage like:

    \documentclass{article}

    \usepackage{fontspec}
    \setmainfont[Script=Devanagari,Mapping=../tec/velthuis-sanskrit]{Sanskrit 2003}

    \catcode`\~=12

    \setlength\parindent{0pt}

    \begin{document}
    namastu"n+ga"sira"scumbicandracaamaracaarave |\\
    trailokyanagaraarambhamuulas+tambhaaya "sambhave || 1 ||\\
    haraka.n.thagrahaanandamiilitaak.sii.m namaamyumaam |\\
    kaalakuu.tavi.saspar"sajaatamuurcchaagamaamiva || 2 ||
    \end{document}

velthuis.map (for Hindi)
------------------------

Input encoding includes:

  input   means
  ------- -------
  qa      क़
  .kha    ख़
  .ga     ग़
  za      ज़
  Ra      ड़
  Rha     ढ़
  fa      फ़
  La      ळ

Usage like:

    \documentclass{article}

    \usepackage{fontspec}
    \setmainfont[Script=Devanagari,Mapping=../tec/velthuis]{Nakula}

    \catcode`\~=12
        
    \begin{document}
    am.rt ek cho.te se ghaRe meM samudr ke tal meM sthit thaa | devataa aur asur
    use nikaalane ke lie samudr ko mathanaa caahate the |
    \end{document}

harvardkyoto.map
================

Input coding includes (asterisk marks non-standard):

  input   means
  ------- -------------------
  A       ā
  I       ī
  U       ū
  R       ṛ
  RR      ṝ
  *L      ḷ
  G       ṅ
  J       ñ
  T       ṭ
  D       ḍ
  N       ṇ
  z       ś
  S       ṣ
  M       Anusvāra
  H       Visarga
  '       Avagrāha
  OM      ॐ
  .l      ळ
  -       Anudātta
  !       Svarita
  .m      Anunāsika
  °       abbrev (U+0970)
  +       ligature breaking

Usage like:

    \documentclass[12pt]{article}

    \usepackage{fontspec}
    \setmainfont[Script=Devanagari,Mapping=../tec/harvardkyoto]{Sanskrit 2003}

    \setlength\parindent{0pt}

    \begin{document}
    namastuG+gazirazcumbicandracAmaracArave |\\
    trailokyanagarArambhamUlastambhAya zambhave || 1 ||\\
    harakaNThagrahAnandamIlitAkSIM namAmyumAm |\\
    kAlakUTaviSasparzajAtamUrcchAgamAmiva || 2 ||\\[1ex]

    a-gnimI!.le pu-rohi!taM ya-jJasya! de-vamR-tvijaM! |
    hotA!raM ratna-dhA!tamaM || 1.1.1 ||
    \end{document}

iast.map
========

Input coding includes Unicode entities representing the IAST:

-   ā ī ū ṛ ṝ (1E5D) ḷ ṅ ñ ṭ ḍ ṇ ś ṣ ṃ ḥ

Usage like:

    \documentclass{article}

    \usepackage{fontspec}
    \setmainfont[Script=Devanagari,Mapping=../tec/iast]{Sanskrit 2003}

    \setlength\parindent{0pt}

    \begin{document}
    namastuṅ+gaśiraścumbicandracāmaracārave |\\
    trailokyanagarārambhamūlastambhāya śambhave || 1 ||\\
    harakaṇṭhagrahānandamīlitākṣīṃ namāmyumām |\\
    kālakūṭaviṣasparśajātamūrcchāgamāmiva || 2 ||
    \end{document}