% Language definition file (part of polyglossia v2.2 -- 2024/07/15) % % 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}{ bcp47=hi, bcp47-language=hi, bcp47-script=Deva, script=Devanagari, scripttag=deva, langtag=HIN, %% hyphennames={hindi,!sanskrit}, TODO: implement fallback patterns (with ! prefix) fontsetup=true, localnumeral=hindinumerals %TODO nouppercase=true, } % BCP-47 compliant aliases \setlanguagealias*{hindi}{hi} \ifx\l@hindi\@undefined% \ifx\l@sanskrit\@undefined% \XPGNoPatternsFallback{hindi}% \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{% \SetupPolyglossiaLangPatterns{hindi}% } \newif\ifhindi@devanagari@numerals \hindi@devanagari@numeralstrue \DeclareKeys[polyglossia/gloss/hindi] { numerals.choice:, numerals / devanagari.code = {% \hindi@devanagari@numeralstrue \SetLanguageKeys{hindi}{bcp47-extension-u=nu-deva}% }, numerals / western.code = {% \hindi@devanagari@numeralsfalse \SetLanguageKeys{hindi}{bcp47-extension-u=nu-latn}% }, numerals.default:n = devanagari, numerals/unknown.code = \xpg@warning{Unknown Hindi numeral `#1'} } % Register default options \InitializeGlossOptions{hindi}{numerals=devanagari} \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\glossaryname{शब्दार्थ सूची}% \def\headpagename{पृष्ठ}% \def\headtoname{}% \def\indexname{सूची}% % सूचक % अनुक्रमणिका % अनुक्रमणि \def\listfigurename{चित्रों की सूची}% \def\listtablename{तालिकाओं की सूची}% \def\pagename{पृष्ठ}% \def\partname{खण्ड}% \def\prefacename{प्रस्तावना}% प्राक्कथन \def\proofname{प्रमाण}% \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}% } \endinput