On 2/2/23 04:30, Iain Buclaw wrote:

> Glad to announce D 2.102.0, ♥ to the 40 contributors.

Thanks indeed! Two issues that I had some interest in are fixed. Yay!

  https://issues.dlang.org/show_bug.cgi?id=17378

  https://issues.dlang.org/show_bug.cgi?id=23561

I am aware how complex unicode collation is[1] but I somehow find it very wrong to list Ömer at the end. :)

[...]
> Steven Schveighoffer
> Vladimir Panteleev
> Walter Bright
> Ömer Faruk IRMAK

Obviously because I am used to the Turkish alphabet but in any case because Ö is very much related to O, I find it universally better to list Ö right after O. (The same should be for all latin based characters.)

I see there is std.uni.icmp which uses

  dmd/std/internal/unicode_tables.d

but it doesn't help because the array fullCaseTable in there seems to be about equivalence (e.g. of ß and ss). I think we need a "mostly correct" collation for latin based characters.

I have a hacky[2] solution only for Turkish, which I used for the Index section of my book:


https://bitbucket.org/acehreli/ddili/src/4c0552fe8352dfe905c9734a57d84d36ce4ed476/src/alphabet.d#lines-50

Ali

[1] https://www.unicode.org/reports/tr10/

[2] The comment about the hacky treatment of 'I' in there is another example of how difficult collation is. This may not fit everybody's preference but as a result and as I desired, the entries "IDE" and "InputRange" appear under 'İ' in the index (instead of 'I'):

  http://ddili.org/ders/d/ix.html

  • Release D 2.1... Iain Buclaw via Digitalmars-d-announce
    • Re: Rele... M.M. via Digitalmars-d-announce
    • Re: Rele... Richard (Rikki) Andrew Cattermole via Digitalmars-d-announce
    • Re: Rele... jmh530 via Digitalmars-d-announce
      • Re: ... Steven Schveighoffer via Digitalmars-d-announce
        • ... jmh530 via Digitalmars-d-announce
    • Re: Rele... Ali Çehreli via Digitalmars-d-announce
      • Re: ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-announce
      • Re: ... jmh530 via Digitalmars-d-announce
        • ... Ali Çehreli via Digitalmars-d-announce
          • ... Max Samukha via Digitalmars-d-announce
            • ... Mathias LANG via Digitalmars-d-announce
      • Re: ... Iain Buclaw via Digitalmars-d-announce
      • Re: ... Salih Dincer via Digitalmars-d-announce
    • Re: Rele... Andrej Mitrovic via Digitalmars-d-announce
    • Re: Rele... ryuukk_ via Digitalmars-d-announce
    • Re: Rele... Andrej Mitrovic via Digitalmars-d-announce

Reply via email to