%
%    devanagari.sty v2.15
%
%    LaTeX2e package for Devanagari for TeX system.
%    Copyright (C) 1991-2006 University of Groningen, The Netherlands
%
%    Author     : Dominik Wujastyk <d.wujastyk@ucl.ac.uk>
%    Maintainer : Anshuman Pandey <apandey@u.washington.edu>
%                 Kevin Carmody <i@kevincarmody.com>
%                 Zdenek Wagner <zdenek.wagner@gmail.com>
%    Revised    : 8 February 2009
%
%    This program is free software; you can redistribute it and/or modify
%    it under the terms of the GNU General Public License as published by
%    the Free Software Foundation.
%
%    This program is distributed in the hope that it will be useful,
%    but without any warranty; without even the implied warranty of
%    merchantability or fitness for a particular purpose. See the
%    GNU General Public License for more details.
%
%    =========================================================================
%
%    Sample input .dn file:
%
%    \documentclass{article}
%    \usepackage{dev}
%    \begin{document}
%    {\dn devaanaa.m priya.h}
%    \end{document}
%
%    Sample input .dn file with hyphenation:
%
%    \documentclass{article}
%    \begin{document}
%    @hyphen
%    {\dn devaanaa.m priya.h}
%    \end{document}
%
%
%
% The Identification Part
% ~~~~~~~~~~~~~~~~~~~~~~~
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{devanagari}[2009/02/09 v2.15 LaTeX macros for Velthuis Devanagari]
%
% Error message for someone running LaTeX 2.09: Checks for definition of
% \documentclass; it exists in LaTeX2e, but not in LaTeX 2.09
%
\@ifundefined{documentclass}
{\@latexerr{This "devanagari" style option may only be used with LaTeX2e.^^J
        Use "dev209.sty" instead.}\@eha
        \endinput}{}
%
% Error message for someone running LaTeX2e in 2.09 compatibility mode:
%
\if@compatibility
\PackageError{devanagari}{%
        This `devanagari' package is only for use with LaTeX2e.\MessageBreak
        If you absolutely must use LaTeX 2.09 compatibility mode,\MessageBreak
        you could try using the older `dev209.sty' file instead,\MessageBreak
        but the results are not predictable}{You will not
        get any further with this approach.
        Just press "X" and quit now.}
