Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A part of role of libskk for key mappings is not applied #16

Open
misumisumi opened this issue Oct 6, 2024 · 0 comments
Open

A part of role of libskk for key mappings is not applied #16

misumisumi opened this issue Oct 6, 2024 · 0 comments

Comments

@misumisumi
Copy link

misumisumi commented Oct 6, 2024

fcitx5-skk does not apply a part of role of libskk.
What does not apply is that this only occurs when including the shift key.
This was confirmed on NixOS and Ubuntu 22.04.

  • Role
    https://github.com/ueno/libskk/blob/master/rules/default/rom-kana/default.json

  • Expected
    Input "z{", output "【"

  • Actual
    Input "z{", output "{"

  • Other
    If the following shift key is not included, the behavior is as expected.
    Input "zl", output "→"
    Also, when libskk was called directly from the command line, it behaved as expected.

    echo "z {" | skk                                                                                                                                                                                                                  
    { "input": "z {", "output": "", "preedit": "" }
Here is the output of fcitx5-diagnose:

System Info:

  1. uname -a:

    Linux stacia 6.10.11 #1-NixOS SMP PREEMPT_DYNAMIC Wed Sep 18 17:25:18 UTC 2024 x86_64 GNU/Linux
    
  2. lsb_release:

    lsb_release not found.

  3. /etc/lsb-release:

    DISTRIB_CODENAME=vicuna
    DISTRIB_DESCRIPTION="NixOS 24.11 (Vicuna)"
    DISTRIB_ID=nixos
    DISTRIB_RELEASE="24.11"
    LSB_VERSION="24.11 (Vicuna)"
    
  4. /etc/os-release:

    ANSI_COLOR="1;34"
    BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
    BUILD_ID="24.11.20240921.9357f4f"
    DOCUMENTATION_URL="https://nixos.org/learn.html"
    HOME_URL="https://nixos.org/"
    ID=nixos
    IMAGE_ID=""
    IMAGE_VERSION=""
    LOGO="nix-snowflake"
    NAME=NixOS
    PRETTY_NAME="NixOS 24.11 (Vicuna)"
    SUPPORT_URL="https://nixos.org/community.html"
    VERSION="24.11 (Vicuna)"
    VERSION_CODENAME=vicuna
    VERSION_ID="24.11"
    
  5. Desktop Environment:

    Cannot determine desktop environment.

  6. XDG SESSION TYPE:

    XDG_SESSION_TYPE='x11'
    
  7. Bash Version:

    BASH_VERSION='5.2.32(1)-release'
    

Environment:

  1. DISPLAY:

    DISPLAY=':0'
    
    
    WAYLAND_DISPLAY=''
    
  2. Keyboard Layout:

    1. setxkbmap:

      xkb_keymap {
      	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
      	xkb_types     { include "complete"	};
      	xkb_compat    { include "complete"	};
      	xkb_symbols   { include "pc+us+inet(evdev)+ctrl(nocaps)"	};
      	xkb_geometry  { include "pc(pc104)"	};
      };
      
    2. xprop:

      _XKB_RULES_NAMES(STRING) = "evdev", "pc104", "us", "", "ctrl:nocaps"
      
  3. Locale:

    1. All locales:

      C
      en_US.utf8
      ja_JP.utf8
      POSIX
      
    2. Current locale:

      LANG=en_US.UTF-8
      LC_CTYPE="en_US.UTF-8"
      LC_NUMERIC="en_US.UTF-8"
      LC_TIME=ja_JP.UTF-8
      LC_COLLATE="en_US.UTF-8"
      LC_MONETARY=ja_JP.UTF-8
      LC_MESSAGES="en_US.UTF-8"
      LC_PAPER="en_US.UTF-8"
      LC_NAME="en_US.UTF-8"
      LC_ADDRESS="en_US.UTF-8"
      LC_TELEPHONE="en_US.UTF-8"
      LC_MEASUREMENT="en_US.UTF-8"
      LC_IDENTIFICATION="en_US.UTF-8"
      LC_ALL=
      
  4. Directories:

    1. Home:

      /home/sumi
      
    2. ${XDG_CONFIG_HOME}:

      Environment variable XDG_CONFIG_HOME is set to /home/sumi/.config.

      Current value of XDG_CONFIG_HOME is ~/.config (/home/sumi/.config).

    3. Fcitx5 Settings Directory:

      Current fcitx5 settings directory is ~/.config/fcitx5 (/home/sumi/.config/fcitx5).

  5. Current user:

    The script is run as sumi (1000).

