agusnurdin / roadtoadc

Automatically exported from code.google.com/p/roadtoadc
0 stars 0 forks source link

Transliterate function in core of program, without internet #61

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In my provider very often GPRS work bad and SayMyName don't speak 
transliterated version, it waiting answer from Google API.
Will be good to cache the transliterated names (and option to do the mass 
transliterate for all contacts via WIFI), or the better is integrate 
transliterate engine in core.
There are link to Java examples that can do transliterate:
http://icu-project.org/apiref/icu4j/com/ibm/icu/text/Transliterator.html - 
demo: http://icu-project.org/icu4jdemos.html

Other links:
http://derickrethans.nl/projects.html#translit - demo 
http://translit.cc/
http://snippets.dzone.com/posts/show/5021
http://translit.cc/
http://www.devcomments.com/OT-iconv-cyrillic-russian-to201785.htm

Original issue reported on code.google.com by Mur...@gmail.com on 5 Aug 2010 at 5:41

GoogleCodeExporter commented 8 years ago
Ok, I'll do that for you. ;) Was very happy about my current solution, but I 
can imagine that it's a bit slow sometimes...

Original comment by tomtasche on 7 Aug 2010 at 8:18

GoogleCodeExporter commented 8 years ago
Always not only for me, but for at least 2 my friends and 4 users of 4pda.ru 
forum :)
And take my small donation via PayPal :)

Original comment by Mur...@gmail.com on 7 Aug 2010 at 6:36

GoogleCodeExporter commented 8 years ago
Thanks for donating! :) I'll try to implement transliteration it right now ;)

Original comment by tomtasche on 8 Aug 2010 at 7:19

GoogleCodeExporter commented 8 years ago
I just tried to implement ICU4-API, but it's VERY heavy (6 MB size) and slow 
(one transliteration takes 5 seconds)! So, I think that's even slower than 
using Google Translator over a bad internet-connection.

That's it for the moment. I'll leave this issue open, but today I don't plan to 
invest even more time... If I have enough time next weekend, I'll try to find a 
faster solution.

Thanks
Tom

Original comment by tomtasche on 8 Aug 2010 at 1:03

GoogleCodeExporter commented 8 years ago
For russian you can try the lite solution as one array: 
http://www.devcomments.com/OT-iconv-cyrillic-russian-to201785.htm
But for each language you will need to create the separate array.
Or maybe create pre-defined arrays for some popular languages (Russian and 
maybe some more) the interface in settings to set values of this array?
Users will can create any dictionary that they want for their needs.

Original comment by Mur...@gmail.com on 8 Aug 2010 at 3:41

GoogleCodeExporter commented 8 years ago

Original comment by tomtasche on 26 Aug 2010 at 5:43