\fi
%
%
% The Declaration of Options
% ~~~~~~~~~~~~~~~~~~~~~~~~~~
% \DeclareFontEncoding{}{}{} % Already done by standard classes.
%
% Initialize Devanagari font family
\DeclareFontSubstitution{U}{dn}{m}{n}
%
\newcommand{\dnoriginal}{\usefont{U}{dn}{m}{n}}
\newcommand{\dnbombay}{\usefont{U}{dnb}{m}{n}}
\newcommand{\dncalcutta}{\usefont{U}{dnc}{m}{n}}
\newcommand{\dnnepali}{\usefont{U}{dnn}{m}{n}}
\newcommand{\dnpen}{\usefont{U}{dnp}{m}{n}}
\newcommand{\dnpenbombay}{\usefont{U}{dnpb}{m}{n}}
\newcommand{\dnpencalcutta}{\usefont{U}{dnpc}{m}{n}}
\newcommand{\dnpennepali}{\usefont{U}{dnpn}{m}{n}}
% Default dn family
\newcommand{\dnfamilydefault}{dn}
%
% Hyphenation
% ~~~~~~~~~~~
% The responsibility for hyphenating Devanagari text is taken over
% completely by the preprocessor, devnag.c. The preprocessor inserts
% discretionary hyphenation points (\-) in all the places it thinks are
% appropriate.
%
% In the present style file, therefore, we simply need to do two things.
% First we want to tell TeX where the hyphen is in the font, i.e., at
% position 255. This we do in \DeclareFontFamily macro in the font
% definition file, Udn.fd.
%
% Next, we want to prevent TeX doing any automatic hyphenation except
% where devnag.c inserts discretionary hyphenation points. This is a bit
% tricky: we invoke a special "language" which has been defined not to
% have any hyphenation. This is defined in language.dat as "nohyphenation
% zerohyph.tex", i.e., a hyphenation file without any entries is loaded.
% When the LaTeX2e format is built (initex \dump) usually a file
% hyphen.cfg will be loaded by the main latex.ltx format file. In turn,
% hyphen.cfg loads language.dat. If this little chain of file references
% fails, you can try doing all this manually by adding the following lines
% into your LaTeX format at the time of doing a \dump of the format file:
%
% \newlanguage\l@nohyphenation
% \language\l@nohyphenation
% \begingroup\patterns{}\endgroup % no patterns
%
% Or, since any newly defined language initially has no associated
% hyphenation patterns, it is probably enough just to uncomment the
% following lines in this style file, which saves you having to make a new
% format file:
%
% \newlanguage\l@nohyphenation
% \language\l@nohyphenation
%
% Okay, so here's what we do about disabling automatic hyphenation for the
% present incarnation of dev.sty. We simply say "\language\l@nohyphenation"
% in the main \dn macro. The use of the name \l@nohyphenation is meant to
% be forward-compatible with LaTeX2e's future, so we just do a little check
% here to make sure we can use it, and define it if it doesn't already
% exist:
%
%\@ifundefined{\l@nohyphenation}{\let\l@nohyphenation=\nohyphenation}{\relax}
%
%
% The Main Code Part
% ~~~~~~~~~~~~~~~~~~
% We will need a reliable way to recognise that we are in the \dn mode.
%
\newif\ifdnmode
%
% Now define the main Devanagari macro, \dn.
%
\DeclareRobustCommand\dn{\csname originalTeX\endcsname \dnmodetrue
  \fontencoding{U}\fontfamily{\dnfamilydefault}\selectfont%
% \language=\l@nohyphenation
  \renewcommand*{\-}{\@@hyph}%
  \hfuzz=4pt
  \tolerance=10000\pretolerance=10000
  \emergencystretch=.2\hsize % remove this line if you are not using TeX > 3.0
  \linespread{1.27}\selectfont
  \csname really@do@dev@catcodes\endcsname
  \let\dn@latex@info\@latex@info  \let\@latex@info\@gobble
  \dn@commands  \let\@latex@info\dn@latex@info
  \csname dn@captions\endcsname}
%
% Here is the macro \do@dev@catcodes that changes the catcodes
% appropriately for Devanagari. \UnDevCatcodes restores the
% catcodes to original values. It may sometimes be needed. In order
% to prevent errors we wish to define the ranges of the Devanagari
% characters only once. The loop will therefore call an internal
% macro \dev@catcode which will change its definition.
%
\newcount\dev@chnum
%
\def\UnDevCatcodes{}
\def\dev@catcode{\edef\UnDevCatcodes{\UnDevCatcodes
    \protect\catcode\the\dev@chnum=\the\catcode\dev@chnum}\catcode\dev@chnum=11
    \show\UnDevCatcodes}

\newcommand*\do@dev@catcodes{%
  \dev@chnum=0
  \loop\dev@catcode
    \ifnum\dev@chnum<12 \advance\dev@chnum by1
    \repeat
  \dev@chnum=14
  \loop\dev@catcode
    \ifnum\dev@chnum<31 \advance\dev@chnum by1
    \repeat
  \dev@chnum=127 \dev@catcode}

\let\@@protect\protect
\let\protect\@unexpandable@protect
\def\dev@catcode{\edef\UnDevCatcodes{\UnDevCatcodes
    \protect\catcode\the\dev@chnum=\the\catcode\dev@chnum}}
\do@dev@catcodes
\let\protect\@@protect
\def\dev@catcode{\catcode\dev@chnum=11 }
%
% We execute the macro straight away, which means these catcodes are in
% force throughout the whole document, not just in the Devanagari part
% of the text.  This can sometimes cause spurious "Omega" characters if,
% in some special conditions, TeX reads a line feed outside the \dn
% environment, and so forth.
%
% The alternative, i.e., calling the catcodes locally within Devanagari
% text, leads to even worse "illegal character" problems with \chapter
% and \section headings, etc. This dilemma may be soluble in the longer
% run, but is not being addressed in the current release (2004).
% This is, however, in conflict with MusixTeX. Option "nocatcodes" will
% execute the macro only within Devanagari text.
%
% Version 2.02 of the preprocessor was redesigned so that the catcodes
% need not be changed. The change of catcodes may be, however, in rare
% cases necessary (see the manual for details). In such cases you can
% use the "catcodes" option. Option "compat" enters the compatibility
% mode which changes the catcodes within \dn as in the old version.

