From 35f81995c64bc9054dea2309892ec9d1981a0381 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 25 Mar 2020 21:12:39 +0000 Subject: polyglossia (25mar20) git-svn-id: svn://tug.org/texlive/trunk@54549 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/polyglossia/gloss-latin.ldf | 43 ++++++++++++++++------ 1 file changed, 32 insertions(+), 11 deletions(-) (limited to 'Master/texmf-dist/tex/latex/polyglossia/gloss-latin.ldf') diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-latin.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-latin.ldf index 085f1939bc0..0700ad2637d 100644 --- a/Master/texmf-dist/tex/latex/polyglossia/gloss-latin.ldf +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-latin.ldf @@ -1,4 +1,4 @@ -\ProvidesFile{gloss-latin.ldf}[polyglossia: module for Latin v.2.2 2020-01-03] +\ProvidesFile{gloss-latin.ldf}[polyglossia: module for Latin v.2.3 2020-03-08] \ExplSyntaxOn @@ -100,9 +100,10 @@ \str_case:Vn \l_polyglossia_latin_variant_str { {classic} { - \str_if_eq:nnTF{#1}{liturgicallatin} - { \adddialect \l@classiclatin { \use:c {l@#1} } } - {} + \str_if_eq:nnF {#1} {classiclatin} + { + \adddialect \l@classiclatin { \use:c {l@#1} } + } } {medieval} { \adddialect \l@medievallatin { \use:c {l@#1} } } {modern} { \adddialect \l@latin { \use:c {l@#1} } } @@ -308,10 +309,15 @@ %%%%% Messages and commands concerning footnotes -\cs_if_exist:NT \@makefntext - { - \cs_set_eq:NN \polyglossia_latin_original_footnote:n \@makefntext - } +% Save original footnote definition +% Do this at the end of the preamble to catch other +% packages' footnote changes (#391) +\AtEndPreamble{% + \cs_if_exist:NT \@makefntext + { + \cs_set_eq:NN \polyglossia_latin_original_footnote:n \@makefntext + } +} % This is the footnote style as defined by the "ecclesiastic" package. \cs_new:Npn \polyglossia_latin_variant_footnote:n #1 @@ -614,9 +620,12 @@ \shorthandoff {^} \shorthandoff {=} -% The active '=' character may cause problems with key=value interfaces. +% The active = character may cause problems with key=value interfaces. % We have to make sure here that no problems can occur outside a Latin % prosodic shorthand environment. +% The active ' character may cause problems with the unicode-math package +% (in case Latin is used as a secondary language, see #394). We have to +% turn it of if Latin is not the main language. \protected@write \@auxout { } { \shorthandoff {=} } % for the aux file @@ -631,9 +640,13 @@ } { % The following command should not be called if the main language - % defines a '=' shorthand. However, there are no languages besides + % defines a = shorthand. However, there are no languages besides % Latin defining such a shorthand in polyglossia. \shorthandoff {=} + % The following command should not be called if the main language + % defines a ' shorthand. However, there are no languages besides + % Latin defining such a shorthand in polyglossia. + \shorthandoff {'} } } @@ -651,12 +664,18 @@ \polyglossia_latin_apply_quotemark:N } } + % The ' shorthand is normally turned off to avoid problems with the unicode-math + % package. We have to turn it on here. + \shorthandon {'} \bbl@activate {'} \declare@shorthand {latin} {'} { \mode_if_math:TF { \active@math@prime % defined in "latex.ltx" + % This definition is differing from the primes of the unicode-math package. + % TO DO: Make sure that the appearance of primes is the same as with the + % unicode-math package if this package is loaded. } { \polyglossia_latin_put_acute:N @@ -927,7 +946,9 @@ \def \noextras@latin { - \polyglossia_latin_no_shorthands: + \iflatin@babelshorthands + \polyglossia_latin_no_shorthands: + \fi \xpgla@savedvalues \polyglossia_latin_no_punctuation_spacing: \polyglossia_latin_modern_character_codes: -- cgit v1.2.3