3 ms·
> if you need to project (transliterate to ascii) Chinese unidecode is close to black magic That might be a dangerous assumption. The project page explicitly s
by vesinisa 8y ago
> if you need to project (transliterate to ascii) Chinese unidecode is close to black magic
That might be a dangerous assumption. The project page explicitly states:
> Transliteration of languages like Chinese is a very complex issue and this library does not even attempt to address it. It draws the line at context-free character-by-character mapping.
I.e. it is not black magic; just a mapping of Unicode characters to static ASCII transliterations. The results will certainly be incorrect in some contexts.
- waynecochran 8y agoPerhaps for some applications, e.g. hash keys, consistency is more important than correctness.