[mkgmap-dev] Improving mkgmap's Unicode transliteration
From Ævar Arnfjörð Bjarmason avarab at gmail.com on Wed Aug 12 23:19:19 BST 2009
I'm going to Greece tomorrow and I noticed to my dismay that mkgmap's transliteration tables for the Greek alphabet were totally missing. So I hacked up a small Perl script which uses the Unicode::UCD and the Text::Unidecode modules to fillin the blanks: avar at aoeu:~/src/mkgmap/resources/chars/ascii$ perl re-transliterate.pl < row03.trans > row03.trans.tmp && mv row03.trans.tmp row03.trans The script and a patch to row03.trans which Works For Me are attached. But of course the tool can also be run on the rest of the files to fill in more blanks. And my script can of course be modified a bit further to spit out transliterations for files not yet in mkgmap row* files. I don't know what the row* files were originally based on but there's a lot of prior art for transliterating Unicode and there's no need to redo all this work for mkgmap. The Unicode Consortium has published transliteration tables (which Text::Unidecode is largely based on), it's much easier to use stuff like that rather than doing all the work yourselves. Anyway, off to pack for my flight. -------------- next part -------------- A non-text attachment was scrubbed... Name: re-transliterate.pl Type: text/x-perl Size: 778 bytes Desc: not available Url : http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20090812/2f6ecc5a/attachment.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: row03.trans.patch Type: text/x-patch Size: 8305 bytes Desc: not available Url : http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20090812/2f6ecc5a/attachment-0001.bin
- Previous message: [mkgmap-dev] Fixed Sea on Nuvi 860T
- Next message: [mkgmap-dev] Improving mkgmap's Unicode transliteration
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list