diff options
author | Karl Berry <karl@freefriends.org> | 2010-09-13 16:15:28 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-09-13 16:15:28 +0000 |
commit | 408c10d89836d10d0ecffb0422b33ce40f26215c (patch) | |
tree | c78a6bd337a8f7e0899b4050e9a6335b497be467 /Master/texmf-dist/source/xelatex | |
parent | 90bc556dd49baf83dc41781e00119ca70f0007fb (diff) |
polyglossia 1.2.0 (29jul10)
git-svn-id: svn://tug.org/texlive/trunk@19698 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/xelatex')
-rw-r--r-- | Master/texmf-dist/source/xelatex/polyglossia/polyglossia.dtx | 173 |
1 files changed, 102 insertions, 71 deletions
diff --git a/Master/texmf-dist/source/xelatex/polyglossia/polyglossia.dtx b/Master/texmf-dist/source/xelatex/polyglossia/polyglossia.dtx index a3e46d92c25..c62975ba15a 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 2010/7/15 22:28 +% Created on 2010/7/27 12:52 %<*internal> \iffalse %</internal> @@ -60,6 +60,16 @@ http://github.com/fc7/polyglossia/issues CHANGES +1.2.0a (27-07-2010) + * Initialize \fontfamily acc to value of \familydefault + (Fixes a bug when using polyglossia with beamer) + * Remove spurious space in def of \dateenglish + * Add missing English variant "american" + * Serbian: fix date format and captions (Latin+Cyrillic) + * Fix \atticnumeral in gloss-greek + * Small improvements and fixes in documentation + + 1.2.0 (15-07-2010) * Adapted for fontspec 2.0 (will not work with earlier versions!) * New implementation of a \PolyglossiaSetup interface @@ -558,7 +568,7 @@ CHANGES % ^^Aromanian % ^^A\TX{russian} % ^^Asamin -% ^^Asanskrit +% ^^A\TX{sanskrit} % ^^Ascottish % ^^A\TX{serbian} % ^^Aslovak @@ -587,7 +597,7 @@ CHANGES % bahasai & \TX{english} & italian & romanian & turkish \\ % bahasam & \TX{esperanto} & \TX{lao} & \TX{russian} & turkmen \\ % basque & estonian & latin & samin & ukrainian \\ -% \TX{bengali} & \TX{farsi} & latvian & sanskrit & urdu \\ +% \TX{bengali} & \TX{farsi} & latvian & \TX{sanskrit}& urdu \\ % brazil[ian] & finnish & lithuanian & scottish & \TX{usorbian} \\ % breton & french & \TX{lsorbian} & \TX{serbian} & vietnamese \\ % bulgarian & galician & \TX{magyar} & slovak & welsh \\ @@ -712,19 +722,23 @@ CHANGES % ¦\⟨script⟩font¦\ or ¦\⟨language⟩font¦. % For instance, if the default roman font defined by \cmd\setromanfont\ % does not support Greek, then one can define the font used to display Greek with:\\ -% \centerline{ \cmd\newfontfamily\cmd{\greekfont[⟨options⟩]\{⟨font⟩\}}. } +% \centerline{ \cmd\newfontfamily\cmd{\greekfont[Script=Greek,⟨…⟩]\{⟨font⟩\}}. } +% Note that polyglossia will use the font thus defined as is. +% for instance if ¦\arabicfont¦ is explicitly defined, then one should take care of +% including the option ¦Script=Arabic¦ in that definition. % See the \pkg{fontspec} documentation for more information. -% If a specific sans or monospace fonts is needed for a particular script or language, -% it can be specified by means of \new{v1.2.0} +% If a specific sans or monospace font is needed for a particular script or language, +% it can be defined by means of \new{v1.2.0} % ¦\⟨script⟩fontsf¦\ or ¦\⟨language⟩fontsf¦ and ¦\⟨script⟩fonttt¦\ or ¦\⟨language⟩fonttt¦, respectively. % % Whenever a new language is activated, \pkg{polyglossia} will first check whether % a font has been defined for that language or – for languages in non-Latin scripts – % for the script it uses. If it is not defined, it will use the currently active font -% and will attempt to turn on the appropriate OpenType tags for the script -% and language used, in case these are available in the font, by means of \pkg{fontspec}’s -% \cmd\addfontfeature. If the current font does not appear to support the script -% of that language, an error message is displayed. +% and – in the case of OpenType fonts – will attempt to turn on the appropriate +% OpenType tags for the script and language used, in case these are available in +% the font, by means of \pkg{fontspec}’s \cmd\addfontfeature. If the current font +% does not appear to support the script of that language, an error message is +% displayed. % % \section{Language-specific options and commands}\label{specific} % @@ -1121,13 +1135,12 @@ CHANGES % \subsection{polyglossia.sty} % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{polyglossia}[2010/07/15 v1.2.0 +\ProvidesPackage{polyglossia}[2010/07/27 v1.2.0a Babel replacement for XeLaTeX] \RequirePackage{etoolbox} \RequirePackage{makecmds} \RequirePackage{fontspec}[2010/06/08]% v2.0 % fontspec now uses LaTeX3 packages such as expl3, so we need this: -% TODO is is possible to localize this further? \ExplSyntaxOn \ifcsundef{newXeTeXintercharclass}{% @@ -1579,7 +1592,7 @@ CHANGES \IfFileExists{gloss-#2.ldf}% {\ifcsundef{#2@loaded}% {\input{gloss-#2.ldf}% - \xpg@info{Default~ language~ is~ #2.} + \xpg@info{Default~ language~ is~ #2}% \def\languagename{#2}% % This is needed because \arabic is a built-in LaTeX command: % so now we have \begin{Arabic}... instead of \begin{arabic}... @@ -1627,7 +1640,13 @@ CHANGES \selectlanguage[#1]{#2}% \selectbackgroundlanguage{#2}}} -\def\familytype{rm} +\expandafter\ifx\familydefault\sfdefault + \def\familytype{sf} +\else\expandafter\ifx\familydefault\ttdefault + \def\familytype{tt} +\else + \def\familytype{rm} +\fi\fi % This robustifies the redefinitions of \<xx>family (suggestion by Enrico Gregorio) % e.g. to prevent expansion of the \familytype redefinition in auxiliary files \csgappto{rmfamily }{\def\familytype{rm}} @@ -4902,23 +4921,26 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi} {\ifstrequal{#1}{us}% these patterns are the default so we don't need to reset them {\@british@hyphenfalse\english@ordinalmonthdayfalse \xpg@info{Option: english variant=american}}% - {\ifstrequal{#1}{usmax}% - {\@british@hyphenfalse\english@ordinalmonthdayfalse - \setkeys[xpg@setup]{english}{hyphennames={usenglishmax}}% - \xpg@info{Option: english variant=american (with additional patterns)}}% - \ifcsundef{l@usenglishmax}% - {\xpg@warning{No hyphenation patterns were loaded for "US English Max"\MessageBreak - I will use the standard patterns for US English instead}% - \adddialect\l@usenglishmax\l@english\relax}{}% - \gdef\english@language{\language=\l@usenglishmax}}% - {\ifstrequal{#1}{australian}% - {\@british@hyphentrue\english@ordinalmonthdayfalse - \xpg@info{Option: english variant=australian}}% - {\ifstrequal{#1}{newzealand}% - {\@british@hyphentrue\english@ordinalmonthdayfalse - \xpg@info{Option: english variant=newzealand}}% - {\xpg@warning{Unknown English variant `#1'}}% - }}}}% + {\ifstrequal{#1}{american}% + {\@british@hyphenfalse\english@ordinalmonthdayfalse + \xpg@info{Option: english variant=american}}% + {\ifstrequal{#1}{usmax}% + {\@british@hyphenfalse\english@ordinalmonthdayfalse + \setkeys[xpg@setup]{english}{hyphennames={usenglishmax}}% + \xpg@info{Option: english variant=american (with additional patterns)}% + \ifcsundef{l@usenglishmax}% + {\xpg@warning{No hyphenation patterns were loaded for "US English Max"\MessageBreak + I will use the standard patterns for US English instead}% + \adddialect\l@usenglishmax\l@english\relax}{}% + \gdef\english@language{\language=\l@usenglishmax}}% + {\ifstrequal{#1}{australian}% + {\@british@hyphentrue\english@ordinalmonthdayfalse + \xpg@info{Option: english variant=australian}}% + {\ifstrequal{#1}{newzealand}% + {\@british@hyphentrue\english@ordinalmonthdayfalse + \xpg@info{Option: english variant=newzealand}}% + {\xpg@warning{Unknown English variant `#1'}}% + }}}}}}% \if@british@locale\@british@hyphentrue\english@ordinalmonthdaytrue\fi \if@british@hyphen \setkeys[xpg@setup]{english}{hyphennames={ukenglish,british,UKenglish}}% @@ -4974,7 +4996,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi} \english@day\space\english@month\space\number\year \else \english@month\space\english@day, \number\year - \fi} + \fi}% } % \end{macrocode} @@ -5727,20 +5749,14 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi} \def\greek@language{\language=\greek@variant} -\def\tmp@arabic{arabic} \newif\if@greek@numerals \define@key{greek}{numerals}[greek]{% -\def\@tmpa{#1}\ifx\@tmpa\tmp@arabic\@greek@numeralsfalse\else\@greek@numeralstrue\fi} +\ifstrequal{#1}{arabic}{\@greek@numeralsfalse}{\@greek@numeralstrue}} -\def\tmp@false{false} -\newif\if@attic@numerals -\define@key{greek}{attic}[true]{% -\def\@tmpa{#1} -\ifx\@tmpa\tmp@false\@attic@numeralsfalse -\else\@attic@numeralstrue\fi} +\define@boolkey{greek}{attic}[true]{\xpg@warning{Greek option `attic' is no longer required.}} % This sets the defaults -\setkeys{greek}{numerals,attic=false} +\setkeys{greek}{numerals} \def\monogreekcaptions{% \def\refname{Αναφορές}% @@ -5944,8 +5960,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi} ͵\ifcase#1\or ρ\or σ\or τ\or υ\or φ\or χ\or ψ\or ω\or ϡ\fi \gr@num@v} -%%%% Attic numerals (optional) -\if@attic@numerals% +%%%% Attic numerals (no longer optional) \newcount\@attic@num \DeclareRobustCommand*{\@@atticnum}[1]{% \@attic@num#1\relax @@ -5985,8 +6000,6 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi} \@attic@num#1\relax \@atticnum{\@attic@num}} \let\atticnum=\atticnumeral -\fi -%%%% \def\greek@numbers{% \let\latin@alph\@alph% @@ -7126,7 +7139,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi} \def\indexname{Indèx}% \def\figurename{Figura}% \def\tablename{Tablèu}% - %\def\thepart{\textoccitan{}}% + %\def\thepart{}% \def\partname{Partida}% \def\pagename{Pagina}% \def\seename{vejatz}% @@ -7804,7 +7817,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi} \newif\if@serbian@cyr -\define@key{serbian}{Script}[Cyrillic]{% TODO FIXDOC: keyname is CHANGED: script -> Script !!! +\define@key{serbian}{Script}[Cyrillic]{% TODO FIXDOC: keyname is CHANGED: script -> Script !!! \ifstrequal{#1}{Cyrillic}% {\@serbian@cyrtrue \setkeys[xpg@setup]{serbian}{script=Cyrillic}% @@ -7814,38 +7827,44 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi} {\ifstrequal{#1}{Latin}% {\@serbian@cyrfalse \xpg@fontsetup@latin{serbian}% - %TODO \def\serbian@language{\language=\l@serbianlat}% + %TODO \def\serbian@language{\language=\l@serbianlat}% % or should we use Croatian patterns as a fallback for the time being??? }% {\xpg@error{Unknown script `#1' for Serbian language\MessageBreak Valid values are "Cyrillic" and "Latin"}}% } } +\define@key{serbian}{script}[Cyrillic]{\setkeys{serbian}{Script=#1}} \setkeys{serbian}{Script} \def\captionsserbian{% - \if@serbian@cyr\captionsserbian@cyr\else\captionsserbian@lat\fi% + \if@serbian@cyr\captionsserbian@cyr\else\captionsserbian@lat\fi } \def\dateserbian{% - \if@serbian@cyr\dateserbian@cyr\else\dateserbian@lat\fi% + \if@serbian@cyr\dateserbian@cyr\else\dateserbian@lat\fi } \def\captionsserbian@lat{% - \def\refname{Literatura}% + \def\refname{Bibliografija}% \def\abstractname{Sažetak}% - \def\bibname{Bibliografija}% + \def\bibname{Literatura}% \def\prefacename{Predgovor}% \def\chaptername{Glava}% \def\appendixname{Dodatak}% \def\contentsname{Sadržaj}% - \def\listfigurename{Slike}% - \def\listtablename{Tabele}% - \def\indexname{Indeks}% + \def\listfigurename{Spisak slika}% + \def\listtablename{Spisak tabela}% + \def\indexname{Registar}% \def\figurename{Slika}% \def\tablename{Tabela}% \def\partname{Deo}% + \renewcommand\thepart{\ifcase\value{part}\or Prvi\or Drugi\or + Treći\or Čevrti\or Peti\or Šesti\or Sedmi\or Osmi\or + Deveti\or Deseti\or Jedanaesti\or Dvanaesti\or Trinaesti\or + Četrnaesti\or Petnaesti\or Šesnaesti\or Sedamnaesti\or + Osamnaesti\or Devetnaesti\or Dvadeseti\fi}% \def\pagename{Strana}% \def\seename{Vidi}% \def\alsoname{Vidi takođe}% @@ -7853,45 +7872,47 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi} \def\ccname{Kopije}% \def\headtoname{Prima}% \def\proofname{Dokaz}% - \def\glossaryname{Glosar}% <-- CHECK + \def\glossaryname{Rečnik nepoznatih reči}% } \def\dateserbian@lat{% \def\today{\number\day .~\ifcase\month\or januar\or februar\or mart\or april\or maj\or - juni\or juli\or avgust\or septembar\or oktobar\or novembar\or - decembar\fi \space \number\year}% + jun\or jul\or avgust\or septembar\or oktobar\or novembar\or + decembar\fi \space \number\year.}% } -%%%TODO ASK SOMEONE TO CHECK THESE! \def\captionsserbian@cyr{% - \def\refname{Литература}% + \def\refname{Библиографија}% \def\abstractname{Сажетак}% - \def\bibname{Библиографија}% + \def\bibname{Литература}% \def\prefacename{Предговор}% \def\chaptername{Глава}% \def\appendixname{Додатак}% \def\contentsname{Садржај}% - \def\listfigurename{Слике}% - \def\listtablename{Табеле}% - \def\indexname{Индекс}% + \def\listfigurename{Списак слика}% + \def\listtablename{Списак табела}% + \def\indexname{Регистар}% \def\figurename{Слика}% \def\tablename{Табела}% - %\def\thepart{}% \def\partname{Део}% + \renewcommand\thepart{\ifcase\value{part}\or Први\or Други\or Трећи\or + Четврти\or Пети\or Шести\or Седми\or Осми\or Девети\or Десети\or + Једанаести\or Дванаести\or Тринаести\or Четрнаести\or Петнаести\or + Шеснаести\or Седамнаести\or Осамнаести\or Деветнаести\or Двадесети\fi}% \def\pagename{Страна}% \def\seename{Види}% \def\alsoname{Види такође}% - \def\enclname{Прилоzи}% + \def\enclname{Прилози}% \def\ccname{Копије}% \def\headtoname{Прима}% - \def\proofname{Докаz}% - \def\glossaryname{Глосар}% <-- CHECK + \def\proofname{Доказ}% + \def\glossaryname{Речник непознатих речи}% } \def\dateserbian@cyr{% \def\today{\number\day .~\ifcase\month\or јануар\or фебруар\or март\or април\or мај\or - јуни\or јули\or август\or септембар\or октобар\or нобембар\or - децембар\fi \space \number\year}% + јун\or јул\or август\or септембар\or октобар\or нобембар\or + децембар\fi \space \number\year.}% } % \end{macrocode} @@ -8851,7 +8872,7 @@ Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi} \def\indexname{\@ensure@RTL{اشاریہ}}% \def\figurename{\@ensure@RTL{شكل}}% \def\tablename{\@ensure@RTL{جدول}}% - %\def\thepart{\text<lang>{}}% + %\def\thepart{}% \def\partname{\@ensure@RTL{حصّہ}}% \def\pagename{\@ensure@RTL{صفحہ}}% \def\seename{\@ensure@RTL{ملاحظہ ہو}}% @@ -9261,6 +9282,16 @@ http://github.com/fc7/polyglossia/issues CHANGES +1.2.0a (27-07-2010) + * Initialize \fontfamily acc to value of \familydefault + (Fixes a bug when using polyglossia with beamer) + * Remove spurious space in def of \dateenglish + * Add missing English variant "american" + * Serbian: fix date format and captions (Latin+Cyrillic) + * Fix \atticnumeral in gloss-greek + * Small improvements and fixes in documentation + + 1.2.0 (15-07-2010) * Adapted for fontspec 2.0 (will not work with earlier versions!) * New implementation of a \PolyglossiaSetup interface |