bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `texindex` output depends on locale settings


From: Patrice Dumas
Subject: Re: `texindex` output depends on locale settings
Date: Sun, 6 Nov 2022 19:53:56 +0100

On Sun, Nov 06, 2022 at 04:09:59PM +0000, Werner LEMBERG wrote:
> * Let's assume that GNU awk behaves similar to, say, GNU sort.  The
>   collation order and input encoding gets controlled with `LANG` –
>   looking into the awk info manual this seems like a reasonable
>   assumption.
> 
>   As far as I can see, my two issues could be resolved by a shell
>   wrapper around the awk program that analyzes the (yet to be added)
>   `@documentencoding` and `@documentlanguage` settings in an unsorted
>   index file.  From those two settings it synthesizes a proper `LANG`
>   argument that gets passed to GNU awk, et voilà.

Not sure if it is an issue as it seems that you want to use all the
@documentlanguage that appeared, but it should be taken into account
that @documentlanguage can appear more than once in the document.  I am
not sure how having some index entries appear in a @documentlanguage or
another can be taken into account, as when the time comes to sort, I
can't imagine how collating could take into account more than one locale
language.

It could maybe be good to use the same convention about which
documentlanguage to use both in texindex and in the equivalent texi2any
code (yet to be done).

-- 
Pat



reply via email to

[Prev in Thread] Current Thread [Next in Thread]