Bug 2306455

Summary: kkc cannot be activated, json containing error
Product: [Fedora] Fedora Reporter: Mamoru TASAKA <mtasaka>
Component: libkkcAssignee: Jens Petersen <petersen>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 41CC: dueno, i18n-bugs, petersen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: libkkc-0.3.5-30.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-08-22 06:21:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mamoru TASAKA 2024-08-21 08:01:00 UTC
On Fedora 41, ibus input method using kkc cannot be activated.
ibus-setup says json file contains error.

$ rpm -qf /usr/share/libkkc/rules/default/rom-kana/default.json
libkkc-common-0.3.5-28.fc40.noarch


Reproducible: Always

Steps to Reproduce:
1. launch $ ibus-setup
2. choose "入力メソッド" tab
3. click kkc 「あ」 icon
4. click 「設定」button
Actual Results:  
** (ibus-setup-kkc:421517): ERROR **: 16:58:59.628: setup.vala:492: can't load typing rule default: can't load /usr/share/libkkc/rules/default/rom-kana/default.json: /usr/share/libkkc/rules/default/rom-kana/default.json:121:47: 解析エラー: unexpected character `,', expected string constant

Also, ibus input method using kkc cannot be activated

Expected Results:  
ibus input method using kkc can be activated

Comment 1 Mamoru TASAKA 2024-08-21 08:39:15 UTC
Editing /usr/share/libkkc/rules/default/rom-kana/default.json to change:

"n\'": -> "n'":

seems to work.

Comment 2 Jens Petersen 2024-08-21 13:28:10 UTC
Sorry, I basically just took over the package a few releases back to save it from retirement.
I think help is welcome, but kkc is not maintained any more afaik.

It also failed to rebuild for F41...

Comment 3 Mamoru TASAKA 2024-08-21 16:06:59 UTC
PR: https://src.fedoraproject.org/rpms/libkkc/pull-request/5

Comment 4 Mamoru TASAKA 2024-08-21 16:22:20 UTC
(Personally, why I still want to use libkkc is that I find difficulty in typing math symbols with anthy like:

 zokusuru (属する) -> ∈
 fukumareru (含まれる) -> ⊂
 notto (ノット) -> ¬
 mujyun (矛盾) -> ⊥

)

Comment 5 Jens Petersen 2024-08-22 04:36:52 UTC
Thanks for the PR - merged now - also thanks to Daiki for checking it.

Perhaps such math abbreviations could be added to anthy-unicode too?

Comment 6 Mamoru TASAKA 2024-08-22 05:26:16 UTC
@petersen Would you also build fixed libkkc for branched F41?