• Resolved webgobe

    (@webgobe)


    As you can see I have using the plugin in a page in Hungarian. All works well, except one annoying small thing.

    I have glossary terms beginning with non-accented and accented characters alike. In the example page you can see the perfect example, I have Unicode, útvonal-választó and üzenetszórás on the same page. but not this is my problem – I can live with ?? my problem is the URL, which ideally should have the unaccented, plain simple u on it – like https://konyv.webgobe.com/szotar/?az=U by default, OR a possibility to choose/change the URL. Instead I have https://konyv.webgobe.com/szotar/?az=%C3%9C – which is correct, theoretically, it is a LEGAL, correct URL, just creates all sort of problems SEO wise and in interaction with some older webservices which aren’t supporting UTF in URL’s. Any suggestion on how this can be solved is highly appreciated.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • HI,
    we can’t do anything for that as for the program a letter is a letter, doesn’t understand one is a version of another one accented.
    We use the letter to do also the filter so if we implement something like this we have a double issue for all the languages, issues on the links in the bar and also in the filter itself so we cant’ do anything that aggregate ú with un.

    Thread Starter webgobe

    (@webgobe)

    I got that, I am building multilingual sites for 25+ years ?? I understand all the problems handling international characters can create!

    So, to be clear, I want a SIMPLE thing: if I have glossary terms with u, ü, ú etc in the alpha bar and in the URL for that page to have the letter U.

    Seemingly in the above page the last glossary term’s first letter is picked up for the Alpha bar AND for URL.

    I would be happy with a working dirty trick which does the same like: IF I am taking care to have the LAST glossary term in the list beginning with unaccented character to have the desired result – I can live with this – just need to know in what order Glossary picks up the terms to build the list to be able to trick it ??

    It is not simple to achieve that change as require to change various files and there aren’t filter for that.
    The alphabetical list is generated by getting all the terms and getting the first letter and the link is autogenerated in frontend/core/Alphabetical_Index_Bar.php.
    In frontend/Theme/A2Z_Archive.php instead there are changes to the WP SQL query for the archive using the letter.
    So you need to patch your plugin version to achieve this as we can’t support this kind of feature/filter as it is too much advanced for our users.

    Thread Starter webgobe

    (@webgobe)

    Got that, thank you. I did my experiences too, to see how the link is actually generated for these cases. Seemingly until you have an accented first letter in the list, that will be picked up for the Alphabar, the unaccented character is used only when you don’t have any accented character in the definition list.

    So take this as a feature request, for some future version of the plugin you might consider to slightly tweak the SQL request to produce the list to have the unaccented first characters on top – this might solve the issue without too much effort. Anyway, I love the plugin, I am using it on ~10 sites, and this annoyance will not stop me from that ;).

    Thank you for your great work so far! As an Open Source plugin developer I know how much work is invested in building and supporting such a plugin, and I am truly appreciating your efforts.

    Thanks and apart that the accented letter order is based on the server language configured in this way the accented letter is based on the language rules and not something specific.

    Closing after 3 weeks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Alpha bar with accented characters’ is closed to new replies.