5 ms·
Fredrik Lundh describes a DIY patch on top of unicodedata here: http://effbot.org/zone/unicode-convert.htm http://effbot.org/zone/unicode-convert.htm It solves
by mci 8y ago
Fredrik Lundh describes a DIY patch on top of unicodedata here: http://effbot.org/zone/unicode-convert.htm http://effbot.org/zone/unicode-convert.htm
It solves the ä->ae problem and its ilk for Western European languages.
Time has devoured my comment on that post, which extended the transliteration table to Eastern European languages and proposed to use mnemonic names like int(u'\N{Latin capital letter AE}') instead of 0xc6.
- akie 8y agoä -> ae is a German transliteration that would not be recognized by a non-German (e.g. a Dutchman).
- hjek 8y agoWhile a similar transliteration (ø-> oe) would be understood by Danes, it can create misunderstandings: køn (pretty) != koen (the cow), søn (son) != soen (the sow), røde (red) != roede (rowed), tør (dry) != toer (a two) and rør (pipe) != roer (rower).
- Aloha 8y agoContext though is the missing piece to all of those, all languages, particularly english however is context driven.