Create a gist now

Instantly share code, notes, and snippets.

@utgwkk /
Last active Feb 19, 2017

What would you like to do? の Google 日本語入力向けの東方Project IME辞書をSKK用の辞書に変換するスクリプト
# coding: utf-8
# の Google 日本語入力向けの東方Project IME辞書を
# SKK用の辞書に変換するスクリプト
# Usage:
# python < thdic-r6-0-総合.txt > SKK-JISYO.touhou.utf8
from __future__ import print_function
import sys
def main(argv):
print(';; okuri-nasi entries.')
for line in sys.stdin:
splitted = line.rstrip().split('\t')
if len(splitted) == 4:
yomi, henkan, _, comment = splitted
yomi, henkan, comment = splitted
comment = comment.replace('/', '|')
print('{} /{};{}/'.format(yomi, henkan, comment))
if __name__ == '__main__':

This comment has been minimized.

Show comment Hide comment

coexe Feb 19, 2017

coexe commented Feb 19, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment