Menu
CTAN
Comprehensive TeX Archive Network
Cover Upload Browse

Direc­tory tex-archive/macros/xetex/generic/devanagari

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}

Files

Name Size Date Notes
Changelog 1361 2014-06-13 07:30
README 4631 2014-06-13 07:38
devanagarinumerals.map 490 2007-07-15 04:47
devanagarinumerals.tec 239 2014-06-13 07:38
harvardkyoto.map 3795 2014-06-13 07:28
harvardkyoto.tec 1182 2014-06-13 07:38
iast.map 3404 2014-06-13 07:29
iast.tec 1151 2014-06-13 07:38
velthuis-sanskrit.map 6144 2008-03-12 08:41
velthuis-sanskrit.tec 2264 2014-06-13 07:38
velthuis.map 5840 2011-07-17 07:45
velthuis.tec 2062 2014-06-13 07:38

Down­load the con­tents of this pack­age in one zip archive (17.5k).

xe­tex-de­vana­gari – XTeX in­put map for Uni­code De­vana­gari

The pack­age pro­vides a map for use with Jonathan Kew’s TECkit, to trans­late De­vana­gari (en­coded ac­cord­ing to the Har­vard/Ky­oto con­ven­tion) to Uni­code (range 0900-097F).

Pack­age De­tailsxe­tex-de­vana­gari
Ver­sion0.5
Li­censeThe LaTeX Project Public Li­cense
Main­tainerDaniel Sten­der
Con­tained inTeXlive as xe­tex-de­vana­gari
MikTeX as xe­tex-de­vana­gari
Topics in­put en­cod­ing sup­port for TeX en­gines
XTeX, ma­te­rial sup­port­ing it, and pack­ages re­quir­ing it
Guest Book Sitemap Contact