Subject: | diacritic mark is placed on the first vowel instead of the last vowel |
In the method diacritic(), the following line:
} elsif (reverse $part =~ /([aeiou])/) {
should become:
} elsif (reverse($part) =~ /([aeiou])/) {
due to order of operations issues.
This bug causes the tone mark to be placed on the first vowel instead of
the last vowel which is the opposite of what you meant to do.
I forked your gitpan dist and made the fix available on github. Not sure
if thats overkill since its such a small fix, but here you go:
https://github.com/kablamo/CEDict-Pinyin