Menu
CTAN
Comprehensive TeX Archive Network
Cover Upload Browse Search

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

% README for ITRANS and Baraha mapping files to be used with XeLaTeX.
% Copyright (C) 2010-2014, Abhinandan S. Prasad and Shrisha Rao.
% 
% Version 4.2, Time-stamp: <2014-09-01 11:47:23 shrao>
%
%   This work may be distributed and/or modified under the
%   conditions of the LaTeX Project Public License, either version 1.3
%   of this license or (at your option) any later version.
%   The latest version of this license is in
%   http://www.latex-project.org/lppl.txt
%   and version 1.3 or later is part of all distributions of LaTeX
%   version 2005/12/01 or later.
%
%   This work has the LPPL maintenance status `maintained'.
% 
%   The Current Maintainer of this work is Shrisha Rao.
%
%   This work consists of the files brh-kan.map, brh-kan.tec,
%   itrans-dvn.map, itrans-dvn.tec, itrans-sdvn.map, itrans-sdvn.tec,
%   itrans-iast.map, itrans-iast.tec, itrans-kan.map, itrans-kan.tec,
%   itrans-sankan.map, itrans-sankan.tec, itrans-santel.map,
%   itrans-santel.tec, itrans-tamil.map, itrans-tamil.tec,
%   itrans-tamil-sample.pdf, itrans-tamil-sample.tex, itrans-tel.map,
%   itrans-tel.tec, and README.

The following files are mappings that can be used with XeLaTeX for
codings done in the ITRANS and Baraha formats.  In each instance, the
*.map file is the actual (ASCII) mapping, while the *.tec file is the
compiled version used by the software.

The itrans-tel mapping is by Kattamuri Ekanadham.

brh-kan:       This mapping should be used with codings done in Baraha,
               where the output is desired in Kannada script.

itrans-dvn:    This mapping should be used with codings done in ITRANS, 
               where the output is desired in Devanagari script.  The
               codings are typically, but not necessarily, of Sanskrit
               texts (they could also be, e.g., Hindi or Marathi).

itrans-sdvn:   This mapping is very similar to the above, but does not
               need the use of a vowel `a' at the ends of words; thus,
               `rAm' can be used rather than `rAma'.

itrans-iast:   This mapping should be used with codings done in ITRANS,
	       where the output is desired in accented Roman (IAST)
	       script.

itrans-kan:    This mapping should be used with codings done in ITRANS
               of Kannada texts, where the output is desired in Kannada
               script.

itrans-sankan: This mapping should be used with codings done in ITRANS
               of Sanskrit texts, where the output is desired in Kannada
               script.

itrans-santel: This mapping should be used with codings done in ITRANS
	       of Sanskrit texts, where the output is desired in Telugu
	       script.

itrans-tamil:  This mapping should be used with codings done in ITRANS
               of Tamil texts, where the output is desired in Tamil
               script.

itrans-tel:    This mapping should be used with codings done in ITRANS 
               of Telugu texts, where the output is desired in Telugu
               script.