Fcitx State:

  1. executable:

    Found fcitx5 at /etc/profiles/per-user/sumi/bin/fcitx5.

  2. version:

    Fcitx version: 5.1.10

  3. process:

    Found 1 fcitx5 process:

    2343402 .fcitx5-wrapped
    
  4. fcitx5-remote:

    fcitx5-remote works properly.

  5. DBus interface:

    Using dbus-send to check dbus.

    Owner of DBus name org.fcitx.Fcitx5 is :1.12615.

    PID of DBus name org.fcitx.Fcitx5 owner is 2343402.

    Debug information from dbus:

       Group [x11::0] has 6 InputContext(s)
      IC [0f1b1a21b97743cab33dfb47c2a293d8] program:.vivaldi-wrapped frontend:dbus cap:6000000032 focus:0
      IC [cd83e81baffe48d6956708c50997fbc2] program:.vivaldi-wrapped frontend:dbus cap:6000000032 focus:0
      IC [2c4aaf6f7c0641a49d7ee53077be2a3b] program:wezterm-gui frontend:xim cap:4000000012 focus:1
      IC [e3074561133f473ca03bd66741fe3e99] program:.vivaldi-wrapped frontend:dbus cap:6000000032 focus:0
      IC [548fb08a848e4bd9836a17868640b53b] program:Discord frontend:dbus cap:6000000032 focus:0
      IC [9540166c1c8f45269565bfbb73b2b63a] program:spotify frontend:dbus cap:6000000032 focus:0
    Input Context without group
    

Fcitx Configure UI:

  1. Config Tool Wrapper:

    Found fcitx5-configtool at /etc/profiles/per-user/sumi/bin/fcitx5-configtool.

  2. Config GUI for qt:

    Found fcitx5-config-qt at /etc/profiles/per-user/sumi/bin/fcitx5-config-qt.

  3. Config GUI for kde:

    kcmshell5 not found.

Frontends setup:

The environment variable checked by this script only shows the environment under current shell. It is still possible that you did not set the environment to the whole graphic desktop session. You may inspect the actual environment variable of a certain process by using xargs -0 -L1 /proc/$PID/environ for a certain process that you find not working.

Xim:

  1. ${XMODIFIERS}:

    Environment variable XMODIFIERS is set to "@im=fcitx" correctly.
    Xim Server Name from Environment variable is fcitx.

  2. XIM_SERVERS on root window:

    Xim server name is the same with that set in the environment variable.

Qt:

  1. qt4 - ${QT4_IM_MODULE}:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

    fcitx5-qt4-immodule-probing not found.

  2. qt5 - ${QT_IM_MODULE}:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

    Using fcitx5-qt5-immodule-probing to check the actual im module to be used under current environment:

    QT_QPA_PLATFORM=xcb
    QT_IM_MODULE=fcitx
    IM_MODULE_CLASSNAME=fcitx::QFcitxPlatformInputContext
    
  3. qt6 - ${QT_IM_MODULE}:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

    Using fcitx5-qt6-immodule-probing to check the actual im module to be used under current environment:

    QT_QPA_PLATFORM=xcb
    QT_IM_MODULE=fcitx
    IM_MODULE_CLASSNAME=fcitx::QFcitxPlatformInputContext
    
  4. Qt IM module files:

    Following error may not be accurate because guessing Qt version from path depends on how your distribution packages Qt. It is not a critical error if you do not use any Qt application with certain version of Qt or you are using text-input support by Qt under Wayland.
    Cannot find fcitx5 input method module for Qt4.
    Cannot find fcitx5 input method module for Qt5.
    Cannot find fcitx5 input method module for Qt6.

