How to use the pykakasi.genkanwadict.mkkanwa function in pykakasi

To help you get started, we’ve selected a few pykakasi examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github miurahr / pykakasi / tests / test_genkanwadict.py View on Github external
def test_mkkanwa(self):
        if self.kanwa is None:
            self.kanwa = genkanwadict.mkkanwa()

        src = os.path.join('tests', 'kakasidict.utf8')
        dst = os.path.join(self.tmpdir, 'test_kanwadict3.db')  # FIXME:  no hardcoded filename
        self.kanwa.run(src, dst)