Note that `e' and `o' get mapped to the long-vowels with itrans-sankan
and in itrans-santel, but to the short vowels in itrans-kan and
itrans-tel (where `E' and `O' are needed for the long vowels).

To use these mappings, insert one or more of the following sets of
lines in your *.tex files after the \documentclass command and
appropriate other includes and settings.

\newcommand\abc{\catcode`\^=11
           \catcode`\~=11
           \fontspec[Script=Kannada,Mapping=brh-kan]{<fontname>}}   

\newcommand\abc{\catcode`\^=11
           \catcode`\~=11
           \fontspec[Script=Devanagari,Mapping=itrans-dvn]{<fontname>}}   

\newcommand\abc{\catcode`\^=11
           \catcode`\~=11
           \fontspec[Script=Devanagari,Mapping=itrans-sdvn]{<fontname>}} 

\newcommand\abc{\catcode`\^=11
           \catcode`\~=11
           \fontspec[Script=Roman,Mapping=itrans-iast]{<fontname>}}

\newcommand\abc{\catcode`\^=11
           \catcode`\~=11
           \fontspec[Script=Kannada,Mapping=itrans-kan]{<fontname>}}

\newcommand\abc{\catcode`\^=11
           \catcode`\~=11
           \fontspec[Script=Kannada,Mapping=itrans-sankan]{<fontname>}}

\newcommand\abc{\catcode`\^=11
           \catcode`\~=11
           \fontspec[Mapping=itrans-santel]{<fontname>}}

\newcommand\abc{\catcode`\^=11
            \catcode`\~=11
           \fontspec[Script=Tamil,Mapping=itrans-tamil]{<fontname>}}

\newcommand\abc{\catcode`\^=11
           \catcode`\~=11
           \fontspec[Mapping=itrans-tel]{<fontname>}}

Replace `abc' by the desired macro name, and <fontname> by the name of
an appropriate Unicode font in that script (e.g., Sanskrit 2003 for
Devanagari, Kedage for Kannada, Pothana for Telugu).

The following is a small example using the Kannada `Kedage' font.
Save the following as a *.tex file; if your installation and settings
(including fonts) are correct, it will compile and produce a proper
PDF output.  (See itrans-tamil-sample.tex and itrans-tamil-sample.pdf
for a Tamil usage example.)

\documentclass[a4paper,11pt]{article}

\usepackage{ifxetex}
\RequireXeTeX
\usepackage{xltxtra}

\setlength{\parindent}{0mm}

\newcommand\ked{\catcode`\^=11
           \catcode`\~=11
           \fontspec[Script=Kannada,Mapping=itrans-sankan]{Kedage}}

\begin{document}

{\ked
OM ||  nArAyaNaM suraguruM jagadekanAthaM \\
bhaktapriyaM sakalalokanamaskR^itaM cha | \\
traiguNyavarjitamajaM vibhumAdyamIshaM \\
vande bhavaghnamamarAsurasiddhavandyam.h  ||
}

\end{document}

Files

Name Size Date Notes
README 5464 2014-09-01 11:47
brh-kan.map 5496 2010-10-20 14:14
brh-kan.tec 1591 2010-10-20 14:14
itrans-dvn.map 5356 2014-09-01 11:04
itrans-dvn.tec 1713 2014-09-01 11:10
itrans-iast.map 7174 2014-09-01 11:05
itrans-iast.tec 1585 2014-09-01 11:10
itrans-kan.map 7964 2014-09-01 11:06
itrans-kan.tec 2557 2014-09-01 11:10
itrans-sankan.map 8501 2014-09-01 11:03
itrans-sankan.tec 2563 2014-09-01 11:10
itrans-santel.map 8801 2014-09-01 11:07
itrans-santel.tec 2755 2014-09-01 11:10
itrans-sdvn.map 5868 2014-09-01 11:08
itrans-sdvn.tec 1968 2014-09-01 11:10
itrans-tamil-sample.pdf 19150 2011-09-25 18:32
itrans-tamil-sample.tex 502 2011-09-25 18:32
itrans-tamil.map 5947 2011-09-25 18:32
itrans-tamil.tec 1516 2011-09-25 18:32
itrans-tel.map 5833 2014-09-01 11:09
itrans-tel.tec 1724 2014-09-01 11:10

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

xe­tex-itrans – Itrans in­put maps for use with XLaTeX

The pack­age pro­vides maps for use with XLaTeX with cod­ing done us­ing itrans. Fontspec maps are pro­vided for De­vana­gari (San­skrit), for San­skrit in Kan­nada and for Kan­nada it­self.

Pack­age De­tailsxe­tex-itrans
Ver­sion4.2
Li­censeThe LaTeX Project Public Li­cense 1.3
Copy­right2010,2014 Ab­hi­nan­dan S.P. and Shrisha Rao
Main­tainerS. P. Ab­hi­nan­dan
Shrisha Rao
Con­tained inTeXlive as xe­tex-itrans
MikTeX as xe­tex-itrans
Topics sup­port for lan­guages of the In­dian sub­con­ti­nent
met­rics, macro in­can­ta­tions and other font sup­port
al­ter­na­tive markup scheme
Guest Book Sitemap Contact