Skip to content

Commit

Permalink
ammend b8d1464
Browse files Browse the repository at this point in the history
Since 05eb557 the first argument of \foreignlanguage does
not respect case changing, hence the \text_lowercase:n does
not workd.
  • Loading branch information
Udi-Fogiel committed May 28, 2024
1 parent bd7e090 commit 7837cc2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tex/polyglossia.sty
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,6 @@
\xpg_info_msg:n{Option:~ localmarks}
\cs_gset_nopar:Nn \__xpg_local_marks:n
{
\tl_set:Nn \xpg_tmp_lang_tl { ##1 }
\DeclareDocumentCommand \markboth { m m }
{
\group_begin:
Expand All @@ -1001,8 +1000,8 @@
\cs_set_eq:cc { glossary } { relax }
\unrestored@protected@xdef\@themark
{
{\text_lowercase:n{\foreignlanguage{\xpg_tmp_lang_tl}}{\protect\@@ensure@maindir{####1}}}
{\text_lowercase:n{\foreignlanguage{\xpg_tmp_lang_tl}}{\protect\@@ensure@maindir{####2}}}
{\foreignlanguage{##1}{\protect\@@ensure@maindir{####1}}}
{\foreignlanguage{##1}{\protect\@@ensure@maindir{####2}}}
}
\@temptokena \expandafter{\@themark}
\mark_insert:nn{2e-left}{####1}
Expand All @@ -1019,7 +1018,7 @@
\cs_set_eq:cc { index } { relax }
\cs_set_eq:cc { glossary } { relax }
\expandafter\@markright\@themark
{\text_lowercase:n{\foreignlanguage{\xpg_tmp_lang_tl}}{\protect\@@ensure@maindir{####1}}}
{\foreignlanguage{##1}{\protect\@@ensure@maindir{####1}}}
\@temptokena \expandafter{\@themark}
\mark_insert:nn{2e-right}{####1}
\tl_if_empty:nF{####1}{ \mark_insert:nn{2e-right-nonempty}{####1} }
Expand Down

0 comments on commit 7837cc2

Please sign in to comment.