Giter Club home page Giter Club logo

xetex-devanagari's Introduction

xetex-devanagari 0.6

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

Their sources (.map) are to be compiled with the TECkit [5].

The maps are maintained by Daniel Stender [6] please send hints and report problems to: [email protected].

Velthuis maps

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

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].

velthuis-sanskrit.tec (for Sanskrit)

Input encoding includes:

input means
aa ā
ii ī
uu ū
.r
.R
.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 see cf. the manual of the Velthuis packet [9].

Usage like:

\documentclass{article}

\usepackage{fontspec}
\setmainfont[Script=Devanagari,Mapping=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.tec (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=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.tec

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=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.tec

Input coding includes Unicode entities representing the International Alphabet of Sanskrit Transliteration (IAST):

Entity Hex
ā U+0101
ī U+012B
ū U+016B
U+1E5B
ṝ U+1E5D
U+1E37
U+1E45
ñ U+00F1
U+1E6D
U+1E0D
U+1E47
ś U+015B
U+1E63
U+1E43
U+1E25

Usage like:

\documentclass{article}

\usepackage{fontspec}
\setmainfont[Script=Devanagari,Mapping=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}

RomDev.tec

Alternative romanized Sanskrit input map (0.3 [10]). Thanks to Dominik Wujastyk for suggestion, and Somadeva Vasudeva for permission.

Links

[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

[5] http://scripts.sil.org/TECkit

[6] http://www.danielstender.com/blog

[7] http://www.ctan.org/tex-archive/language/devanagari/velthuis

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

[9] http://mirrors.ctan.org/language/devanagari/velthuis/doc/generic/velthuis/manual.pdf\#page=6

[10] https://github.com/somadeva/RomDev

xetex-devanagari's People

Watchers

 avatar  avatar  avatar  avatar

Forkers

jyfmidi wujastyk

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.