From Fedora Project Wiki

IBus Table Cangjie default for Hong Kong

Summary

Make ibus-table-chinese-cangjie the default input method for zh_HK (Hong Kong) locale.

Owner


Current status

Detailed Description

Currently, ibus-cangjie is the default input method for zh_HK in Fedora. ibus-cangjie is not actively maintained anymore upstream. ibus-table and the cangjie tables in ibus-table-chinese are actively maintained and can replace ibus-cangjie.

Feedback

Benefit to Fedora

A better input experience for users of the zh_HK locale.

Scope

  • Proposal owners:

The langtable package has data about default input methods. Change this data. But the data in langtable is currently apparently not used by gnome-initial setup. The list of default input methods used by gnome-initial-setup us stored in

libgnome-desktop/default-input-sources.h

Currently there is the following default input method for zh_HK locale:

static DefaultInputSource default_input_sources[] =
{
   ...
   { "zh_HK",    "ibus",         "cangjie" },
   ...
}

Here, cangjie would need to be replaced with table:cangjie5.

Merge request for the fedora gnome-desktop3 package: https://src.fedoraproject.org/rpms/gnome-desktop3/pull-request/8 (merged)

Merge request upstream for gnome-desktop: https://gitlab.gnome.org/GNOME/gnome-desktop/-/merge_requests/134 (merged)

fedora-comps needs to be updated to install ibus-table-chinese-cangjie by default: https://pagure.io/fedora-comps/pull-request/707#request_diff (merged)

Change to langpacks has been done already in 2021-03-10: https://src.fedoraproject.org/rpms/langpacks/c/24f7d226724fa5b3718a24aa9afdaf616e902198?branch=rawhide

But this additional change to langpacks would be good: “zh_HK: add ibus-table-chinese-quick, zh_TW: add ibus-table-chinese-cangjie, add ibus-table-chinese-quick” https://src.fedoraproject.org/rpms/langpacks/pull-request/16 (both quick and cangjie are used not only in zh_HK but also in zh_TW) (merged)

  • Other developers: N/A (not a System Wide Change)
  • Release engineering: N/A (not a System Wide Change)
  • Policies and guidelines: N/A (not needed for this Change)
  • Trademark approval: N/A (not needed for this Change)
  • Alignment with Objectives:

Upgrade/compatibility impact

Nothing should happen when upgrading from a previous version of Fedora. If a user used ibus-cangjie before the upgrade, they will still use it after the upgrade. This change proposal only changes the default input method for zh_HK locale for new installs or new user accounts.


How To Test

  • Do a new installation of Fedora in zh_HK (Chinese Hong Kong) locale.
    • Alternatively change the system locale to zh_HK and then create a new test user.
  • Login to GNOME
  • The package ibus-table-chinese-cangjie should get installed.
  • See what input method is suggested by default by gnome-initial-setup.


User Experience

Less buggy and better maintained cangjie input method.

Dependencies

gnome-initial-setup

Contingency Plan

  • Contingency mechanism: Leave the default input methods as they are now and move the change to Fedora 37
  • Contingency deadline: Fedora 36 Beta release
  • Blocks release? No.

Documentation

N/A (not a System Wide Change)

Release Notes

The table:cangjie5 table of ibus-table-chinese-cangjie is now the default input method when installing a new system in zh_HK locale. The ibus-table-chinese-cangjie package is installed in that case.

If the installation was installed in a different locale then switching the language in Gnome to zh_HK and creating a user should install the ibus-table-chinese-cangjie package and when creating a new user gnome-initial setup should give table:cangjie5 as the default for the new user.