DictionaryforMIDs Esperanto-Japanese Dictionary
Request for Help
This edition of the DictionaryforMIDs Japanese Dictionary uses romaji to input Japanese. An input system based on hiragana would be a much better option. If you know the Java programming language and can add a hiragana input system, then please contact one of the then please contact one of the developers.
The best place to start looking is at the "OwnTextField" Java code. It is available from the DictionaryforMIDs forum.
1. IME (Input Method Editor)
The "OwnTextField" Java code can be adapted to be used as an input method editor (IME). An IME is a program that lets you enter Japanese on a computer. The IME on a computer can convert hiragana to kanji. The IME for a cell phone would be much simpler. It would only convert cell phone number buttons to hiragana. It will not convert the hiragana to kanji (a custom made IME to convert hiragana to kanji would be far too large to fit on current cell phones). The IME will replicate the IME on a phone sold in Japan. Here is the layout.
Hiragana | Katakana | Cell Phone Input |
あ | ア | 1 |
い | イ | 11 |
う | ウ | 111 |
え | エ | 1111 |
お | オ | 11111 |
ぁ | ァ | 111111 |
ぃ | ィ | 1111111 |
ぅ | ゥ | 1111111 |
ぇ | ェ | 111111111 |
ぉ | ォ | 1111111111 |
か | カ | 2 |
き | キ | 22 |
く | ク | 222 |
け | ケ | 2222 |
こ | コ | 22222 |
が | ガ | 2# |
ぎ | ギ | 22# |
ぐ | グ | 222# |
げ | ゲ | 2222# |
ご | ゴ | 22222# |
さ | サ | 3 |
し | シ | 33 |
す | ス | 333 |
せ | セ | 3333 |
そ | ソ | 33333 |
ざ | ザ | 3# |
じ | ジ | 33# |
ず | ズ | 333# |
ぜ | ゼ | 3333# |
ぞ | ゾ | 33333# |
た | タ | 4 |
ち | チ | 44 |
つ | ツ | 444 |
て | テ | 4444 |
と | ト | 44444 |
っ | ッ | 444444 |
だ | ダ | 4# |
ぢ | ヂ | 44# |
づ | ヅ | 444# |
で | デ | 4444# |
ど | ド | 44444# |
な | ナ | 5 |
に | ニ | 55 |
ぬ | ヌ | 555 |
ね | ネ | 5555 |
の | ノ | 55555 |
は | ハ | 6 |
ひ | ヒ | 66 |
ふ | フ | 666 |
へ | ヘ | 6666 |
ほ | ホ | 66666 |
ば | バ | 6# |
び | ビ | 66# |
ぶ | ブ | 666# |
べ | ベ | 6666# |
ぼ | ボ | 66666# |
ぱ | パ | 6## |
ぴ | ピ | 66## |
ぷ | プ | 666## |
ぺ | ペ | 6666## |
ぽ | ポ | 66666## |
ま | マ | 7 |
み | ミ | 77 |
む | ム | 777 |
め | メ | 7777 |
も | モ | 77777 |
や | ヤ | 8 |
ゆ | ユ | 88 |
よ | ヨ | 888 |
ゃ | ャ | 8888 |
ゅ | ュ | 88888 |
ょ | ョ | 888888 |
ら | ラ | 9 |
り | リ | 99 |
る | ル | 999 |
れ | レ | 9999 |
ろ | ロ | 99999 |
ん | ン | 0 |
ー | ー | 00 |
わ | ワ | 000 |
を | ヲ | 0000 |
ゎ | ヮ | 00000 |
. | * | |
, | ** | |
? | *** | |
! | **** | |
: | ***** | |
' | ****** | |
( | ******* | |
) | ******** | |
¥ | ********* | |
@ | ********** | |
/ | *********** | |
- | ************ | |
_ | ************* | |
& | ************** | |
~ | *************** |
2. Database Setup
Once an IME for Japanese is developed, then the search setup can be updated. This edition of the dictionary uses a NormationClass to search with romaji. The romaji is first converted to hiragana and a search is run. Then the romaji is converted to katakana and a 2nd search is run. Searching is slow since the search is done 2 times.
This search is done with 3 files:
A better option is to change the NormationClass to a DictionaryUpdateClass. This will enable the search to be done 1 time instead of 2 times with the NormationClass. This will lead to much faster searches. See http://dictionarymid.sourceforge.net/newdict.html and http://dictionarymid.sourceforge.net/newdictNormation.html for information on DictionaryUpdateClass and NormationClass.
This will be done with this file:
Currently the katakana_hiragana_utf8.txt file is not used at all.
All katakana dictionary entries will be
hard-coded to hiragana in the index files:
This conversion will happen during the creation process of the dictionary rather than at the search time. Then at search time you would enter hiragana for all katakana words. Only the indexes will contain the katakana words as hiragana. All katakana words on the cell phone will still display normally as katakana.
Say for example you want to look up the word 'bus' (バス). You would type in 「ばす」(hiragana). Then 「バス」(katakana) would show up as a result. Another example is with kanji/hiragana words: say you want to look up 'sweet' (甘い). You would type in 「あまい」(hiragana). Then 「甘い」 (kanji/hiragana) would show up as a result.
Long vowels aren't converted from katakana to hiragana. They are still "ー". To enter long vowels on cell phones you type hiragana then add the katakana "ー" with the hiragana. This is to emulate how long vowels work on Japanese electronic dictionaries.
So to search for "cart" (カート), you type:
かーと [hiragana-katakana-hiragana]
If you need any further assistance with the details then please contact dreamingclouds (at) gmail.com.