> Date: Thu, 12 Oct 2023 11:39:14 +0200 > From: Patrice Dumas <pertu...@free.fr> > > 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 distribution or would be, in general, installed. Unless > I missed something, there is no such facility in libunistring, it seems > to be in libICU, but I do not know how easy it could be > integrated/shipped with Texinfo and I do not think that it is installed > in the general case. > > > Do you have information, on how to do 'smart' unicode sorting in > C, including for tests, which could allow shipping of code as we already > do with libunistring in gnulib in case it is not already installed, such > that it is used in the general case? Could also be example of projects > that have managed to do that.
What is "smart sorting"? where is it described/documented? In general, Unicode collation rules are locale- and language-dependent. My recommendation for Texinfo is not to use locale-specific collation rules, so that the indices would come out sorted identically no matter in which locale the user runs texi2any.