diff options
author | Karl Berry <karl@freefriends.org> | 2011-07-25 21:58:42 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-07-25 21:58:42 +0000 |
commit | bcb303b7f52a06cbbba1de3663da7748de9ee734 (patch) | |
tree | f0ea8c65c3c7c1afe4ddb5435c158525b19441f3 /Master | |
parent | d82f21bf5bbb6269a51a3b7045e3764cfbccd6b7 (diff) |
new xetex polyglossia-kannada (25jul11)
git-svn-id: svn://tug.org/texlive/trunk@23222 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/tex/latex/polyglossia-kannada/gloss-kannada.ldf | 104 | ||||
-rwxr-xr-x | Master/tlpkg/bin/tlpkg-ctan-check | 3 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/collection-langindic.tlpsrc | 1 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/polyglossia-kannada.tlpsrc | 0 |
4 files changed, 107 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/polyglossia-kannada/gloss-kannada.ldf b/Master/texmf-dist/tex/latex/polyglossia-kannada/gloss-kannada.ldf new file mode 100644 index 00000000000..10e1f0dcea6 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia-kannada/gloss-kannada.ldf @@ -0,0 +1,104 @@ +%% gloss-kannada.ldf +%% Copyright 2011 Aravinda VK <hallimanearavind AT gmail.com>, +%% Shankar Prasad <prasad.mvs AT gmail.com>, +%% Team Sanchaya <dev AT lists.sanchaya.net> +% +% 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 <hallimanearavind AT gmail.com>. +% +% This work consists of the file gloss-kannada.ldf +\ProvidesFile{gloss-kannada.ldf}[polyglossia: module for kannada] +\makeatletter +\PolyglossiaSetup{kannada}{ + script=Kannada, + scripttag=knda, + langtag=KNDA, + hyphennames={kannada}, + hyphenmins={2,2}, + fontsetup=true +} + +%% 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 + +\define@key{kannada}{numerals}[Kannada]{% + \def\@tmpa{#1}% + \ifx\@tmpa\tmp@western + \kannada@numeralsfalse + \fi} + + +\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}% +} + +%% Based on the settings displays rrespective numbers +\def\kannadanumber#1{% + \ifkannada@numerals + \kannadadigits{\number#1}% + \else + \number#1% + \fi +} + +\endinput diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index 14be4e1798c..2bb8dc03948 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -277,7 +277,8 @@ my @TLP_working = qw( pinlabel pitex pittetd pkfix pkfix-helper placeins placeins-plain plari plantslabels plates play plnfss plweb pmgraph pnas2009 - poemscol polski poltawski polyglossia polynom polynomial + poemscol polski poltawski + polyglossia polyglossia-kannada polynom polynomial polytable postcards poster-mac powerdot powerdot-FUBerlin ppr-prv pracjourn preprint prerex present presentations prettyref preview printlen proba probsoln procIAGssymp diff --git a/Master/tlpkg/tlpsrc/collection-langindic.tlpsrc b/Master/tlpkg/tlpsrc/collection-langindic.tlpsrc index 25b3e6fdded..37affbd42e6 100644 --- a/Master/tlpkg/tlpsrc/collection-langindic.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-langindic.tlpsrc @@ -10,6 +10,7 @@ depend hyphen-indic depend hyphen-sanskrit depend itrans depend malayalam +depend polyglossia-kannada depend sanskrit depend velthuis depend wnri diff --git a/Master/tlpkg/tlpsrc/polyglossia-kannada.tlpsrc b/Master/tlpkg/tlpsrc/polyglossia-kannada.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/polyglossia-kannada.tlpsrc |