Closed Bug 991721 Opened 10 years ago Closed 6 years ago

jp-kanji dictionary make file doesn't work

Categories

(Firefox OS Graveyard :: Gaia::Keyboard, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: andrew.mainland, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0 (Beta/Release)
Build ID: 20140314220517

Steps to reproduce:

Trying to compile and use jp-kanji. 
Following directions found here: 
B2G/gaia/apps/keyboard/js/imes/jskanji/dict/Makefile




Actual results:

Expected a new dict.json file


Expected results:

Crashed
$ make
find ipadic -name "*.dic" -exec cat {} >> dict \;
iconv -f euc-jp -t utf-8 dict > dict.utf8
iconv: illegal input sequence at position 3
make: *** [dict.utf8] Error 1
If I change file
B2G/gaia/apps/keyboard/js/imes/jskanji/dict/Makefile
changing line 
iconv -f euc-jp -t utf-8 dict > dict.utf8
to
iconv -sc -f euc-jp -t utf-8 dict > dict.utf8

This also crashes:
$ make
python conv.py
dict.utf8
Traceback (most recent call last):
  File "conv.py", line 27, in <module>
    kana = kata2hira(arr[base+2][:-1])
IndexError: list index out of range
make: *** [json] Error 1
If I use the dictionaries found in ipadic-2.5.0.src.rpm instead of ipadic-2.5.1.src.rpm the the same crash occurs a little later in the script.
these directions do work:
tar zxvf ~/naist-jdic-0.4.3.tar.gz
cd B2G/gaia/apps/keyboard/js/imes/jskanji/dict
mkdir ipadic
cp naist-jdic-0.4.3/naist-jdic.dic ipadic/
make json
Firefox OS is not being worked on
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.