% UTF-8 strings kindly provided by Zdenĕk Wagner, 10-03-2008 % with corrections and additional contributions by Anshuman Pandey % TODO: add option for velthuis transliteration with link to % Velthuis Devanagari project. \ProvidesFile{gloss-hindi.ldf}[polyglossia: module for hindi] \RequirePackage{devanagaridigits} \PolyglossiaSetup{hindi}{ script=Devanagari, scripttag=deva, langtag=HIN, %% hyphennames={hindi,!sanskrit}, TODO: implement fallback patterns (with ! prefix) fontsetup=true, localnumeral=hindinumerals %TODO nouppercase=true, } \ifx\l@hindi\@undefined% \ifx\l@sanskrit\@undefined% \xpg@nopatterns{Hindi}% \adddialect\l@hindi\l@nohyphenation% \else \xpg@warning{No hyphenation patterns were loaded for Hindi\MessageBreak I will use the patterns for Sanskrit instead} \adddialect\l@hindi\l@sanskrit% \fi \fi \def\hindi@language{% \polyglossia@setup@language@patterns{hindi}% } \def\tmp@western{Western} \newif\ifhindi@devanagari@numerals \hindi@devanagari@numeralstrue \define@key{hindi}{numerals}[Devanagari]{% \def\@tmpa{#1}% \ifx\@tmpa\tmp@western \hindi@devanagari@numeralsfalse \fi} \newcommand{\hindinumerals}[2]{\hindinumber{#2}} \def\hindinumber#1{% \ifhindi@devanagari@numerals \devanagaridigits{\number#1}% \else \number#1% \fi} \def\captionshindi{% \def\abstractname{सारांश}% \def\appendixname{परिशिष्ट}% \def\bibname{संदर्भ ग्रंथ}% \def\ccname{}% \def\chaptername{अध्याय}% \def\contentsname{विषय सूची}% \def\enclname{}% \def\figurename{चित्र}% रेखाचित्र \def\headpagename{पृष्ठ}% \def\headtoname{}% \def\indexname{सूची}% % सूचक % अनुक्रमणिका % अनुक्रमणि \def\listfigurename{चित्रों की सूची}% \def\listtablename{तालिकाओं की सूची}% \def\pagename{पृष्ठ}% \def\partname{खणड}% \def\prefacename{प्रस्तावना}% प्राक्कथन \def\refname{हवाले}% \def\tablename{तालिका}% \def\seename{देखिए}% \def\alsoname{और देखिए}% \def\alsoseename{और देखिए}% } \def\datehindi{% \def\today{\hindinumber\day\space\ifcase\month\or जनवरी\or फ़रवरी\or मार्च\or अपरैल\or मई\or जून\or जलाई\or अगस्त\or सितम्बर\or अक्तूबर\or नवम्बर\or दिसम्बर\fi \space\hindinumber\year}% } % Save original \MakeUppercase definition \let\xpg@save@MakeUppercase\MakeUppercase \def\blockextras@hindi{% \def\MakeUppercase##1{##1}% } \def\noextras@hindi{% % restore original \MakeUppercase definition \let\MakeUppercase\xpg@save@MakeUppercase% } \endinput