I attach a patch that improves the transliteration for Greek characters.

Specifically:

"υ" is turned to y instead of u.
"φ" is turned to f instead of ph.
"η" is turned to i instead of e.
"χ" is turned to h instead of kh.
"ξ" is turned to x instead of ks.

These changes are more aligned to the widely used greeklish practices and to the way Google transliterates characters.

Comments

ParisLiakos’s picture

Hey, i was just about to make a patch for that:)
"η" turning to "e" sucks!

maybe use $variant['el'] instead of modifying $base though?

yannisc’s picture

if you do it with $variant['el'] and you haven't specified in your content that it's Greek (a rather common scenario), it will be transliterated with the original (wrong) way.

ParisLiakos’s picture

well this way though it may probably break other language translates..
anyway,up to the maintainer

yannisc’s picture

the characters changed are only used in Greek (I think).

simon georges’s picture

Status: Active » Needs review

Changing status as there is a patch.

yannisc’s picture

Thanks! I had neglected to do that.

amateescu’s picture

Status: Needs review » Reviewed & tested by the community

According to http://www.utf8-chartable.de/unicode-utf8-table.pl -> page with code points U+0370 to U+046F, these are all greek characters, so I don't think they will break other languages.

sun’s picture

+++ b/data/x03.php
@@ -1,4 +1,5 @@
+// greek character set transliteration - updated by Yannis Karampelas (yannisc - www.netstudio.gr) - July 2011

To be removed prior to commit.

ParisLiakos’s picture

modified it according to #8

amateescu’s picture

Status: Reviewed & tested by the community » Fixed
yannisc’s picture

nice!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.