sgalal / rime-opencc-latest

Customize rime input schemata to use the latest OpenCC dictionaries
Apache License 2.0
5 stars 0 forks source link

Doesn't work on Linux Mint and Ubuntu #1

Open dosentmatter opened 3 years ago

dosentmatter commented 3 years ago

Hello, I have successfully used your rime-opencc packages on macOS and Windows (the 32-bit version since weasel is 32-bit), but this 64-bit version fails for me on:

Linux Mint 20.1
Cinnamon 4.8.6
Linux Kernel 5.4.0-73-generic

It fails for me on both ibus-rime and fcitx-rime.

IBus 1.5.22
fcitx 4.2.9.7

fcitx is 64- bit. I also tried the 32-bit rime-opencc, and it failed the same way visually, but I didn't check the 32-bit logs.

$ file /usr/bin/fcitx
/usr/bin/fcitx: ELF 64-bit LSB shared object, x86-64,...

I am installing your package with plum. If I don't use your package and just use the OpenCC shipped with RIME, simplified characters in rime-cantonese and luna_pinyin_simp works as expected.

When I have your package installed and redeploy RIME on ibus or fcitx, changing to simplified characters and then typing any character to the IME will crash ibus and fcitx.

I checked logs in my /tmp directory. There are no crash logs. When I restart ibus or fcitx and try to type simplified characters again, it doesn't crash anymore but it will only output traditional characters even though I have simplified selected.

I forgot if the ibus logs say anything. The fcitx logs in /tmp/rime.fcitx-rime.INFO say:

I0522 21:10:20.120846 18612 engine.cc:206] Oops, got a futile translation.
I0522 21:10:20.906191 18612 engine.cc:206] Oops, got a futile translation.
I0522 21:10:21.195035 18612 engine.cc:206] Oops, got a futile translation.
I0522 21:10:21.473274 18612 engine.cc:206] Oops, got a futile translation.
I0522 21:13:42.140594 18612 engine.cc:206] Oops, got a futile translation.

There is no /tmp/rime.fcitx-rime.ERROR file.

I see that the message comes from https://github.com/rime/librime/blob/rime-1.3.1/src/rime/engine.cc#L206. I'm not sure where the bug lies and how the projects work. Do you have any suggestions? Thanks.

EDIT: I tested on Ubuntu and it fails as well. However the IME program doesn't crash, and I don't see it logging any problems such as the "Oops, got a futile translation.", thought I might not have looked closely enough. Ubuntu still outputs Traditional when using rime-opencc-latest and selecting Simplified characters.

sgalal commented 3 years ago

Thank you for reporting this issue. I am not sure of the cause of this issue. Maybe the OpenCC dictionary format is not compatible. If the issue persists, you can just use the OpenCC shipped with rime. I will update the installation guide of rime-cantonese later.