romaji.py 244 B

1234567891011121314
  1. import os
  2. import glob
  3. import sys
  4. import romkan
  5. os.chdir(sys.argv[1])
  6. for f in glob.glob("*.wav"):
  7. f2 = romkan.to_roma(f)
  8. os.rename(f,f2)
  9. oto = open("oto.ini",encoding="sjis").read()
  10. oto = romkan.to_roma(oto)
  11. open("oto.ini","w").write(oto)