Closed (fixed)
Project:
Transliteration
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
12 Jul 2011 at 04:37 UTC
Updated:
24 Oct 2011 at 09:30 UTC
Jump to comment: Most recent file
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.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | better_greek_transliteration-1215872-9.patch | 1.65 KB | ParisLiakos |
| 0001-fixed-greek-character-set-transliteration.patch | 2.19 KB | yannisc |
Comments
Comment #1
ParisLiakos commentedHey, i was just about to make a patch for that:)
"η" turning to "e" sucks!
maybe use
$variant['el']instead of modifying$basethough?Comment #2
yannisc commentedif 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.
Comment #3
ParisLiakos commentedwell this way though it may probably break other language translates..
anyway,up to the maintainer
Comment #4
yannisc commentedthe characters changed are only used in Greek (I think).
Comment #5
simon georges commentedChanging status as there is a patch.
Comment #6
yannisc commentedThanks! I had neglected to do that.
Comment #7
amateescu commentedAccording 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.
Comment #8
sunTo be removed prior to commit.
Comment #9
ParisLiakos commentedmodified it according to #8
Comment #10
amateescu commentedCommited #9 to 6.x-3.x and 7.x-3.x. Thanks!
http://drupalcode.org/project/transliteration.git/commit/4af0b58
http://drupalcode.org/project/transliteration.git/commit/3a8baa5
Comment #11
yannisc commentednice!