This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ねくろいどのしりとりに使われているdic.dbをipadicのdicファイルから自動生成するスクリプト | |
#変換したい.dicファイルを同ディレクトリ内にあるdicフォルダに入れて実行してください | |
require "kconv" | |
require "sqlite3" | |
@db = SQLite3::Database.open(File.expand_path("../dic.db", __FILE__)) | |
@db.execute <<-SQL | |
CREATE TABLE IF NOT EXISTS dic | |
(word TEXT, reading TEXT) | |
SQL |
NewerOlder