\@ifundefined{DevnagVersion}%
             {\let\really@do@dev@catcodes\do@dev@catcodes
              \let\dn@commands\do@dev@catcodes}%
             {\let\dn@commands\relax}

\DeclareOption{nocatcodes}{\let\dn@commands\relax}
\DeclareOption{catcodes}{\let\dn@commands\do@dev@catcodes}
\DeclareOption{compat}{\let\really@do@dev@catcodes\do@dev@catcodes}

% Language options: if one of these options is defined, \dn will also
% set corresponding captions and date format

\DeclareOption{hindi}{\def\dn@captions{\captionshindi \datehindi}}
\DeclareOption{modernhindi}{\def\dn@captions{\captionsmodernhindi \datemodernhindi}}

% Global definition of the font variant
\DeclareOption{bombay}{\renewcommand{\dnfamilydefault}{dnb}}
\DeclareOption{calcutta}{\renewcommand{\dnfamilydefault}{dnc}}
\DeclareOption{nepali}{\renewcommand{\dnfamilydefault}{dnn}}
\DeclareOption{pen}{\renewcommand{\dnfamilydefault}{dnp}}
\DeclareOption{penbombay}{\renewcommand{\dnfamilydefault}{dnpb}}
\DeclareOption{pencalcutta}{\renewcommand{\dnfamilydefault}{dnpc}}
\DeclareOption{pennepali}{\renewcommand{\dnfamilydefault}{dnpn}}

\ProcessOptions
\dn@commands
%\typeout{dn@commands were executed}

