It looks like 'ー' causes an issue on 0.1.10. Here is an example:
% cutlet
押忍! ハト☆マツ学園男子寮! DC (12) プラトーーーン の巻
Traceback (most recent call last):
File "/Users/ykim/.local/share/virtualenvs/sandbox-nIHPi2Hu/bin/cutlet", line 8, in <module>
sys.exit(main())
File "/Users/ykim/.local/share/virtualenvs/sandbox-nIHPi2Hu/lib/python3.8/site-packages/cutlet/cli.py", line 16, in main
print(katsu.romaji(line.strip()))
File "/Users/ykim/.local/share/virtualenvs/sandbox-nIHPi2Hu/lib/python3.8/site-packages/cutlet/cutlet.py", line 129, in romaji
roma = self.romaji_word(word)
File "/Users/ykim/.local/share/virtualenvs/sandbox-nIHPi2Hu/lib/python3.8/site-packages/cutlet/cutlet.py", line 193, in romaji_word
return self.map_kana(kana)
File "/Users/ykim/.local/share/virtualenvs/sandbox-nIHPi2Hu/lib/python3.8/site-packages/cutlet/cutlet.py", line 233, in map_kana
out += self.get_single_mapping(pk, char, nk)
File "/Users/ykim/.local/share/virtualenvs/sandbox-nIHPi2Hu/lib/python3.8/site-packages/cutlet/cutlet.py", line 249, in get_single_mapping
if pk: return self.table[pk][-1]
KeyError: 'ー'
I'm guessing that a repeated sequence of ー is the issue :/
It looks like 'ー' causes an issue on 0.1.10. Here is an example:
I'm guessing that a repeated sequence of ー is the issue :/