Loading...
 
Features / Usability

Features / Usability


a way (plugin?) to convert non latin characters in latin, in url of wiki page?

posts: 98 Greece

I have discussed it in another topic (title of pages cut after a certain number... etc), but I think my question merits an own post.

My wiki pages have always titles in Greek (say αεροδρόμιο = airport) and the url automatically take the same name. For example mydomain/αεροδρόμιο.

This is the same way the Greek Wikipedia works (for example the greek entry for Aristarchus of Samos will be found in el.wikipedia.org/wiki/Αρίσταρχος_ο_Σάμιος).

Now, this method has a disadvantage.
When the user tries to reach by typing the url (as opposed by clicking on a link) they have to change keyboard language at a point. And not every user will have installed a Greek or other non latin keyboard.

Clearly, it is best for the url to automatically convert to latin, whch all major CMS do with the help of some plugin/module. For example, the user will create the page with title Αεροδρόμιο but automatically the url will be mydomain/aerodromio. There is of course a letter to letter conversion, for example δ -> d etc. It is quite simple, although I don't expect to be as simple as that with -say- chinese or japanese to latin.

Now, I have not found a way that tiki will do it automatically for me in my wiki, perhaps with a plugin. Is there a way I am not aware of?

PS. Apart from the reason I describe above (I prefer url with latin letters only) there is a technical reason I have to switch to latin only, as I discuss in the topic mentioned above. In short, tiki/database is confused by urls in Greek, that are cut prematurely, after about 30 Greek characters.

posts: 98 Greece

This is a pic of the db showing the problem.

  • Pages with Greek titles are converted to a huge line of letters like %X%X etc. These letters easily exceed the 255 limit of varchar for pageSlug -hence the problem of duplicate pages (when first few words in two pages are the same).
  • Pages with English titles (page id 66) have normally very short pageSlug, same as title
  • And you can also see (page id 63&70) my solution, temporarily, which is to change pageSlug in english manually, using the phpmyadmin. But I can't seriously do that each time someone creates a new page in my wiki (plus I don't know how the db will react to this after next upgrade plus I prefer the page to automatically take english pageSlug)


So still been out there for a hint or solution...