polyglossia 最新版本有问题,如何返回上一个版本?
这是 MWA 及其日志文件。谢谢。
\documentclass[12pt,a4paper]{article}
\usepackage{fontspec}
\newfontfamily\arabicfont[Script=Arabic,Scale=1.2]{Amiri}
\usepackage[quiet,nolocalmarks]{polyglossia}
\setdefaultlanguage{arabic}
% \setotherlanguage{french}
% \setotherlanguage{english}
\begin{document}
مرحبا.
\end{document}
日志档案 :日志档案
答案1
感谢@Ulrike Fischer 提供的解决方法:https://github.com/reutenauer/polyglossia/issues/626#issuecomment-1948132203
(该问题并不只存在于 polyglossia 中,还存在于 l3kernel 中)
\documentclass[12pt,a4paper]{article}
\usepackage{fontspec}
\newfontfamily\arabicfont[Script=Arabic,Scale=1.2]{Amiri}
\usepackage[quiet,nolocalmarks]{polyglossia}
% work around a bug in polyglossia
\makeatletter
\ExplSyntaxOn
\pretocmd\xpg@set@alias@values{%
\prop_if_exist:cF { xpg@alias@keyvals@#1@#4 }
{ \prop_new:c {xpg@alias@keyvals@#1@#4} }
}{}{}
\ExplSyntaxOff
\makeatother
% end of workaround
\setdefaultlanguage{arabic}
% \setotherlanguage{french}
% \setotherlanguage{english}
\begin{document}
مرحبا.
\end{document}