OSDN Git Service

updated jtalk dictionary regarding English words
authorTakuya Nishimoto <nishimotz@gmail.com>
Sat, 28 Sep 2013 09:21:47 +0000 (18:21 +0900)
committerTakuya Nishimoto <nishimotz@gmail.com>
Sat, 28 Sep 2013 09:21:47 +0000 (18:21 +0900)
include/jtalk/eng_dic_maker.py
include/jtalk/mecabRunner.py
include/jtalk/roma_dic_maker.py
include/jtalk/test-mecab.cmd [new file with mode: 0644]

index 4c61111..69d4091 100644 (file)
@@ -201,7 +201,34 @@ def make_dic(IN_FILE, CODE, THISDIR):
                ['users', 'ユーザーズ', "1/5"],\r
                ['allowed', 'アラウド', "2/4"],\r
                ['designed', 'デザインド', "2/5"],\r
-\r
+               ['database', 'データベース', "1/5"],\r
+               ['butt', 'バットゥ', "1/4", 10000],\r
+               ['opened', 'オープンド', "1/5"],\r
+               ['closed', 'クローズド', "2/5"],\r
+               ['layered', 'レイヤード', '1/5'],\r
+               ['required', 'リクワイアード', '3/7'],\r
+               ['iconified', 'アイコニファイド', '1/8'],\r
+               ['focusable', 'フォウカサブル', '1/6'],\r
+               ['editable', 'エディタブル', '1/5'],\r
+               ['draggable', 'ドゥラッガブル', '2/6'],\r
+               ['contains', 'コンテインズ', '3/6'],\r
+               ['errors', 'エラーズ'],\r
+               ['previously', 'プリビアスリ'],\r
+               ['entered', 'エンタード'],\r
+               ['turns', 'ターンズ'],\r
+               ['toggles', 'トグルズ'],\r
+               ['clicks', 'クリックス'],\r
+               ['unlocks', 'アンロックス'],\r
+               ['locks', 'ロックス'],\r
+               ['controls', 'コントゥロウルズ'],\r
+               ['currently', 'カレントリ'],\r
+               ['synth', 'シンセ'],\r
+               ['moves', 'ムーブズ'],\r
+               ['characters', 'キャラクターズ'],\r
+               ['keys', 'キーズ'],\r
+               ['cycles', 'サイクルズ'],\r
+               ['levels', 'レベルズ'],\r
+               ['speaks', 'スピークス'],\r
        ]\r
        k = {}\r
        for i in d:\r
