tsroten / dragonmapper

Identification and conversion functions for Chinese text processing
MIT License
54 stars 18 forks source link

accented_to_numbered() not working for 'ai' syllable #15

Closed manoonam closed 8 years ago

manoonam commented 8 years ago

print(accented_to_numbered("aī")) print(accented_to_numbered("aí")) print(accented_to_numbered("aǐ")) print(accented_to_numbered("aì")) print(accented_to_numbered("ai"))

produces:

a5ī a5í a5ǐ a5ì ai5

manoonam commented 8 years ago

Note: accented_syllable_to_numbered() for variations of 'ai' DOES work..

tsroten commented 8 years ago

@bearnun Thanks for using Dragon Mapper! I think you might have your tone mark on the wrong vowel. It should be: āi ái ǎi ài

Here are the tone placement rules. I hope that helps!

manoonam commented 8 years ago

That was a silly mistake on my part...Must have been a late night or something, ha.

Thanks for making dragonmapper! :D