Re: Unicode Transliteration & ICU

From: Date: Tue, 10 Jun 2008 21:37:21 +0000
Subject: Re: Unicode Transliteration & ICU
References: 1 2  Groups: php.i18n 
Request: Send a blank email to php-i18n+get-1265@lists.php.net to get a copy of this message
The full text transformation support is not there yet, but there is a simple transliteration function - str_transliterate(). -Andrei Darren Cook wrote:
Does anyone know anything about transliteration in PHP6. I have noticed that PHP has an ICU extension. ICU has a very comprehensive transliteration/transform module that is not documented.
It is documented here: http://www.icu-project.org/userguide/Transform.html (But I don't think Transform in the PHP intl extension?) No Arabic support, which is the transliteration code I'm working on at the moment (in native PHP; it'll be in the next (MIT open-source) fclib library release). I'm also not sure the Japanese one will be useful, as it sounds like they do things slightly differently from normal Hepburn romaji to allow the conversions to be reversible. (which also suggests they don't transliterate the katakana long vowel but keep it as a hyphen??)
Currently I am using iconv and a PLEC extension to transliterate, but they area neither comprehensive or widely supported.
Which languages are you trying to transliterate for? Darren


« previous php.i18n (#1265) next »