ueno/ibus-skk — Issue #45: Look over invalid chars, or support UTF-8 dictionary?
Author: tamo
Created: 2012-01-29 09:14:56+00:00
State: open

I have a large SKK-JISYO, which is made of L, JIS2, JIS3_4, JIS2004, and so on.
(http://openlab.ring.gr.jp/skk/wiki/wiki.cgi?page=SKK%BC%AD%BD%F1#p23)

IIRC, 1.3.x worked fine with this dictionary (or an oskkd server consulting the dictionary? I've forgotten)

1.4.0 (with libskk-0.0.9) cannot handle this kind of monster.

For example,

echo "H a - t o SPC" | skk -f SKK-JISYO.JIS3_4
** (skk:23946): WARNING **: file-dict.vala:195: can't decode line \xa4ϡ\xbc\xa4\xc8 /\xa6\xbd/\xa6\xbe/: Invalid byte sequence in conversion input
** (skk:23946): WARNING **: file-dict.vala:195: can't decode line \xa4ϡ\xbc\xa4\xc8 /\xa6\xbd/\xa6\xbe/: Invalid byte sequence in conversion input
{ "input": "H a - t o SPC", "output": "", "preedit": "[DictEdit] はーと " }

It is not very good to ignore the "invalid byte sequence". (And it is libskk's business)
So I'd like ibus-skk to support unicode dictionaries.(Though I'm not sure such dictionaries help fix this trouble I'm experiencing)

In fact, I tried something like this:

nkf -w SKK-JISYO.L > SKK-JISYO.u8.L
perl -p -i -e 's/JISYO\.L/JISYO.u8.L,encoding=UTF-8/ ~/.gconf/desktop/ibus/engine/skk/%gconf.xml
ibus-daemon -rxd

but it didn't help. I must have missed something important.