Skip to content

Commit

Permalink
lowercase precompiled keys, amend latin gloss numeral key
Browse files Browse the repository at this point in the history
  • Loading branch information
Udi-Fogiel committed May 17, 2024
1 parent 1aa5c30 commit 0ccec13
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 25 deletions.
25 changes: 1 addition & 24 deletions tex/gloss-latin.ldf
Original file line number Diff line number Diff line change
Expand Up @@ -577,30 +577,7 @@
\polyglossia_latin_apply_footnote_option:
}
},
ecclesiasticfootnotes.default:n = true,
numerals.choices:nn = { arabic, cyrillic, cyrillic-trad, cyrillic-alph }
{
\ifcase\UseName{l_keys_choice_int}\or
% arabic:
\cyrillic@numeralsfalse
\cyrillic@asbuk@numeralsfalse
\or
% cyrillic:
\cyrillic@numeralstrue
\cyrillic@asbuk@numeralsfalse
\or
% cyrillic-trad:
\cyrillic@numeralstrue
\cyrillic@asbuk@numeralsfalse
\or
% cyrillic-alph:
\cyrillic@numeralstrue
\cyrillic@asbuk@numeralstrue
\fi
\xpg@info{Option: Belarusian, numerals=#1}%
},
numerals.default:n = arabic,
numerals/unknown.code = \xpg@warning{Unknown Belarusian numerals value `#1'}
ecclesiasticfootnotes.default:n = true
}

% Register default options
Expand Down
11 changes: 10 additions & 1 deletion tex/polyglossia.sty
Original file line number Diff line number Diff line change
Expand Up @@ -1886,11 +1886,16 @@
}
% lowercase options before passing to setkeys
%\cs_set_eq:NN \xpg_info_saved_msg:n \xpg_info_msg:n
\NewDocumentCommand \SetGlossOptions { m m }
{
% \text_lowercase:n fully expands
% (as opposed to \str_lowercase:n)
%\cs_set_eq:cc { xpg@info } { use_none:n }
%\cs_set_eq:NN \xpg_info_msg:n \use_none:n
\use:c { xpg_#1_defualt_options_tl }
%\cs_set_eq:cc { xpg@info } { xpg_info_saved_msg:n }
%\cs_set_eq:NN \xpg_info_msg:n \xpg_info_saved_msg:n
\exp_args:Ne \keys_set:ne{ polyglossia / gloss / #1 }{ \text_lowercase:n {#2} }
}
Expand Down Expand Up @@ -2114,9 +2119,13 @@
\prop_put_from_keyval:Nn \xpg__tmp_default_options_prop { #2 }
\tl_new:c { xpg_#1_defualt_options_tl }
\keys_precompile:nec { polyglossia / gloss / #1 }
{ \prop_to_keyval:N \xpg__tmp_default_options_prop }
{ \text_lowercase:n { \prop_to_keyval:N \xpg__tmp_default_options_prop } }
{ xpg_#1_defualt_options_tl }
%\cs_set_eq:cc { xpg@info } { use_none:n }
%\cs_set_eq:NN \xpg_info_msg:n \use_none:n
\use:c { xpg_#1_defualt_options_tl }
%\cs_set_eq:cc { xpg@info } { xpg_info_saved_msg:n }
%\cs_set_eq:NN \xpg_info_msg:n \xpg_info_saved_msg:n
\__xpg_set_language_options:nnn {#1} {#2} { \cs_set:Npe \languagevariant }
}
\prop_new:N \xpg__tmp_default_options_prop
Expand Down

0 comments on commit 0ccec13

Please sign in to comment.