• Resolved pitaraj

    (@pitaraj)


    I use WordPress in French, and it automatically sorts accented characters properly in the Tag List (ex.: Action, ?ge, Ami…).

    I was therefore surprised to see Tag Groups’ Alphabetical Tag Index sort accented characters separately after Z!

    I then thought of using Custom Taxonomy Order to correct the problem. I made sure that accented characters were in proper order in the CTO’s tag list (they were, without me having to do any drag and drop), and I selected the option Sort by Term Order in Tag Groups Gutenberg Block sidebar. But accented characters remain sorted separately after Z!

    As a matter of fact, whether I select Sort by Natural Order, by Tag ID or by Tag Description, it doesn’t change the sort order of my tags as it should.

    What’s the problem, and how do I correct this?

Viewing 13 replies - 16 through 28 (of 28 total)
  • Thread Starter pitaraj

    (@pitaraj)

    The above order is right (ABCDEF…)
    BUT accented letters should not be sorted after non-accented letters.
    For sorting purposes, accented letters have to be treated as if they had no accent.
    For example, a normal sort would go something like that:
    Absolu
    ?ge
    ?me
    Amitié
    B group
    C group
    D group
    écrit
    Entre
    Estime
    être
    étuve
    Exil
    F group
    etc.
    In other words, ?ge, ?me, écrit, être and étuve have to be sorted just as if they had no accent.
    The accents are only there for pronunciation purposes. They are not separate letters.
    This applies to all accented vowels: à ? é ê è ? ? ù ?

    Thread Starter pitaraj

    (@pitaraj)

    Previous messages seem to have disappeared, but you must have them somewhere.

    • This reply was modified 4 years, 1 month ago by pitaraj.

    So it is not so much a sort-order problem, but extracting the first letters and putting the tags into groups. Maybe it is possible to add a new option that treats accents as non-accents when grouping the tags in a future version. I will think about it when I have more time.

    Thread Starter pitaraj

    (@pitaraj)

    Thank you.

    Thread Starter pitaraj

    (@pitaraj)

    By the way, the same applies to all Roman languages, like Spanish, Italian, Portuguese… which all have accented vowels.

    The latest release should do it with the parameter ignore_accents=1.

    Thread Starter pitaraj

    (@pitaraj)

    Seems to work just fine, even without
    locale=”fr_FR.UTF8″
    and
    keep_together=1

    You’re the best, Chris.
    Thanks a lot.

    Thank you for the good news! ??

    Thread Starter pitaraj

    (@pitaraj)

    2 remarks, if I may…

    If you go to
    Sample Page

    You will notice that the Line spacing between The A group and the following B header is not the same as with the other groups.

    Also, the J group, which appears on top of the second column, has no J header.

    Try

    .tag-groups-alphabetical-index-tags {
      overflow:hidden
    }
    .tag-groups-alphabetical-index .tag-groups-keep-together {
      margin-top: 20px;
    }

    in the CSS, or maybe it is better with another theme.

    Thread Starter pitaraj

    (@pitaraj)

    I actually got the ?J? on top of the second column by putting back keep_together=1 in the shortcode.

    But the ?B? header following the A group is still not spaced properly.

    See https://www.pierrecorbeil.com/blogue-mots-cles/

    Have you tried to add the CSS that I mentioned before? I think that your theme changes something, so the solution would be to change it back for this list.

    Thread Starter pitaraj

    (@pitaraj)

    Well, Mr. Wizz,
    .tag-groups-alphabetical-index-tags {
    overflow:hidden
    }
    does the job.

    Happy to see that nothing stops you from getting things right. I like that very much.

    Thanks again.

Viewing 13 replies - 16 through 28 (of 28 total)
  • The topic ‘Alphabetical sorting problem in French’ is closed to new replies.