index 2d0a6ad..8daab28 100644 (file)
@@ -57,32 +57,6 @@ tasks = [
        ['十五絡脈病証',  'ジューゴカラマミャクヤマイアカシ'],\r
        ['マーク。まーく。',  'マーク。マーク。'],\r
        ['1 2',  'イチ ニ'],\r
-       ['manage', 'マネイジ'],\r
-       ['choose', 'チュウズ'],\r
-       ['impaired', 'インペアド'],\r
-       ['failed', 'フェイルド'],\r
-       ['mixi', 'ミクシー'],\r
-       ['nullsoft', 'ヌルソフト'],\r
-       ['speech api', 'スピーチ エーピーアイ'],\r
-       ['use', 'ユース'],\r
-       ['echo', 'エコウ'],\r
-       ['you', 'ユー'],\r
-       ['youtube', 'ユーチューブ'],\r
-       ['files', 'ファイルズ'],\r
-       ['docs', 'ドックス'],\r
-       ['labs', 'ラブス'],\r
-       ['japan', 'ジャパン'],\r
-       ['japanese', 'ジャパニーズ'],\r
-       ['favorites', 'フェイバリッツ'],\r
-       ['documents', 'ドキュメンツ'],\r
-       ['settings', 'セッティングズ'],\r
-       ['one', 'ワン'],\r
-       #['onegai', 'オネーガイー'],\r
-       ['redistributable', 'リディストリビュータブル'],\r
-       ['app', 'アップ'],\r
-       ['types', 'タイプス'],\r
-       ['mouse', 'マウス'],\r
-       ['page', 'ページ'],\r
 \r
        ['行',  'ギョー'],\r
        #['一行', 'イチギョー'],\r
@@ -314,6 +288,33 @@ tasks = [
 \r
        # 2013-08-25\r
 \r
+       ['manage', 'マネイジ'],\r
+       ['choose', 'チュウズ'],\r
+       ['impaired', 'インペアド'],\r
+       ['failed', 'フェイルド'],\r
+       ['mixi', 'ミクシー'],\r
+       ['nullsoft', 'ヌルソフト'],\r
+       ['speech api', 'スピーチ エーピーアイ'],\r
+       ['use', 'ユース'],\r
+       ['echo', 'エコウ'],\r
+       ['you', 'ユー'],\r
+       ['youtube', 'ユーチューブ'],\r
+       ['files', 'ファイルズ'],\r
+       ['docs', 'ドックス'],\r
+       ['labs', 'ラブス'],\r
+       ['japan', 'ジャパン'],\r
+       ['japanese', 'ジャパニーズ'],\r
+       ['favorites', 'フェイバリッツ'],\r
+       ['documents', 'ドキュメンツ'],\r
+       ['settings', 'セッティングズ'],\r
+       ['one', 'ワン'],\r
+       #['onegai', 'オネーガイー'],\r
+       ['redistributable', 'リディストリビュータブル'],\r
+       ['app', 'アップ'],\r
+       ['types', 'タイプス'],\r
+       ['mouse', 'マウス'],\r
+       ['page', 'ページ'],\r
+\r
        {'text':'usage', 'speech':'ユーセイジ'},\r
        {'text':'june', 'speech':'ジューン'},\r
        {'text':'foundation', 'speech':'ファウンデイション'},\r
@@ -330,6 +331,45 @@ tasks = [
        {'text':'users', 'speech':'ユーザーズ'},\r
        {'text':'some', 'speech':'サム'},\r
        #{'text':'★~<QUIZ>~~~~~~~~~~~~~~~', 'speech':'★~<QUIZ>~~~~~~~~~~~~~~~', 'braille':'★/~/</QUIZ/>/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~'},\r
+       {'text':'database', 'speech':'データベース'},\r
+       {'text':'mode', 'speech':'モウドゥ'},\r
+       {'text':'opened', 'speech':'オープンド'},\r
+       {'text':'closed', 'speech':'クローズド'},\r
+       {'text':'unknown', 'speech':'アンノウン'},\r
+       {'text':'button', 'speech':'ボタン'},\r
+       {'text':'animation', 'speech':'アニメイション'},\r
+       {'text':'date', 'speech':'デイトゥ'},\r
+       {'text':'note', 'speech':'ノゥトゥ'},\r
+       {'text':'layered', 'speech':'レイヤード'},\r
+       {'text':'shape', 'speech':'シェイプ'},\r
+       {'text':'size', 'speech':'サイズ'},\r
+       {'text':'data', 'speech':'デイタ'},\r
+       {'text':'required', 'speech':'リクワイアード'},\r
+       {'text':'auto', 'speech':'オート'},\r
+       {'text':'iconified', 'speech':'アイコニファイド'},\r
+       {'text':'focusable', 'speech':'フォウカサブル'},\r
+       {'text':'editable', 'speech':'エディタブル'},\r
+       {'text':'draggable', 'speech':'ドゥラッガブル'},\r
+       {'text':'contains', 'speech':'コンテインズ'},\r
+       {'text':'errors', 'speech':'エラーズ'},\r
+       {'text':'position', 'speech':'ポジション'},\r
+       {'text':'previously', 'speech':'プリビアスリ'},\r
+       {'text':'entered', 'speech':'エンタード'},\r
+       {'text':'turns', 'speech':'ターンズ'},\r
+       {'text':'toggles', 'speech':'トグルズ'},\r
+       {'text':'clicks', 'speech':'クリックス'},\r
+       {'text':'unlock', 'speech':'アンロック'},\r
+       {'text':'unlocks', 'speech':'アンロックス'},\r
+       {'text':'locks', 'speech':'ロックス'},\r
+       {'text':'controls', 'speech':'コントゥロウルズ'},\r
+       {'text':'currently', 'speech':'カレントリ'},\r
+       {'text':'synth', 'speech':'シンセ'},\r
+       {'text':'moves', 'speech':'ムーブズ'},\r
+       {'text':'characters', 'speech':'キャラクターズ'},\r
+       {'text':'keys', 'speech':'キーズ'},\r
+       {'text':'cycles', 'speech':'サイクルズ'},\r
+       {'text':'levels', 'speech':'レベルズ'},\r
+       {'text':'speaks', 'speech':'スピークス'},\r
 \r
        {'text':'更衣室', 'braille':'コーイシツ'},\r
        {'text':'盗撮', 'braille':'トーサツ'},\r
index 330d19e..ece0ecd 100644 (file)
@@ -253,6 +253,12 @@ def isGoodEntry(s):
                return False\r
        if a[0] == 'gua' and a[12] == 'グアー':\r
                return False\r
+       if a[0] == 'an' and a[12] == 'アンー':\r
+               return False\r
+       if a[0] == 'en' and a[12] == 'エンー':\r
+               return False\r
+       if a[0] == 'un' and a[12] == 'ウンー':\r
+               return False\r
        if a[0] == 'ge' and a[12] == 'ゲー':\r
                return False\r
        if a[0] == 'ke' and a[12] == 'ケー':\r
@@ -263,6 +269,32 @@ def isGoodEntry(s):
                return False\r
        if a[0] == 'ne' and a[12] == 'ネー':\r
                return False\r
+       if a[0] == 'de' and a[12] == 'デー':\r
+               return False\r
+       if a[0] == 'pe' and a[12] == 'ペー':\r
+               return False\r
+       if a[0] == 'ze' and a[12] == 'ゼー':\r
+               return False\r
+       if a[0] == 'ta' and a[12] == 'ター':\r
+               return False\r
+       if a[0] == 'te' and a[12] == 'テー':\r
+               return False\r
+       if a[0] == 'to' and a[12] == 'トー':\r
+               return False\r
+       if a[0] == 'ti' and a[12] == 'チー':\r
+               return False\r
+       if a[0] == 'bu' and a[12] == 'ブー':\r
+               return False\r
+       if a[0] == 'tton' and a[12] == 'ットンー':\r
+               return False\r
+       if a[0] == 'ani' and a[12] == 'アニー':\r
+               return False\r
+       if a[0] == 'ere' and a[12] == 'エレー':\r
+               return False\r
+       if a[0] == 'iti' and a[12] == 'イチー':\r
+               return False\r
+       if a[0] == 'ifi' and a[12] == 'イフィー':\r
+               return False\r
        return True\r
 \r
 def make_dic(CODE, THISDIR):\r
diff --git a/include/jtalk/test-mecab.cmd b/include/jtalk/test-mecab.cmd
new file mode 100644 (file)
index 0000000..21851d5
--- /dev/null
@@ -0,0 +1,2 @@
+python mecabRunner.py|lv -Iu\r
+\r