library for unicode collation in C for texi2any?

2023-10-12 Thread Patrice Dumas
Hello, There is a translation to C of texi2any code going on, for the future, after the next release, mainly for the conversion to HTML in a first step. One thing I could not find easily in C is something to replace the Unicode::Collate perl module for index entries sorting using 'smart' rules

Re: Texinfo 7.0.93 pretest available

2023-10-12 Thread Eli Zaretskii
> From: Gavin Smith > Date: Wed, 11 Oct 2023 18:15:04 +0100 > Cc: Patrice Dumas > > On Wed, Oct 11, 2023 at 06:12:51PM +0100, Gavin Smith wrote: > > I will send you a diff to try to see if it lets the tests pass, or if > > we need to make any further changes. > > Attached. Thanks. This

Re: library for unicode collation in C for texi2any?

2023-10-12 Thread Eli Zaretskii
> Date: Thu, 12 Oct 2023 11:39:14 +0200 > From: Patrice Dumas > > One thing I could not find easily in C is something to replace the > Unicode::Collate perl module for index entries sorting using 'smart' > rules for sorting, that could be either found in Gnulib, included easily > in the Texinfo

Re: library for unicode collation in C for texi2any?

2023-10-12 Thread Patrice Dumas
On Thu, Oct 12, 2023 at 01:29:27PM +0300, Eli Zaretskii wrote: > > Date: Thu, 12 Oct 2023 11:39:14 +0200 > > From: Patrice Dumas > > > > One thing I could not find easily in C is something to replace the > > Unicode::Collate perl module for index entries sorting using 'smart' > > rules for

Re: library for unicode collation in C for texi2any?

2023-10-12 Thread Werner LEMBERG
> I don't recommend to tailor index sorting for the language indicated > by @documentlanguage, either. This surprises me. Why not? For some languages, the alphabetical order differs enormously from English. Werner

Re: library for unicode collation in C for texi2any?

2023-10-12 Thread Eli Zaretskii
> Date: Thu, 12 Oct 2023 15:00:57 +0200 > From: Patrice Dumas > Cc: bug-texinfo@gnu.org > > On Thu, Oct 12, 2023 at 01:29:27PM +0300, Eli Zaretskii wrote: > > What is "smart sorting"? where is it described/documented? > > It is, in general, any way to sort Unicode that takes into account >

Translation of some document strings with contexts does not work at all

2023-10-12 Thread Gavin Smith
On Thu, Oct 12, 2023 at 09:21:45AM +0300, Eli Zaretskii wrote: > > From: Gavin Smith > > Date: Wed, 11 Oct 2023 18:15:04 +0100 > > Cc: Patrice Dumas > > > > On Wed, Oct 11, 2023 at 06:12:51PM +0100, Gavin Smith wrote: > > > I will send you a diff to try to see if it lets the tests pass, or if >

implementation language [was: library for unicode collation in C for texi2any?]

2023-10-12 Thread Per Bothner
On 10/12/23 02:39, Patrice Dumas wrote: There is a translation to C of texi2any code going on, for the future, after the next release, mainly for the conversion to HTML in a first step. I've always thought that C++ is the obvious implementation language for texi2any. The structure of the Perl

Re: library for unicode collation in C for texi2any?

2023-10-12 Thread Eli Zaretskii
> Date: Thu, 12 Oct 2023 17:12:44 + (UTC) > Cc: pertu...@free.fr, bug-texinfo@gnu.org > From: Werner LEMBERG > > > > I don't recommend to tailor index sorting for the language indicated > > by @documentlanguage, either. > > This surprises me. Why not? For some languages, the alphabetical

Re: implementation language [was: library for unicode collation in C for texi2any?]

2023-10-12 Thread Per Bothner
On 10/12/23 11:35, Gavin Smith wrote: Calling [using Perl] a "mistake" is a very strong statement! Why do you say that? Surely texi2any 7.0.3 (2023) is more functional than makeinfo 4.13 (2008) was. That is not a meaningful comparison. The question is: If we had re-written makeinfo/texi2any

Re: library for unicode collation in C for texi2any?

2023-10-12 Thread Werner LEMBERG
>> > I don't recommend to tailor index sorting for the language >> > indicated by @documentlanguage, either. >> >> This surprises me. Why not? For some languages, the alphabetical >> order differs enormously from English. > > Because indices in a Texinfo document should not depend on details >

Re: Translation of some document strings with contexts does not work at all

2023-10-12 Thread pertusus
On Thu, Oct 12, 2023 at 06:00:44PM +0100, Gavin Smith wrote: > On Thu, Oct 12, 2023 at 09:21:45AM +0300, Eli Zaretskii wrote: > > > From: Gavin Smith > > > Date: Wed, 11 Oct 2023 18:15:04 +0100 > > > Cc: Patrice Dumas > > > > > > On Wed, Oct 11, 2023 at 06:12:51PM +0100, Gavin Smith wrote: > >

Re: implementation language [was: library for unicode collation in C for texi2any?]

2023-10-12 Thread Arsen Arsenović
Per Bothner writes: >> I'm not much of a fan of C++ tbh. > > I have a lot of C++ experience, and I am a big fan. For almost any program > where C might be a reasonable choice, C++ is likely to be a better choice. > C++ is admittedly a big complicated language - but if you focus on > C and add

Re: implementation language [was: library for unicode collation in C for texi2any?]

2023-10-12 Thread Gavin Smith
On Thu, Oct 12, 2023 at 10:25:23AM -0700, Per Bothner wrote: > On 10/12/23 02:39, Patrice Dumas wrote: > > There is a translation to C of texi2any code going on, for the future, > > after the next release, mainly for the conversion to HTML in a first step. > > I've always thought that C++ is the

Re: library for unicode collation in C for texi2any?

2023-10-12 Thread Eli Zaretskii
> Date: Thu, 12 Oct 2023 20:30:47 + (UTC) > Cc: pertu...@free.fr, bug-texinfo@gnu.org > From: Werner LEMBERG > > >> > I don't recommend to tailor index sorting for the language > >> > indicated by @documentlanguage, either. > >> > >> This surprises me. Why not? For some languages, the