为什么 polyglossia 会读两次 hyph-fr.pat.txt?

为什么 polyglossia 会读两次 hyph-fr.pat.txt?

考虑以下代码片段:

\documentclass{article}
\usepackage{polyglossia}
\setmainlanguage{french}
\begin{document}
Test
\end{document}

使用 TeXLive 2016 附带的版本进行编译luatex,您会在终端上得到:

Language data for francais
hyphenation 
loader  loadhyph-fr.tex
patterns    hyph-fr.pat.txt
righthyphenmin  2
synonyms    table: 0x4556dd0
lefthyphenmin   2

hyph-fr.pat.txt
Language francais was not yet loaded; created with id 4
Language francais already loaded; id is 4
Language francais already loaded; id is 4

Language data for french
hyphenation 
loader  loadhyph-fr.tex
patterns    hyph-fr.pat.txt
righthyphenmin  2
synonyms    table: 0x4556dd0
lefthyphenmin   2

hyph-fr.pat.txt
Language french was not yet loaded; created with id 8
Language french already loaded; id is 8)

因此,似乎 hyph-ft.pat.txt 被读取了两次,一次是读取,francais另一次是读取french。这有什么正当理由吗?还是这是一个错误?

答案1

模式文件不会被读取两次,只有元数据会被读取两次。我们当然可以有一个别名机制,以便只加载一次,并让一个选项指向另一个选项;但目前还不存在。

相关内容