%% gloss-kannada.ldf %% Language definition file (part of polyglossia v2.2 -- 2024/07/15) %% %% Copyright 2011 Aravinda VK , %% Shankar Prasad , %% Team Sanchaya % % 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 Aravinda VK . % % This work consists of the file gloss-kannada.ldf \ProvidesFile{gloss-kannada.ldf}[polyglossia: module for Kannada] \PolyglossiaSetup{kannada}{ bcp47=kn, bcp47-language=kn, bcp47-region=IN, bcp47-script=Knda, script=Kannada, scripttag=knda, langtag=KAN, hyphennames={kannada}, hyphenmins={2,2}, fontsetup=true, localnumeral=kannadanumerals } % BCP-47 compliant aliases \setlanguagealias*{kannada}{kn} %% Defining Kannada digits equivalents to english \def\kannadadigits#1{\expandafter\@kannada@digits #1@} \def\@kannada@digits#1{% \ifx @#1% then terminate \else \ifx0#1೦\else\ifx1#1೧\else\ifx2#1೨\else\ifx3#1೩\else\ifx4#1೪\else\ifx5#1೫\else\ifx6#1೬\else\ifx7#1೭\else\ifx8#1೮\else\ifx9#1೯\else#1\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi \expandafter\@kannada@digits \fi } %% \kannada@numerals variable will be set to true or false depending on the option provided in \setmainlanguage %% \kannada@numerals true by default or when we set \setmainlanguage[numerals=Kannada]{kannada} %% \kannada@numerals false when we set \setmainlanguage[numerals=Western]{kannada} \def\tmp@western{Western} \newif\ifkannada@numerals \kannada@numeralstrue \DeclareKeys[polyglossia/gloss/kannada] { numerals.choice:, numerals / kannada.code = {% \kannada@numeralstrue }, numerals / western.code = {% \kannada@numeralsfalse }, numerals.default:n = kannada } \def\captionskannada{% \def\prefacename{ಮುನ್ನುಡಿ}% \def\refname{ಉಲ್ಲೇಖಗಳು}% \def\abstractname{ಸಾರಾಂಶ}% \def\bibname{ಗ್ರಂಥಸೂಚಿ}% \def\chaptername{ಅಧ್ಯಾಯ}% \def\appendixname{ಅನುಬಂಧ}% \def\contentsname{ವಿಷಯಗಳು}% \def\listfigurename{ಚಿತ್ರಗಳ ಪಟ್ಟಿ}% \def\listtablename{ಕೋಷ್ಟಕಗಳ ಪಟ್ಟಿ}% \def\indexname{ಸೂಚಿ}% \def\figurename{ಚಿತ್ರ}% \def\tablename{ಕೋಷ್ಟಕ}% \def\partname{ಭಾಗ}% \def\enclname{encl}% \def\ccname{cc}% \def\headtoname{ಗೆ}% \def\pagename{ಪುಟ}% \def\seename{ನೋಡು}% \def\alsoname{ಇದನ್ನೂ ಸಹ ನೋಡು}% \def\proofname{ಕರಡುಪ್ರತಿ}% } \def\datekannada{% \def\kannadamonth{% \ifcase\month\or ಜನವರಿ\or ಫೆಬ್ರವರಿ\or ಮಾರ್ಚ್\or ಏಪ್ರಿಲ್\or ಮೇ\or ಜೂನ್\or ಜುಲೈ\or ಆಗಷ್ಟ್\or ಸೆಪ್ಟೆಂಬರ್\or ಅಕ್ಟೋಬರ್\or ನವಂಬರ್\or ಡಿಸಂಬರ್\fi}% \def\today{\kannadanumber\day\space\kannadamonth\space\kannadanumber\year}% } \newcommand{\kannadanumerals}[2]{\kannadanumber{#2}} %% Based on the settings displays respective numbers \def\kannadanumber#1{% \ifkannada@numerals \kannadadigits{\number#1}% \else \number#1% \fi } \endinput