Closed samcarter closed 3 years ago
Why am I not getting the English version of the documentation? Am I missing some setting?
For a direct answer to your question, nothing is wrong with you, and nothing is wrong with Texdoc too. The reason why the English version does not win over the documentation in another language is that tlpkg catalog does not have the en
metadata for einfart-doc-en.pdf
(while einfart-doc-cn.pdf
has its language metadata of zh
). Thus, Texdoc does not recognize the document as an English version.
You can ask TeX Live maintainers to add the en
metadata for the catalog and that will solve this without any change in Texdoc, I guess. However, we can assume that basenames with the -en
suffix are written in English, so our scoring mechanism can infer its language code. I will put this as a future enhancement.
Which documents in a package do or don't have metadata in the Catalogue is maintained by CTAN, not TeX Live. Write @.*** if you want a change there.
However, I completely agree with inferring that a "-en" document is English and think that would be a great enhancement. --best, karl.
@wtsnjp Thank you very much for considering the enhancement about taking into account the suffix of the filename!
If I run
texdoc einfart
I get the Chinese version of the documentation, despiteen
lang = en
in mytexdoc.cnf
fileWhy am I not getting the English version of the documentation? Am I missing some setting?
Here is the debug output: