projects
/
zzz-pokedex.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Raichuu, not Raichyuu
[zzz-pokedex.git]
/
pokedex
/
roomaji.py
diff --git
a/pokedex/roomaji.py
b/pokedex/roomaji.py
index
0a6b269
..
212909e
100644
(file)
--- a/
pokedex/roomaji.py
+++ b/
pokedex/roomaji.py
@@
-78,7
+78,7
@@
def romanize(string):
# Drop the -i and append the ya/yu/yo sound
new_sound = _roomaji_youon[char]
# Drop the -i and append the ya/yu/yo sound
new_sound = _roomaji_youon[char]
- if last_kana in ['shi', 'ji']:
+ if last_kana in ['
chi', '
shi', 'ji']:
# Strip the y-
new_char = last_kana[:-1] + new_sound[1:]
else:
# Strip the y-
new_char = last_kana[:-1] + new_sound[1:]
else:
@@
-131,4
+131,4
@@
def romanize(string):
if last_kana == 'sokuon':
raise ValueError("Sokuon cannot be the last character.")
if last_kana == 'sokuon':
raise ValueError("Sokuon cannot be the last character.")
- return
''.join(characters
)
+ return
unicode(''.join(characters)
)