summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/xelatex/polyglossia
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-10-14 23:30:57 +0000
committerKarl Berry <karl@freefriends.org>2011-10-14 23:30:57 +0000
commitdd175f53432a083e1b53e4b7b8095c741c231dd1 (patch)
tree9ef815fd7c0829fedd880316fa9207d766104230 /Master/texmf-dist/source/xelatex/polyglossia
parent78e355dc53c405a33267579fdc7a76db10c3824a (diff)
polyglossia 1.2.0cc (14oct11)
git-svn-id: svn://tug.org/texlive/trunk@24291 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/xelatex/polyglossia')
-rw-r--r--Master/texmf-dist/source/xelatex/polyglossia/polyglossia.dtx403
1 files changed, 348 insertions, 55 deletions
diff --git a/Master/texmf-dist/source/xelatex/polyglossia/polyglossia.dtx b/Master/texmf-dist/source/xelatex/polyglossia/polyglossia.dtx
index b9140555aa1..525802eb613 100644
--- a/Master/texmf-dist/source/xelatex/polyglossia/polyglossia.dtx
+++ b/Master/texmf-dist/source/xelatex/polyglossia/polyglossia.dtx
@@ -2,7 +2,7 @@
% polyglossia.dtx generated using mkpolyglossiadtx.pl
% (derived from makedtx.pl version 0.94b (c) Nicola Talbot)
%
-% Created on 2011/10/3 1:06
+% Created on 2011/10/13 22:17
%<*internal>
\iffalse
%</internal>
@@ -10,7 +10,7 @@
¦----------------------------------------------¦
¦ ¦
- ¦ THE POLYGLOSSIA PACKAGE v1.2.0b ¦
+ ¦ THE POLYGLOSSIA PACKAGE v1.2.0cc ¦
¦ ¦
¦ Modern multilingual typesetting with XeLaTeX ¦
¦ ¦
@@ -55,16 +55,27 @@ and follow the instructions displayed.
BUGS
Users are encouraged to report bugs on the github tracker:
-http://github.com/fc7/polyglossia/issues
+http://github.com/reutenauer/polyglossia/issues
CHANGES
-1.2.0b (03-10-2011)
+1.2.0cc (12-10-2011) [First update by Arthur Reutenauer]
+ * Update to gloss-italian.ldf by Claudio Beccari, incorporating changes
+ by Enrico Gregorio.
+ * Conclude every gloss file with \makeatother to match the initial
+ \makeatletter.
+ * Conclude polyglossia.sty with \ExplSyntaxOff to match the initial
+ \ExplSyntaxOn.
+ * Added gloss file for Kannada, contributed by Aravinda VK and others.
+ * Corrections to the gloss-dutch.ldf thanks to Wouter Bolsterlee.
+ * Several patches by Enrico Gregorio, fixing long-standing bugs.
+
+1.2.0b (03-10-2011) [Update by Philipp Stephani]
* Load xkeyval package explicitly since newer versions
of fontspec don't load it any more
-1.2.0a (27-07-2010)
+1.2.0a (27-07-2010) [Last update by François Charette]
* Initialize \fontfamily acc to value of \familydefault
(Fixes a bug when using polyglossia with beamer)
* Remove spurious space in def of \dateenglish
@@ -186,8 +197,12 @@ CHANGES
------------------------------
- François Charette, July 2010
- <firmicus ατ gmx δοτ net>
+ Arthur Reutenauer, October 2011
+ <arthur 'dot' reutenauer 'at' normalesup 'dot' org>
+
+ Original author:
+ François Charette
+ <firmicus ατ gmx δοτ net>
------------------------------
%</README>
%<*internal>
@@ -204,14 +219,15 @@ CHANGES
____________________________
The polyglossia package
- (C) 2008–2011 François Charette
+ (C) 2008–2010 François Charette
+ (C) 2011 Arthur Reutenauer
License information appended
\endpreamble
\postamble
- Copyright (C) 2011 by François Charette <firmicus ατ gmx δοτ net>
+ Copyright (C) 2011 by Arthur Reutenauer <arthur 'dot' reutenauer 'at' normalesup 'dot' org>
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.3
@@ -223,7 +239,7 @@ CHANGES
This work has the LPPL maintenance status `maintained'.
- The Current Maintainer of this work is François Charette.
+ The Current Maintainer of this work is Arthur Reutenauer.
\endpostamble
@@ -270,6 +286,7 @@ CHANGES
\generate{\file{gloss-interlingua.ldf}{\from{polyglossia.dtx}{gloss-interlingua.ldf}}}
\generate{\file{gloss-irish.ldf}{\from{polyglossia.dtx}{gloss-irish.ldf}}}
\generate{\file{gloss-italian.ldf}{\from{polyglossia.dtx}{gloss-italian.ldf}}}
+\generate{\file{gloss-kannada.ldf}{\from{polyglossia.dtx}{gloss-kannada.ldf}}}
\generate{\file{gloss-lao.ldf}{\from{polyglossia.dtx}{gloss-lao.ldf}}}
\generate{\file{gloss-latin.ldf}{\from{polyglossia.dtx}{gloss-latin.ldf}}}
\generate{\file{gloss-latvian.ldf}{\from{polyglossia.dtx}{gloss-latvian.ldf}}}
@@ -391,7 +408,7 @@ CHANGES
%%%
%% fontspec declarations:
-\setromanfont[Mapping=tex-text]{Linux Libertine}
+\setromanfont[Mapping=tex-text]{Linux Libertine O}
\defaultfontfeatures{Scale=MatchLowercase}
\setmonofont{DejaVu Sans Mono}
\setsansfont{Lucida Sans Unicode}
@@ -427,7 +444,7 @@ CHANGES
% \fontspec{GFS Ambrosia}
% Π$\;\,$ο$\;\,$λ$\;\,$υ$\;\,$γ$\;\,$λ$\;\,$ω$\;\,$σ$\;\,$σ$\;\,$ι$\;\,$α}\\[16pt]
% \color{myblue}Polyglossia: A Babel Replacement for \XeLaTeX}
-% \author{\scshape\color{myblue}François Charette}
+% \author{\scshape\color{myblue}François Charette\\\color{myblue}Current maintainer: \scshape Arthur Reutenauer}
% \date{\filedate \qquad \fileversion\\
% \footnotesize (\textsc{pdf} file generated on \today)}
%
@@ -1096,13 +1113,14 @@ CHANGES
% One day I may rewrite \pkg{farsical} from scratch using the algorithm in
% Reingold \& Gershowitz (ref.~n.~\ref{reingold}).}
% Here we have renamed the command \cmd\ftoday\ to
-% \Cmd\Jalalitoday. %Example: today is \Jalalitoday.
+% \Cmd\Jalalitoday.
+% ^^AExample: today is \Jalalitoday.
%
%
% ^^A\section{Varia}
%
%
-% \section{Acknowledgements}
+% \section{Acknowledgements (by François Charette)}
% \pkg{Polyglossia} is notable for being a recycle box of previous contributions
% by other people. I take this opportunity to thank the following individuals,
% whose splendid work has made my task almost trivial in comparision: Johannes
@@ -1139,7 +1157,7 @@ CHANGES
% \subsection{polyglossia.sty}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{polyglossia}[2011/10/01 v1.2.0b
+\ProvidesPackage{polyglossia}[2011/10/12 v1.2.0cc
Babel replacement for XeLaTeX]
\RequirePackage{etoolbox}
\RequirePackage{makecmds}
@@ -1358,9 +1376,8 @@ CHANGES
\fi}%
{\xpg@warning{#1: Invalid value \val\space for key "direction"}}%
\define@key[xpg@setup]{#1}{hyphenmins}[{2,3}]%
- {\edef\@tmpfirst{\xpg@first##1}%
- \edef\@tmpsecond{\xpg@second##1}%
- \setlocalhyphenmins{#1}{\@tmpfirst}{\@tmpsecond}}%
+ {\begingroup\edef\x{\endgroup
+ \noexpand\setlocalhyphenmins{#1}{\xpg@first##1}{\xpg@second##1}}\x}
\define@boolkey[xpg@setup]{#1}[#1@]{frenchspacing}[true]{%
\ifbool{#1@frenchspacing}%
{\csgappto{init@extras@#1}{\frenchspacing}}%
@@ -1593,10 +1610,14 @@ CHANGES
%\csdef{#1@language}{\language=\csname l@#1\endcsname}%
}
+\newcommand{\xpg@input}[1]{%
+ \chardef\xpg@atcatcode\catcode`\@
+ \input{#1}\catcode`\@=\xpg@atcatcode}
+
\newcommand{\setdefaultlanguage}[2][]{%
\IfFileExists{gloss-#2.ldf}%
{\ifcsundef{#2@loaded}%
- {\input{gloss-#2.ldf}%
+ {\xpg@input{gloss-#2.ldf}%
\xpg@info{Default~ language~ is~ #2}%
\def\languagename{#2}%
% This is needed because \arabic is a built-in LaTeX command:
@@ -1707,7 +1728,7 @@ CHANGES
\newcommand{\setotherlanguage}[2][]{%
\IfFileExists{gloss-#2.ldf}%
{\ifcsundef{#2@loaded}%
- {\input{gloss-#2.ldf}%
+ {\xpg@input{gloss-#2.ldf}%
\setkeys{#2}{#1}%
\edef\@tmpa{arabic}%
\edef\@tmpb{#2}%
@@ -1773,14 +1794,14 @@ CHANGES
\expandafter\providecommand\csname otherlanguage*\endcsname{}
\renewenvironment{otherlanguage*}[2][]{%
\ifcsundef{#2@loaded}%
- {\bgroup\xpg@nogloss{#2}}%
- {\bgroup\select@@language{#2}%
+ {\xpg@nogloss{#2}}%
+ {\select@@language{#2}%
\setkeys{#2}{#1}%
\use@localhyphenmins{#2}%
\ifbool{#2@frenchspacing}{\frenchspacing}{\nonfrenchspacing}%
- \csuse{inlineextras@#2}%
+ \csuse{inlineextras@#2}\csuse{date#2}%
}%
-}{\egroup}
+}{}
%Hook that other package authors can use
%(for instance biblatex):
@@ -1894,6 +1915,7 @@ CHANGES
% }%
% \expandafter\AtEndOfPackage\expandafter{\@temp}%
%}
+\ExplSyntaxOff
\ProcessOptions*
% \end{macrocode}
% \iffalse
@@ -2556,11 +2578,11 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
Adapted from hebrew.ldf (2005/03/30 v2.3h)]
\newif\if@gim@apost % whether we print apostrophes (gereshayim)
\newif\if@gim@final % whether we use final or initial letters
-\newcommand*{\hebrewnumeral}[1] % no apostrophe, no final letters
+\newrobustcmd*{\hebrewnumeral}[1] % no apostrophe, no final letters
{{\@gim@finalfalse\@gim@apostfalse\@hebrew@numeral{#1}}}
-\newcommand*{\Hebrewnumeral}[1] % apostrophe, no final letters
+\newrobustcmd*{\Hebrewnumeral}[1] % apostrophe, no final letters
{{\@gim@finalfalse\@gim@aposttrue\@hebrew@numeral{#1}}}
-\newcommand*{\Hebrewnumeralfinal}[1] % apostrophe, final letters
+\newrobustcmd*{\Hebrewnumeralfinal}[1] % apostrophe, final letters
{{\@gim@finaltrue\@gim@aposttrue\@hebrew@numeral{#1}}}
\newcommand*{\@hebrew@numeral}[1]{%
\ifnum#1<\z@\space\xpg@warning{Illegal value (#1) for Hebrew numeral}%
@@ -3386,6 +3408,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
Qershor\or Korrik\or Gusht\or Shtator\or Tetor\or Nëntor\or
Dhjetor\fi \space \number\year}}}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-albanian.ldf>
@@ -3817,6 +3840,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\let\MakeUppercase\orig@MakeUppercase%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-arabic.ldf>
@@ -3878,6 +3902,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
Նոյեմբեր\or
Դեկտեմբեր\fi
\number\day,\space\number\year}}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-armenian.ldf>
@@ -3930,6 +3955,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
d'avientu\fi\space de~\number\year}%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-asturian.ldf>
@@ -3985,6 +4011,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\DefineFormatHijriDate{bahasai}{%
\number\value{Hijriday}\space\hijrimonthbahasai{\value{Hijrimonth}}\space\number\value{Hijriyear}}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-bahasai.ldf>
@@ -4048,6 +4075,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\DefineFormatHijriDate{bahasam}{%
\number\value{Hijriday}\space\hijrimonthbahasam{\value{Hijrimonth}}\space\number\value{Hijriyear}}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-bahasam.ldf>
@@ -4097,6 +4125,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
irailaren\or urriaren\or azaroaren\or
abenduaren\fi~\number\day}}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-basque.ldf>
@@ -4183,6 +4212,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\number#1%
\fi}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-bengali.ldf>
@@ -4232,6 +4262,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\fi\space de\space\number\year}%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-brazil.ldf>
@@ -4319,6 +4350,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\breton@punctuation%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-breton.ldf>
@@ -4414,6 +4446,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\def\todayRoman{\number\day.\,\month@Roman.\,\number\year~г.}%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-bulgarian.ldf>
@@ -4551,6 +4584,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\def\inlineextras@catalan{%
\ifcatalan@babelshorthands\catalan@shorthands\fi%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-catalan.ldf>
@@ -4564,7 +4598,6 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\makeatletter
\PolyglossiaSetup{coptic}{
script=Coptic,
- direction=RL,
scripttag=copt,
langtag=COP,
hyphennames={coptic},
@@ -4600,6 +4633,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
% \def\today{<++>}%
% }
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-coptic.ldf>
@@ -4647,6 +4681,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
lipnja\or srpnja\or kolovoza\or rujna\or listopada\or studenog\or
prosinca\fi \space \number\year.}}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-croatian.ldf>
@@ -4696,6 +4731,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
října\or listopadu\or prosince\fi
\space \number\year}}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-czech.ldf>
@@ -4741,6 +4777,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
juli\or august\or september\or oktober\or november\or december\fi
\space\number\year}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-danish.ldf>
@@ -4795,6 +4832,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\let\MakeUppercase\@@MakeUppercase%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-divehi.ldf>
@@ -4850,22 +4888,22 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\def\abstractname{Samenvatting}%
\def\bibname{Bibliografie}%
\def\chaptername{Hoofdstuk}%
- \def\appendixname{Bijlage}%
+ \def\appendixname{Bijlage}%
\def\contentsname{Inhoudsopgave}%
- \def\listfigurename{Lijst van figuren}%
- \def\listtablename{Lijst van tabellen}%
+ \def\listfigurename{Lijst van figuren}%
+ \def\listtablename{Lijst van tabellen}%
\def\indexname{Index}%
\def\figurename{Figuur}%
\def\tablename{Tabel}%
\def\partname{Deel}%
- \def\enclname{Bijlage(n)}%
+ \def\enclname{Bijlage(n)}%
\def\ccname{cc}%
\def\headtoname{Aan}%
\def\pagename{Pagina}%
\def\seename{zie}%
\def\alsoname{zie ook}%
- \def\proofname{Bewijs}%
- \def\glossaryname{Verklarende Woordenlijst}%
+ \def\proofname{Bewijs}%
+ \def\glossaryname{Verklarende woordenlijst}%
\def\today{\number\day~\ifcase\month%
\or januari\or februari\or maart\or april\or mei\or juni\or
juli\or augustus\or september\or oktober\or november\or
@@ -4884,6 +4922,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\ifdutch@babelshorthands\dutch@shorthands\fi%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-dutch.ldf>
@@ -5004,6 +5043,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\fi}%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-english.ldf>
@@ -5078,6 +5118,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\let\@alph\latin@alph%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-esperanto.ldf>
@@ -5126,6 +5167,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
juuli\or august\or september\or oktoober\or november\or
detsember\fi\space\number\year.\space a.}}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-estonian.ldf>
@@ -5260,6 +5302,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\def\noextras@farsi{%
\let\MakeUppercase\@@MakeUppercase%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-farsi.ldf>
@@ -5309,6 +5352,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
syyskuuta\or lokakuuta\or marraskuuta\or joulukuuta\fi
\space\number\year}}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-finnish.ldf>
@@ -5436,6 +5480,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\french@punctuation%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-french.ldf>
@@ -5484,6 +5529,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
xullo\or agosto\or setembro\or outubro\or novembro\or decembro\fi
\space de~\number\year}}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-galician.ldf>
@@ -5669,6 +5715,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\ifgerman@babelshorthands\german@shorthands\fi
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-german.ldf>
@@ -6023,6 +6070,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\let\greek@Alph\@undefined%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-greek.ldf>
@@ -6151,6 +6199,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\def\noextras@hebrew{%
\let\MakeUppercase\@@MakeUppercase%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-hebrew.ldf>
@@ -6258,6 +6307,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\let\MakeUppercase\@@MakeUppercase%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-hindi.ldf>
@@ -6308,6 +6358,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\space\number\year}%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-icelandic.ldf>
@@ -6358,6 +6409,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
decembre\fi
\space \number\year}}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-interlingua.ldf>
@@ -6409,6 +6461,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
Mí na Samhna\or Mí na Nollag\fi
\space \number\year}}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-irish.ldf>
@@ -6418,7 +6471,8 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
%
% \subsection{gloss-italian.ldf}
% \begin{macrocode}
-\ProvidesFile{gloss-italian.ldf}[polyglossia: module for italian]
+% !TEX encoding = UTF-8 Unicode
+\ProvidesFile{gloss-italian.ldf}[polyglossia: module for italian - unofficial test version]
\makeatletter
\PolyglossiaSetup{italian}{
hyphennames={italian},
@@ -6428,6 +6482,67 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
fontsetup=true,
}
+
+%%% CHANGES START %%% by Enrico Gregorio
+\define@boolkey{italian}[italian@]{babelshorthands}[true]{}
+
+\ifsystem@babelshorthands
+ \setkeys{italian}{babelshorthands=true}
+\else
+ \setkeys{italian}{babelshorthands=false}
+\fi
+
+\ifcsundef{initiate@active@char}{%
+\input{babelsh.def}%
+\initiate@active@char{"}%
+}{}
+
+\def\italian@shorthands{%
+ \bbl@activate{"}%
+ \def\language@group{italian}%
+ \declare@shorthand{italian}{"}{%
+ \relax\ifmmode
+ \def\xpgit@next{''}%
+ \else
+ \def\xpgit@next{\futurelet\xpgit@temp\xpgit@cwm}%
+ \fi
+ \xpgit@next}%
+}
+
+%%% By Enrico Gregorio and Claudio Beccari %%%
+\def\xpgit@@cwm{\nobreak\discretionary{-}{}{}\nobreak\hskip\z@skip}
+\def\xpgit@cwm{\let\xpgit@@next\relax
+ \ifcat\noexpand\xpgit@temp a%
+ \def\xpgit@@next{\xpgit@@cwm}%
+ \else
+ \if\noexpand\xpgit@temp \string|%
+ \def\xpgit@@next##1{\xpgit@@cwm}%
+ \else
+ \if\noexpand\xpgit@temp \string<%
+ \def\xpgit@@next##1{«\ignorespaces}%
+ \else
+ \if\noexpand\xpgit@temp \string>%
+ \def\xpgit@@next##1{\unskip »}%
+ \else
+ \if\noexpand\xpgit@temp\string/%
+ \def\xpgit@@next##1{\slash}%
+ \else
+ \ifx\xpgit@temp"%
+ \def\xpgit@@next##1{?}%
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi
+ \xpgit@@next}
+
+\def\noitalian@shorthands{%
+ \@ifundefined{initiate@active@char}{}{\bbl@deactivate{"}}%
+}
+%%% CHANGES END %%%
+
+%%% ORIGINAL %%% by Claudio Beccari
\def\captionsitalian{%
\def\prefacename{Prefazione}%
\def\refname{Riferimenti bibliografici}%
@@ -6456,23 +6571,152 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
gennaio\or febbraio\or marzo\or aprile\or maggio\or giugno\or
luglio\or agosto\or settembre\or ottobre\or novembre\or
dicembre\fi\space \number\year}}
+%%% ORIGINAL END %%%
+
+%%% CHANGES START %%% by Enrico Gregorio
+\AtEndPreamble{% the user or the class might define different values
+ \edef\xpgit@savedvalues{%
+ \clubpenalty=\the\clubpenalty\space
+ \@clubpenalty=\the\@clubpenalty\space
+ \widowpenalty=\the\widowpenalty\space
+ \finalhyphendemerits=\the\finalhyphendemerits}
+}
+
\def\noextras@italian{%
- \lccode"2019=\z@
- }
+ \lccode\string"2019=\z@
+ \noitalian@shorthands
+ \xpgit@savedvalues
+}
\def\blockextras@italian{%
- \lccode"2019="2019
- %TODO ? \clubpenalty3000\widowpenalty3000\finalhyphendemerits50000000 << in Babel
- }
+ \lccode\string"2019=\string"2019
+ \clubpenalty=3000 \@clubpenalty=3000 \widowpenalty=3000
+ \finalhyphendemerits=50000000
+ \ifitalian@babelshorthands\italian@shorthands\fi
+}
\def\inlineextras@italian{%
- \lccode"2019="2019
- }
-
+ \lccode\string"2019=\string"2019
+ \ifitalian@babelshorthands\italian@shorthands\fi
+}
+%%% CHANGES END %%%
% \end{macrocode}
% \iffalse
%</gloss-italian.ldf>
+%<*gloss-kannada.ldf>
+% \fi
+% \clearpage
+%
+% \subsection{gloss-kannada.ldf}
+% \begin{macrocode}
+%% 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
+}
+
+\makeatother
+% \end{macrocode}
+% \iffalse
+%</gloss-kannada.ldf>
%<*gloss-lao.ldf>
% \fi
% \clearpage
@@ -6569,6 +6813,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\renewcommand\thefootnote{\protect\number{\c@footnote}}%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-lao.ldf>
@@ -6618,6 +6863,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
Decembris\fi%
\space \uppercase\expandafter{\romannumeral\year}}}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-latin.ldf>
@@ -6667,6 +6913,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
jūlijā\or augustā\or septembrī\or%
oktobrī\or novembrī\or decembrī\fi}}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-latvian.ldf>
@@ -6739,6 +6986,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\let\fnum@table\fnum@table@orig
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-lithuanian.ldf>
@@ -6793,6 +7041,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
godownika\fi\space \number\year}}%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-lsorbian.ldf>
@@ -6862,6 +7111,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\let\ontoday\@undefined
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-magyar.ldf>
@@ -6924,6 +7174,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\space\number\day}%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-malayalam.ldf>
@@ -7011,6 +7262,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\def\today{\marathinumber\day\space\marathimonth\space\marathinumber\year}%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-marathi.ldf>
@@ -7061,6 +7313,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\fi\space\number\year}%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-norsk.ldf>
@@ -7111,6 +7364,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\fi\space\number\year}%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-nynorsk.ldf>
@@ -7177,6 +7431,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\def\today{\occitanday \occitanmonth\space de~\number\year}%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-occitan.ldf>
@@ -7220,13 +7475,14 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
}
\def\datepolish{%
- \def\today{\ifcase\month\or
+ \def\today{\number\day\space\ifcase\month\or
stycznia\or lutego\or marca\or kwietnia\or maja\or czerwca\or
lipca\or sierpnia\or września\or października\or
listopada\or grudnia\fi
- \space\number\day, \number\year}%
+ \number\year}%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-polish.ldf>
@@ -7276,6 +7532,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\space de\space\number\year}%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-portuges.ldf>
@@ -7327,6 +7584,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\space \number\year}%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-romanian.ldf>
@@ -7588,6 +7846,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\def\Proj {\mathop{\mathrm{Пр}}\nolimits}
%\DeclareRobustCommand{\No}{№}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-russian.ldf>
@@ -7647,6 +7906,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\space\number\day.~b.\space\number\year}%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-samin.ldf>
@@ -7742,6 +8002,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\sanskrit@punctuation%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-sanskrit.ldf>
@@ -7795,6 +8056,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\space \number\year}%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-scottish.ldf>
@@ -7837,7 +8099,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
}%
{\xpg@error{Unknown script `#1' for Serbian language\MessageBreak
Valid values are "Cyrillic" and "Latin"}}%
- }
+ }%
}
\define@key{serbian}{script}[Cyrillic]{\setkeys{serbian}{Script=#1}}
@@ -7916,10 +8178,11 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\def\dateserbian@cyr{%
\def\today{\number\day .~\ifcase\month\or
јануар\or фебруар\or март\or април\or мај\or
- јун\or јул\or август\or септембар\or октобар\or нобембар\or
+ јун\or јул\or август\or септембар\or октобар\or новембар\or
децембар\fi \space \number\year.}%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-serbian.ldf>
@@ -7971,6 +8234,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\space \number\year}%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-slovak.ldf>
@@ -8020,6 +8284,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\space \number\year}%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-slovenian.ldf>
@@ -8070,6 +8335,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
diciembre\fi\space \number\year}%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-spanish.ldf>
@@ -8126,6 +8392,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\def\today{\number\day/\number\month\space\number\year}}%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-swedish.ldf>
@@ -8293,6 +8560,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\let\MakeUppercase\@@MakeUppercase%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-syriac.ldf>
@@ -8355,6 +8623,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\space\number\day}%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-tamil.ldf>
@@ -8420,6 +8689,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\def\today{\telugu@month\space\number\day,\space\number\year}%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-telugu.ldf>
@@ -8564,6 +8834,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\let\baselinestrech\orig@baselinestretch%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-thai.ldf>
@@ -8655,6 +8926,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\turkish@punctuation%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-turkish.ldf>
@@ -8706,6 +8978,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
Dekabr\fi
\space\number\year}%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-turkmen.ldf>
@@ -8795,6 +9068,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\let\@alph\latin@alph%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-ukrainian.ldf>
@@ -8941,6 +9215,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\let\MakeUppercase\@@MakeUppercase%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-urdu.ldf>
@@ -8997,6 +9272,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
hodownika\fi \space \number\year}%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-usorbian.ldf>
@@ -9048,6 +9324,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
năm \number\year}%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-vietnamese.ldf>
@@ -9099,6 +9376,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi}
\space\number\year}%
}
+\makeatother
% \end{macrocode}
% \iffalse
%</gloss-welsh.ldf>
@@ -9237,7 +9515,7 @@ U+0039 <> U+0E59 ;
¦----------------------------------------------¦
¦ ¦
- ¦ THE POLYGLOSSIA PACKAGE v1.2.0b ¦
+ ¦ THE POLYGLOSSIA PACKAGE v1.2.0cc ¦
¦ ¦
¦ Modern multilingual typesetting with XeLaTeX ¦
¦ ¦
@@ -9282,16 +9560,27 @@ and follow the instructions displayed.
BUGS
Users are encouraged to report bugs on the github tracker:
-http://github.com/fc7/polyglossia/issues
+http://github.com/reutenauer/polyglossia/issues
CHANGES
-1.2.0b (03-10-2011)
+1.2.0cc (12-10-2011) [First update by Arthur Reutenauer]
+ * Update to gloss-italian.ldf by Claudio Beccari, incorporating changes
+ by Enrico Gregorio.
+ * Conclude every gloss file with \makeatother to match the initial
+ \makeatletter.
+ * Conclude polyglossia.sty with \ExplSyntaxOff to match the initial
+ \ExplSyntaxOn.
+ * Added gloss file for Kannada, contributed by Aravinda VK and others.
+ * Corrections to the gloss-dutch.ldf thanks to Wouter Bolsterlee.
+ * Several patches by Enrico Gregorio, fixing long-standing bugs.
+
+1.2.0b (03-10-2011) [Update by Philipp Stephani]
* Load xkeyval package explicitly since newer versions
of fontspec don't load it any more
-1.2.0a (27-07-2010)
+1.2.0a (27-07-2010) [Last update by François Charette]
* Initialize \fontfamily acc to value of \familydefault
(Fixes a bug when using polyglossia with beamer)
* Remove spurious space in def of \dateenglish
@@ -9413,8 +9702,12 @@ CHANGES
------------------------------
- François Charette, July 2010
- <firmicus ατ gmx δοτ net>
+ Arthur Reutenauer, October 2011
+ <arthur 'dot' reutenauer 'at' normalesup 'dot' org>
+
+ Original author:
+ François Charette
+ <firmicus ατ gmx δοτ net>
------------------------------
%</README>
%<*examples.tex>
@@ -9431,7 +9724,7 @@ CHANGES
\setotherlanguage[spelling=new,latesthyphen=true,babelshorthands=true]{german}
\setotherlanguages{latin,russian,turkish,polish,latvian,sanskrit,ukrainian,farsi,syriac,divehi,hebrew,amharic}
\setotherlanguage[calendar=gregorian,numerals=western]{urdu}
-\setromanfont{Linux Libertine}
+\setromanfont{Linux Libertine O}
\defaultfontfeatures{Scale=MatchLowercase,RawFeature={+locl}}
\setmonofont{Inconsolata}
\newfontfamily\arabicfont[Script=Arabic]{Scheherazade}%
@@ -9560,7 +9853,7 @@ Quamquam sermone nativo fungi desinit, cumque nostris diebus perpauci Latine loq
\documentclass[a4paper]{book}%
\usepackage[no-math]{fontspec}
\usepackage{xltxtra,url,amsmath}
-\setromanfont{Linux Libertine}
+\setromanfont{Linux Libertine O}
\defaultfontfeatures{Scale=MatchLowercase}
\newfontfamily\arabicfont[Script=Arabic,Scale=1.3]{Scheherazade}%
\newfontfamily\arabicfonttt[Script=Arabic,Scale=.75]{DejaVu Sans Mono}