Bug 2306455 - kkc cannot be activated, json containing error
Summary: kkc cannot be activated, json containing error
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: libkkc
Version: 41
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jens Petersen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-08-21 08:01 UTC by Mamoru TASAKA
Modified: 2024-08-22 06:22 UTC (History)
3 users (show)

Fixed In Version: libkkc-0.3.5-30.fc41
Clone Of:
Environment:
Last Closed: 2024-08-22 06:21:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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?


Note You need to log in before you can comment on or make changes to this bug.