%
% Here are the macros that set the particular characters in the font:
%
\newdimen\itdim
\def\dev@three#1w{{\char"#1}}%
%
\DeclareRobustCommand\dn@commands{%
\DeclareRobustCommand*\subscr[1]{\/\itdim=\lastkern
  \unkern\kern-\itdim \lower\dp0 \hbox to\itdim{##1\hfil}}%
%
\DeclareRobustCommand*\0{\llap{\char13}}%
\DeclareRobustCommand*\1{\llap{\char32}}%
\DeclareRobustCommand*\2{\llap{\char92}}%
\DeclareRobustCommand\3{\dev@three}%
\DeclareRobustCommand*\4{\llap{\char123}}%
\DeclareRobustCommand*\5{\llap{\char125}}%
\DeclareRobustCommand*\6[1]{\setbox0=\hbox{##1}##1\subscr{\char126}}%
\DeclareRobustCommand*\7[1]{\setbox0=\hbox{##1}##1\subscr{\char0}}%
\DeclareRobustCommand*\8[1]{\setbox0=\hbox{##1}##1\subscr{\char1}}%
\DeclareRobustCommand*\9[1]{\setbox0=\hbox{##1}##1\subscr{\char2}}%
\DeclareRobustCommand*\qa[2]{\setbox0=\hbox{##1}##1\subscr{\char253\kern1.5ex\lower1.25ex
  \hbox{\char##2}\kern-1.5ex}}%
\DeclareRobustCommand*\qb[1]{\setbox0=\hbox{##1}##1\subscr{\char253}}%
% New \qc ligature command introduced by devnag version 2:
\DeclareRobustCommand*\qc[2]{\setbox0=\hbox{##1}##1\subscr{\char126\kern1.5ex\lower1.25ex
  \hbox{\char##2}\kern-1.5ex}}%
\DeclareRobustCommand*\qq[1]{\setbox0=\hbox{##1}##1\subscr{\char94}}%
\DeclareRobustCommand*\qx[1]{\setbox0=\hbox{##1}##1\subscr{\char14}}%
\DeclareRobustCommand*\qy[1]{\setbox0=\hbox{##1}##1\subscr{\char31}}%
\DeclareRobustCommand*\qz[1]{\setbox0=\hbox{##1}##1\subscr{\char124}}%
\DeclareRobustCommand*\qva{\kern0.5ex\2\kern-0.5ex}%
\DeclareRobustCommand*\qvb{\kern1ex\0\kern-1ex}%
\DeclareRobustCommand*\qvc{\kern1ex\rdt\kern-1ex}%
\DeclareRobustCommand*\?{\llap{\char3}}%
\DeclareRobustCommand*\<{\llap{\char4}}%
\DeclareRobustCommand*\rs{\NormalFont\thinspace}%
\DeclareRobustCommand\re{\thinspace}%
\DeclareRobustCommand*\rdt{\llap{\char19}}%
\DeclareRobustCommand*\rn[1]{\if\nstyle r{\NormalFont ##1}\else##1\fi}%
% Switch to "pen" mode of the current family
\DeclareRobustCommand\pen{\expandafter\dn@penselect\f@family!?}%
\def\dn@penselect##1##2##3##4?{\if##1d\if##2n% Only available for dn* fonts
    \if##3p% do nothing, pen already selected
    \else\if##3!\fontfamily{dnp}\selectfont % original pen font
    \else \fontfamily{##1##2p##3}\selectfont \fi\fi
  \fi \fi}%
} % end of \dn@commands
%
% Switch between Devanagari and CM numerals
%
\DeclareRobustCommand*\dnnum{\let\nstyle=d}%
\DeclareRobustCommand*\cmnum{\let\nstyle=r}%
\cmnum   % default
%
% Vedic intonation mark macros (based on Kevin Carmody's code from dnmacs.tex)
%
% Use these macros in DN files to enable and use Vedic intonation macros.
%
\DeclareRobustCommand\dnveda{%
  \DeclareRobustCommand\_{\anudattavar}%
  \DeclareRobustCommand\={\anudattafix}%
  \DeclareRobustCommand\|{\svarita}%
  \DeclareRobustCommand\~{\padasep}}
%
\DeclareRobustCommand\dnvedatrans{%
  \DeclareRobustCommand\_{\underline}%
  \DeclareRobustCommand\|{\svaritatrans}}%
%
\DeclareRobustCommand\dnsamaveda{%
  \DeclareRobustCommand\^{\samatone}%
  \DeclareRobustCommand\@{\vedicanusvara}}
%
\DeclareRobustCommand\dnsamavedatrans{%
  \DeclareRobustCommand\^{\samatonetrans}}
%
\DeclareRobustCommand*\anudattavar[1]{\leavevmode\setbox0=\hbox{#1}\anudep=\dp0\anuwid=\wd0
  \advance\anudep by 0.7ex\advance\anuwid by -0.1em{#1}\llap{\lower\anudep
  \hbox{\vrule width\anuwid height0.07em}%
  \hbox{\phantom{\vrule width0.1em height0.08em}}}}
%
\DeclareRobustCommand*\anudattafix[1]{\leavevmode\setbox0=\hbox{#1}\anudep=\dp0\anuwid=\wd0
  \advance\anudep by 0.7ex{#1}\llap{\lower\anudep
  \hbox to\anuwid{\hss\vrule width0.5em height0.07em\hss}}}
%
\DeclareRobustCommand*\svarita[1]{\leavevmode\hbox{#1}%
  \llap{\raise5.7ex\hbox{\vrule height2.5ex width0.08em}%
  \hbox{\phantom{\vrule height2.5ex width0.15em}}}}
%
\DeclareRobustCommand*\svaritatrans[1]{\leavevmode\hbox{#1}%
  \llap{\raise1.7ex\hbox{\vrule height0.8ex width0.08em}%
  \hbox{\phantom{\vrule height0.8ex width0.08em}}}}
%
\DeclareRobustCommand\padasep{\leavevmode\hbox{%
  \kern-0.15em\raise2.42ex\hbox{\char255}%
  \kern-0.15em\raise2.42ex\hbox{\char255}%
  \kern-0.15em\raise2.42ex\hbox{\char255}}}
%
\DeclareRobustCommand*\samatone[2]{\leavevmode\hbox{#1}%
  \llap{\raise9.5ex\hbox{\dnnum\dn@tf #2}%
  \hbox{\phantom{\vrule height2.5ex width0.15em}}}}
%
\DeclareRobustCommand\vedicanusvara{\leavevmode{\kern1.0ex\lower1.5ex\hbox{\char32}}%
  \kern-2.0ex\raise3.7ex\llap{\char94}\kern3.8ex}
%
\DeclareRobustCommand*\samatonetrans[1]{\(^{#1}\)}
%
% Macro for selection of Sama Veda tone font \dn@tf
%
\def\dn@tf{%
  \ifdim\f@size\p@<8pt \@tempdima5pt \else
  \ifdim\f@size\p@<10pt \@tempdima6pt \else
  \ifdim\f@size\p@<11pt \@tempdima7pt \else
  \ifdim\f@size\p@<14.4pt \@tempdima8pt \else
  \ifdim\f@size\p@<17.2pt \@tempdima10pt \else
  \ifdim\f@size\p@<18pt \@tempdima14.4pt \else
        \@tempdima .8\f@size \fi \fi \fi \fi \fi \fi
  \fontsize\@tempdima\@tempdima\selectfont}
%
% Registers for Vedic intonation marks
%
\newdimen\anudep
\newdimen\anuwid
%
% Fix for the table of contents and enumerations
%
\let\dn@old@starttoc\@starttoc
\renewcommand\@starttoc{\afterassignment\NormalFont\dn@old@starttoc}
  \AtBeginDocument{%
    \let\dn@old@labelenumi\labelenumi
    \let\dn@old@labelenumii\labelenumii
    % Change the definitions in the \dn mode only
    \renewcommand\labelenumi{\ifdnmode{\NormalFont\theenumi.}\else \dn@old@labelenumi\fi}%
    \renewcommand\labelenumii{\ifdnmode{\NormalFont(\theenumii)}\else \dn@old@labelenumii\fi}%
  }%

% Select roman characters (comma, question and exclamation mark) from the correct
% font, pen fonts always require italics

\DeclareRobustCommand\NormalFont{\dn@penitshape
    \fontencoding{\DNencdefault}\fontfamily{\DNrmdefault}\selectfont}
\def\dn@penitshape{%
  \def\dn@testpen##1##2##3##4\dn@{%
    \if##1d\if##2n\if##3p\itshape\fi\fi\fi}%
  \expandafter\dn@testpen\f@family....\dn@}

% Defaults: change them on your own risk

\def\DNencdefault{OT1}
\def\DNrmdefault{cmr}

% This code makes global nonconflicting robust declarations at the beginning
% of the document

\def\DeclareDnCommand{\@ifstar{\declare@dn@command}{\declare@dn@command}}

\def\declare@dn@command#1{%
   \ifx#1\@undefined\let#1\relax\else\ifx#1\relax\else
   \edef\reserved@a{\string#1}%
   \def\reserved@b{#1}%
   \edef\reserved@b{\expandafter\strip@prefix\meaning\reserved@b}%
   \edef\@tempa{%
      \ifx\reserved@a\reserved@b
         \noexpand\x@protect
         \noexpand#1%
      \fi
      \noexpand\protect
      \expandafter\noexpand\csname
         \expandafter\@gobble\string#1 \endcsname
   }%
   \ifx#1\@tempa \else
   \expandafter\let\csname dev@\reserved@a @saved\endcsname#1
   \expandafter\new@command\csname
      \expandafter\@gobble\string#1 \endcsname
          {\csname dev@\reserved@a @saved\endcsname}%
   \fi\fi\fi \let\@tempa\relax \new@command\@tempa
}

\def\InitialDnDeclaration#1{%
\let\dev@saved\DeclareRobustCommand
\let\DeclareRobustCommand\DeclareDnCommand#1
\let\DeclareRobustCommand\dev@saved}

\AtBeginDocument{\InitialDnDeclaration\dn@commands}

% Devanagari representation of counters (similar as \arabic and \roman)

\def\devanagari#1{\expandafter\@devanagari\csname c@#1\endcsname}
\def\@devanagari#1{{\dn\number#1}}

\def\hindidatearabic{\let\@datenumeric\@arabic}
\def\hindidatedevanagari{\let\@datenumeric\@devanagari}
\hindidatedevanagari

% Captions
% for (partial) compatibility with language switching

\def\datehindi{\def\today{\@datenumeric\day\space\ifcase\month\or
{\dn jnvrF}\or
{\dn \327wrvrF}\or
{\dn mAc\0}\or
{\dn a\3FEw\4l}\or
{\dn mI}\or
{\dn \8{j}n}\or
{\dn \7{j}lAI}\or
{\dn ag-t}\or
{\dn EstMbr}\or
{\dn a\8{\3C4w}br}\or
{\dn nvMbr}\or
{\dn EdsMbr}\fi\space\@datenumeric\year}}

\def\captionshindi{%
\def\abstractname{{\dn sArA\2f}}%
\def\appendixname{{\dn pErEf\309wV}}%
\def\bibname{{\dn s\2df\0 g\5\306wT}}% (?)
\def\ccname{}%
\def\chaptername{{\dn a@yAy}}%
\def\contentsname{{\dn Evqy{\rs -\re}\8{s}cF}}%
\def\enclname{{\dn }}%
\def\figurename{{\dn Ec/}}%
\def\headpagename{{\dn \9{p}\309wW}}%
\def\headtoname{}%
\def\indexname{{\dn \8{s}cF}}%
\def\listfigurename{{\dn Ec/o{\qva} kF \8{s}cF}}%
\def\listtablename{{\dn tAElkAao\2 kF \8{s}cF}}%
\def\pagename{{\dn \9{p}\309wW}}%
\def\partname{{\dn K\317wX}}%
\def\prefacename{{\dn \3FEw-tAvnA}}%
\def\refname{{\dn hvAl\?}}%
\def\tablename{{\dn tAElkA}}%
\def\seename{{\dn d\?EKe}}%
\def\alsoname{{\dn aOr d\?EKe}}%
\def\alsoseename{{\dn aOr d\?EKe}}}

\def\datemodernhindi{\def\today{\@datenumeric\day\space\ifcase\month\or
{\dn jnvrF}\or
{\dn \327wrvrF}\or
{\dn mAc\0}\or
{\dn a\3FEw\4l}\or
{\dn mI}\or
{\dn \8{j}n}\or
{\dn \7{j}lAI}\or
{\dn ag-t}\or
{\dn EstMbr}\or
{\dn a?\8{t}br}\or
{\dn nvMbr}\or
{\dn EdsMbr}\fi\space\@datenumeric\year}}

\def\captionsmodernhindi{%
\def\abstractname{{\dn sArA\2f}}%
\def\appendixname{{\dn pErEf\309wV}}%
\def\bibname{{\dn s\2df\0 g\5\306wT}}% (?)
\def\ccname{}%
\def\chaptername{{\dn a@yAy}}%
\def\contentsname{{\dn Evqy{\rs -\re}\8{s}cF}}%
\def\enclname{{\dn }}%
\def\figurename{{\dn Ec/}}%
\def\headpagename{{\dn \9{p}\309wW}}%
\def\headtoname{}%
\def\indexname{{\dn \8{s}cF}}%
\def\listfigurename{{\dn Ec/o{\qva} kF \8{s}cF}}%
\def\listtablename{{\dn tAElkAao\2 kF \8{s}cF}}%
\def\pagename{{\dn \9{p}\309wW}}%
\def\partname{{\dn K\317wX}}%
\def\prefacename{{\dn \3FEw-tAvnA}}%
\def\refname{{\dn hvAl\?}}%
\def\tablename{{\dn tAElkA}}%
\def\seename{{\dn d\?EKe}}%
\def\alsoname{{\dn aOr d\?EKe}}%
\def\alsoseename{{\dn aOr d\?EKe}}}

\AtBeginDocument{%
\providecommand\dateUSenglish{\def\today{\ifcase\month\or
  January\or February\or March\or April\or May\or June\or
  July\or August\or September\or October\or November\or December\fi
  \space\number\day, \number\year}}

\providecommand\dateenglish{\def\today{\ifcase\day\or
  1st\or 2nd\or 3rd\or 4th\or 5th\or
  6th\or 7th\or 8th\or 9th\or 10th\or
  11th\or 12th\or 13th\or 14th\or 15th\or
  16th\or 17th\or 18th\or 19th\or 20th\or
  21st\or 22nd\or 23rd\or 24th\or 25th\or
  26th\or 27th\or 28th\or 29th\or 30th\or
  31st\fi
  ~\ifcase\month\or
  January\or February\or March\or April\or May\or June\or
  July\or August\or September\or October\or November\or December\fi
  \space \number\year}}

\providecommand\captionsenglish{%
\def\abstractname{Abstract}%
\def\appendixname{Appendix}%
\def\bibname{Bibliography}%
\def\ccname{cc}%
\def\chaptername{Chapter}%
\def\contentsname{Contents}%
\def\enclname{encl}%
\def\figurename{Figure}%
\def\headpagename{Page}%
\def\headtoname{To}%
\def\indexname{Index}%
\def\listfigurename{List of Figures}%
\def\listtablename{List of Tables}%
\def\pagename{Page}%
\def\partname{Part}%
\def\prefacename{Preface}%
\def\prefacename{Preface}%
\def\refname{References}%
\def\tablename{Table}%
\def\seename{see}%
\def\alsoseename{see also}}
}

%
% The end.
% ~~~~~~~~
\endinput



Here is the log file, created by RCS. (Log from dev.sty is also kept here.)

% $Log: devanagari.sty,v $
% Revision 1.13  2009-02-09 10:11:56  icebearsoft
% Fix by Kevin Carmody: Use \dnveda only for Devanagari, and use a new command, \dnvedatrans, for
% transliteration.
%
% Revision 1.12  2008-03-09 15:58:00  icebearsoft
% Citation macros moved to a separate package. Switch \ifdnmode implemented. Email address corrected.
%
% Revision 1.11  2007/01/18 22:40:37  icebearsoft
% I forgot to change the date...
%
% Revision 1.10  2007/01/18 22:38:24  icebearsoft
% Enhanced switching to \dn so that it undoes language specific
% modifications introduced by babel, mainly \catcodes. This should not
% be done if invoked as a babel module because this action is done
% within \selectlanguage{...} or \begin{otherlanguage}{...}. The module
% will thus require another update in a short time.
%
% Revision 1.9  2006/11/16 10:18:18  icebearsoft
% Packages identified by \ProvidesPackage
%
% Revision 1.8  2006/11/15 11:08:01  icebearsoft
% Code which conflicts with hyperref.sty was removed. It seems that this code
% is not used any more and one user successfully used this version with
% a lot of other packages.
%
% Revision 1.7  2006/10/08 07:40:07  icebearsoft
% Modifications by Kevin Carmody:
% Switching between \cmum and \dnnum made simpler
% Manual updated
%
% Revision 1.6  2006/09/27 08:10:22  icebearsoft
% Default for the numerals was defined in a wrong place so that numerals did
% not work properly unless \cmnum or \dnnum was used globally at the beginning
% of the document.
%
% Revision 1.5  2006/09/26 15:54:20  icebearsoft
% Switches \cmnum and \dnnum made global. There is some conflict between this package
% and beng.sty: if beng.sty is loaded after devanagari.sty, global version of \cmnum
% will cease to work.
%
% Revision 1.4  2006/07/01 16:39:36  icebearsoft
% Order of option declarations changed. The Hindi language definitionn file
% for babel explicitely requests devanagari.sty with option `nocatcodes'.
% The new order of declarations allows to override it with `catcodes' on
% `compat' as an option in the \documentclass command.
%
% Revision 1.3  2006/06/21 09:56:05  icebearsoft
% Definition of English captions deferred in order to prevent colisions
% with babel.
%
% Revision 1.2  2006/05/04 15:09:20  icebearsoft
% \NormalFont made robust, otherwise sectioning commands do not work.
%
% Revision 1.1  2006/03/31 09:53:50  icebearsoft
% As suggested by TeX Live developers, dev.sty was renamed to devanagari.sty
% and dev.sty just loads devanagari.sty for compatibility with old documents.
%
% Manual is updated accordingly. Moreover, new features of the preprocessor
% are mentioned and an example of using custom LaTeX command si given.
%
% Revision 1.2  2006/03/13 12:36:23  icebearsoft
% Punctuation is now taken from OT1/cmr font with correct series/shape.
%
% Revision 1.1  2006/03/09 14:16:28  icebearsoft
% Files moved to a new location.
%
% Revision 1.8  2005/03/30 14:24:23  icebearsoft
% The name of October fixed
%
% Revision 1.7  2005/03/30 09:29:15  icebearsoft
% Added forgotten \dn in the definition of \@devanagari.
%
% Revision 1.6  2005/03/29 13:11:42  icebearsoft
% \devanagari{countername} was implemented similarly as \arabic{countername} or
% \roman{countername}
%
% \captionshindi, \datehindi, \captionsmodernhindi, \datemodernhindi implemented,
% texts in the original Velthuis transliteration are provided in captions.dn
%
% \today in \datehindi and \datemodernhindi (Europian style) displays Devanagari
% numbers. This can be switched by \hindidatedevanagari and \hindidatearabic,
% respectively.
%
% See the feature tracker for more comments.
%
% Revision 1.5  2005/03/15 09:15:29  icebearsoft
% Nepali added to the \pen macro.
%
% Revision 1.4  2005/03/15 07:45:14  apandey
% Added global option 'pennepali'.
%
% Revision 1.3  2005/03/14 08:48:50  icebearsoft
% New package options bombay. calcutta, nepali, pen, penbombay, pencalcutta for
% global selection of the font family (it will work with automatically generated
% captions). If none of them is used, \dnoriginal will be used.
%
% New macro \dnfamilydefault which stores the default family of DN fonts. Default
% depends on the above mentioned package options. The user is allowed to redefine
% it by \renewcommand.
%
% New \pen macro which switches to the "pen" variant of the current family.
%
% Vedic intonation marks macros \dnveda and \dnsamaveda implemented according to
% the code from dnmacs.tex. I do not mind using \= because the \dn macros make
% already use of \< so that the tabbing environment cannot be used within \dn.
%
% Revision 1.2  2005/01/28 04:36:42  wujastyk
% This is the devnag project as of 1 December 2004.
% See doc/changes for details.
%
% Dominik Wujastyk
% 28 Jan 2005
%
% Revision 2.11 2003/08/03 23:05:50  APANDEY
% o Cleaned up comments
%
% Revision 2.1a 2003/02/29 22:51:10  APANDEY
% o Added support for the Bombay, Calcutta, and Nepali font families
% o Removed generic alternate font families
%
% Revision 2.1  2003/07/01 12:45:01  KC
% o Added alternate, pen, and alternate pen font families.
%
% Revision 1.5  2003/04/09 17:15:12  APANDEY
% o Fixed citation macros to prevent output of double brackets.
%
% Revision 1.4  2003/06/09 14:37:34  APANDEY
% o Incorporated 'nocatcodes' package option, captions,
%   and date macros developed by Zdenek Wagner
%
% Revision 1.3  2003/03/13 15:13:43  APANDEY
% o Tidied up comments
%
% Revision 1.2  1999/09/25 15:13:43  APANDEY
% o Changed use declaration macros to reflect change of
%   font encoding from OT1 to U.
%
% Revision 1.14  1998/08/26 17:41:54  UCGADKW
% o just get the revision numbers back on track.
%
% Revision 1.10  1998/08/26 17:30:46  UCGADKW
% o  Changed name of dev2e.sty to dev.sty
% o  Many other changes to make the package more "LaTeX2e-like".
% o  Followed the suggestions of Francois Patte and David Kastrup,
%    to whom many thanks (but no blame for my errors).
% o  Most unsatisfactory change: moved \do@dev@catcodes back into
%    the open, instead of being just active inside {\dn } environments.
%    This was necessary to avoid "illegal character" messages from
%    text inside \section{} arguments, etc.
%
% Revision 1.9  1998/06/22 12:19:08  UCGADKW
% o  Corrected \ProvidesFile usage and added "Revision: 1.12" string to it;
% o  Moved RCS log entries to after \endinput.
%
% Revision 1.11  1998/06/22 12:11:17  UCGADKW
% o  added $Revision: 1.13 $ to \ProvidesFile;
% o  moved RCS log to after \endinput.
%
% Revision 1.10  1998/06/22 12:10:00  UCGADKW
% o  added $Revision $ to \ProvidesFile;
% o  moved RCS Log to after \endinput.
%
% Revision 1.9  1998/06/22 12:05:20  UCGADKW
% o  corrected \ProvidesFile argument.
%
% Revision 1.8  1998/06/15 12:52:12  dom
% *** empty log message ***
%
% Revision 1.7  1998/06/15 12:50:00  dom
% o  \chyph now referred to from OT1dn.fd;
% o  Tidied up banner message.
%
% Revision 1.6  1995/05/26 13:48:56  dom
% *** empty log message ***
%
% Revision 1.5  1995/01/24 12:33:48  dom
% o replaced \if statements with tokens,
% o made an official "hyphenate" option.
%
% Revision 1.2  1994/06/15  16:22:13  Dominik_Wujastyk
% o  tidied up comments.
%
% Revision 1.1  1994/06/15  16:15:17  Dominik_Wujastyk
% Initial revision
%
