diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/polyglossia/gloss-spanish.ldf')
-rw-r--r-- | Master/texmf-dist/tex/latex/polyglossia/gloss-spanish.ldf | 84 |
1 files changed, 45 insertions, 39 deletions
diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-spanish.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-spanish.ldf index c7f6358f047..0b5b128ae2a 100644 --- a/Master/texmf-dist/tex/latex/polyglossia/gloss-spanish.ldf +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-spanish.ldf @@ -1,4 +1,4 @@ -% Language definition file (part of polyglossia v2.1 -- 2024/03/07) +% Language definition file (part of polyglossia v2.2 -- 2024/07/15) % \ProvidesFile{gloss-spanish.ldf}[polyglossia: module for Spanish] @@ -27,52 +27,58 @@ \newif\if@spanish@mexico \@spanish@mexicofalse -\define@choicekey*+{spanish}{variant}[\xpg@val\xpg@nr]{spanish,mexican}[spanish]{% - \ifcase\xpg@nr\relax - % spanish: - \@spanish@mexicofalse% - \SetLanguageKeys{spanish}{babelname=spanish,bcp47=es-ES,bcp47-region=ES}% - \or - % mexican: - \@spanish@mexicotrue% - \SetLanguageKeys{spanish}{babelname=spanishmx,bcp47=es-MX,bcp47-region=MX}% - \fi - \xpg@info{Option: spanish, variant=\xpg@val}% -}{\xpg@warning{Unknown spanish variant `#1'}} % Localized math operators à la babel \newif\ifspanish@accentedoperators \newif\ifspanish@spacedoperators \newif\ifspanish@locoperators -\define@choicekey*+{spanish}{spanishoperators}[\xpg@val\xpg@nr]{all,accented,spaced,none}[all]{% - \ifcase\xpg@nr\relax - % all: - \spanish@locoperatorstrue% - \spanish@accentedoperatorstrue% - \spanish@spacedoperatorstrue% - \or - % accented: - \spanish@locoperatorsfalse% - \spanish@accentedoperatorstrue% - \spanish@spacedoperatorsfalse% - \or - % spaced: - \spanish@locoperatorsfalse% - \spanish@accentedoperatorsfalse% - \spanish@spacedoperatorstrue% - \or - % none: - \spanish@locoperatorsfalse% - \spanish@accentedoperatorsfalse% - \spanish@spacedoperatorsfalse% - \fi - \xpg@info{Option: Spanish, spanishoperators=\xpg@val}% -}{\xpg@warning{Unknown spanishoperators value `#1'}} - +\DeclareKeys[polyglossia/gloss/spanish] + { + variant.choice:, + variant / spanish.code = + {% + \@spanish@mexicofalse + \SetLanguageKeys{spanish}{babelname=spanish,bcp47=es-ES,bcp47-region=ES}% + }, + variant / mexican.code = + {% + \@spanish@mexicotrue + \SetLanguageKeys{spanish}{babelname=spanishmx,bcp47=es-MX,bcp47-region=MX}% + }, + variant.default:n = spanish, + variant/unknown.code = \xpg@warning{Unknown spanish variant `#1'}, + spanishoperators.choice:, + spanishoperators / all.code = + {% + \spanish@locoperatorstrue + \spanish@accentedoperatorstrue + \spanish@spacedoperatorstrue + }, + spanishoperators / accented.code = + {% + \spanish@locoperatorsfalse + \spanish@accentedoperatorstrue + \spanish@spacedoperatorsfalse + }, + spanishoperators / spaced.code = + {% + \spanish@locoperatorsfalse + \spanish@accentedoperatorsfalse + \spanish@spacedoperatorstrue + }, + spanishoperators / none.code = + {% + \spanish@locoperatorsfalse + \spanish@accentedoperatorsfalse + \spanish@spacedoperatorsfalse + }, + spanishoperators.default:n = all, + spanishoperators/unknown.code = \xpg@warning{Unknown spanishoperators value `#1'} + } % Register default options -\xpg@initialize@gloss@options{spanish}{variant=spanish,spanishoperators=none} +\InitializeGlossOptions{spanish}{variant=spanish,spanishoperators=none} \let\xpg@save@lim\lim \let\xpg@save@limsup\limsup |