Skip to content

Commit

Permalink
remove \xpg_set_foreign_language:nn and \__xpg_set_otherlanguage:nn
Browse files Browse the repository at this point in the history
  • Loading branch information
Udi-Fogiel committed Nov 10, 2024
1 parent 5e7c81a commit 650bec8
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions tex/polyglossia.sty
Original file line number Diff line number Diff line change
Expand Up @@ -1224,18 +1224,12 @@
{#2/DefineCommandsCmd}}
{#2}
}
\__xpg_set_otherlanguage:ee {\xpg_alias_add_to_option_i:nn{#2}{#1}}
\exp_args:Nee \__xpg_register_language:nn {\xpg_alias_add_to_option_i:nn{#2}{#1}}
{\xpg_alias_base_lang:n{#2}}
\seq_gput_right:Ne \g__xpg_langs_loaded_seq {#2}
}
}
\cs_new:Nn \__xpg_set_otherlanguage:nn
{
\__xpg_register_language:nn{#1}{#2}
}
\cs_generate_variant:Nn \__xpg_set_otherlanguage:nn { ee }
\NewDocumentCommand \setotherlanguages { m }
{
\clist_map_function:eN { #1 } \setotherlanguage
Expand Down Expand Up @@ -1272,13 +1266,6 @@
% inside case changing commands (e.g. \MakeUppercase)
\tl_put_right:Nn \l_text_case_exclude_arg_tl { \textlang }
% wrapper for foreignlanguage and otherlanguage*
\cs_new_nopar:Nn \xpg_set_foreign_language:nn
{
\xpg_select_language:nn { #1 } { #2 }
\__xpg_register_language:nn{#1}{#2}
}
% lowercase options before passing to setkeys
\cs_new_protected_nopar:Npn \SetGlossOptions #1 #2
{
Expand All @@ -1295,7 +1282,8 @@
{
\xpg_error_if_lang_not_loaded:n{#2}
\SetGlossOptions{#2}{#1}
\xpg_set_foreign_language:nn { #1 } { #2 }
\xpg_select_language:nn { #1 } { #2 }
\__xpg_register_language:nn{#1}{#2}
% Hook for external packages such as biblatex
\polyglossia@language@switched
% buggy restoration heure
Expand Down

0 comments on commit 650bec8

Please sign in to comment.