Gtk:

  1. gtk - ${GTK_IM_MODULE}:

    Environment variable GTK_IM_MODULE is set to "fcitx" correctly.

    fcitx5-gtk2-immodule-probing not found.

    Using fcitx5-gtk3-immodule-probing to check the actual im module to be used under current environment:

    GTK_IM_MODULE=fcitx
    

    Using fcitx5-gtk4-immodule-probing to check the actual im module to be used under current environment:

    GTK_IM_MODULE=fcitx
    
  2. gtk-query-immodules:

    1. gtk 2:

      Cannot find gtk-query-immodules for gtk 2

      Cannot find fcitx5 im module for gtk 2.

    2. gtk 3:

      Cannot find gtk-query-immodules for gtk 3

      Cannot find fcitx5 im module for gtk 3.

  3. Gtk IM module cache:

    1. gtk 2:

      Cannot find immodules cache for gtk 2

      Cannot find fcitx5 im module for gtk 2 in cache.

    2. gtk 3:

      Cannot find immodules cache for gtk 3

      Cannot find fcitx5 im module for gtk 3 in cache.

  4. Gtk IM module files:

    1. gtk 2:

      All found Gtk 2 immodule files exist.

    2. gtk 3:

      All found Gtk 3 immodule files exist.

    3. gtk 4:

      All found Gtk 4 immodule files exist.

Configuration:

Fcitx Addons:

  1. Addon Config Dir:

    Found fcitx5 addon config directory: /nix/store/c8vl45ls6m4d8cnqq0lnmjs6f1f7jxwn-fcitx5-5.1.10/share/fcitx5/addon.

  2. Addon List:

    1. Found 20 enabled addons:

      Classic User Interface 5.1.10
      Clipboard 5.1.10
      DBus 5.1.10
      DBus Frontend 5.1.10
      Emoji 5.1.10
      Fcitx4 Frontend 5.1.10
      IBus Frontend 5.1.10
      Input method selector 5.1.10
      Keyboard 5.1.10
      KDE Input Method Panel 5.1.10
      Status Notifier 5.1.10
      Notification 5.1.10
      Quick Phrase 5.1.10
      Spell 5.1.10
      Unicode 5.1.10
      DBus Virtual Keyboard 5.1.10
      Wayland 5.1.10
      Wayland Input method frontend 5.1.10
      XCB 5.1.10
      X Input Method Frontend 5.1.10
      
    2. Found 0 disabled addons:

  3. Addon Libraries:

    All libraries for all addons are found.

  4. User Interface:

    Found 3 enabled user interface addons:

    Classic User Interface
    KDE Input Method Panel
    DBus Virtual Keyboard
    

Input Methods:

  1. /home/sumi/.config/fcitx5/profile:

    [Groups/0]
    # Group Name
    Name=Default
    # Layout
    Default Layout=us
    # Default Input Method
    DefaultIM=keyboard-us
    
    [Groups/0/Items/0]
    # Name
    Name=keyboard-us
    # Layout
    Layout=
    
    [Groups/1]
    # Group Name
    Name=EN
    # Layout
    Default Layout=us
    # Default Input Method
    DefaultIM=keyboard-us
    
    [Groups/1/Items/0]
    # Name
    Name=keyboard-us
    # Layout
    Layout=
    
    [Groups/2]
    # Group Name
    Name=SKK
    # Layout
    Default Layout=us
    # Default Input Method
    DefaultIM=keyboard-us
    
    [Groups/2/Items/0]
    # Name
    Name=skk
    # Layout
    Layout=
    
    [Groups/2/Items/1]
    # Name
    Name=keyboard-us
    # Layout
    Layout=
    
    [GroupOrder]
    0=SKK
    1=EN
    2=Default
    

Log:

  1. date:

    2024年 10月  6日 日曜日 15:24:28 JST
    
  2. /home/sumi/.config/fcitx5/crash.log:

    /home/sumi/.config/fcitx5/crash.log not found.

Warning: the output of fcitx5-diagnose contains sensitive information, including the distribution name, kernel version, name of currently running programs, etc.

Though such information can be helpful to developers for diagnostic purpose, please double check and remove as necessary before posting it online publicly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant