`texdoc` search algorithm and language settings
Zdenek Wagner
zdenek.wagner at gmail.com
Sat Nov 5 11:02:18 CET 2022
Hi,
good to know, Can you implement in texdoc.cnf something similar to
Accept-Language as used on the web? For instance, my mother tongue is
Czech and I can easily read the documentation in Slovak, English,
Russian, Hindi, Danish, Norwegian (bokmål prefered to nynorsk),
Swedish but not in German, French, Spanish, Greek. Everybody has
different preferences.
Zdeněk Wagner
http://ttsm.icpf.cas.cz/team/wagner.shtml
so 5. 11. 2022 v 10:52 odesílatel Takuto ASAKURA <tkt.asakura at gmail.com> napsal:
>
>
> Hi,
>
> we noticed that our locale setting detection from ENV vars is somewhat incomplete, and working on fixing it: https://github.com/TeX-Live/texdoc/issues/77
>
> At the moment, writing an explicit locale setting (lang) in your texdoc.cnf is the most stable way to tell which language you prefer for the program.
>
> Best,
> Takuto
>
>
> > On 2022/11/05, at 18:45, Zdenek Wagner <zdenek.wagner at gmail.com> wrote:
> >
> > Hi,
> >
> > confirmed, the same on my computer.
> >
> > Zdeněk Wagner
> > http://ttsm.icpf.cas.cz/team/wagner.shtml
> >
> > so 5. 11. 2022 v 7:21 odesílatel Werner LEMBERG <wl at gnu.org> napsal:
> >>
> >>
> >> [Texdoc 3.4.1 (2022-03-19), without personal configuration file]
> >>
> >>
> >> How is language-specific documentation selected? For example, the
> >> default language environment settings on my GNU/Linux box are
> >>
> >> ```
> >> LANG=en_US.UTF-8
> >> LANGUAGE=de
> >> ```
> >>
> >> Doing one of the following
> >>
> >> ```
> >> texdoc impnattypo
> >> LANGUAGE=en texdoc impnattypo
> >> ```
> >>
> >> however, displays `impnattypo-fr.pdf`. I have to say
> >>
> >> ```
> >> LANG= texdoc impnattypo
> >> ```
> >>
> >> to eventually get `impnattypo.pdf`.
> >>
> >> This behaviour doesn't look right to me. Why is the `LANGUAGE`
> >> setting ignored? And, more severe: Why is `LANG=en_US.UTF-8` ignored?
> >>
> >>
> >> Werner
> >
>
More information about the tex-live
mailing list.