ibus input method doesn't work on wine

Questions about Wine on Linux
Locked
luca92
Level 3
Level 3
Posts: 55
Joined: Thu Jan 23, 2014 5:44 am

ibus input method doesn't work on wine

Post by luca92 »

hello,
on ArchLinux I installed ibus/anthy to have a double Italian/Japanese keyboard layout:
https://wiki.archlinux.org/title/Input_ ... using_ibus

but in WINE programs it doesn't work: when I press the key to switch keyboard layout, nothing happens.

Code: Select all

$ wine notepad.exe
wineserver: using server-side synchronization.
wine: Using setpriority to control niceness in the [-10,10] range
002c:fixme:winediag:LdrInitializeThunk wine-staging 8.0 is a testing version containing experimental patches.
002c:fixme:winediag:LdrInitializeThunk Please mention your exact version when filing bug reports on winehq.org.
0098:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
009c:err:hid:udev_bus_init UDEV monitor creation failed
0098:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0098:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0098:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0098:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0098:fixme:xinput:pdo_pnp IRP_MN_QUERY_ID type 5, not implemented!
0098:fixme:xinput:pdo_pnp IRP_MN_QUERY_ID type 5, not implemented!
0098:fixme:xinput:pdo_pnp IRP_MN_QUERY_ID type 5, not implemented!
0098:fixme:xinput:pdo_pnp IRP_MN_QUERY_ID type 5, not implemented!
011c:err:ole:apartment_add_dll couldn't find function DllGetClassObject in L"C:\\windows\\system32\\uiautomationcore.dll"
011c:err:ole:com_get_class_object no class object {ff48dba4-60ef-4201-aa87-54103eef594e} could be created for context 0x1
011c:err:tabtip:create_uia_event_handler Failed to create IUIAutomation interface, hr 0x800401f8
012c:fixme:imm:ImeSetActiveContext himc 00010064, flag 0x1 stub!
0088:fixme:imm:ImeSetActiveContext himc 0000000000010026, flag 0 stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!
012c:fixme:keyboard:X11DRV_ActivateKeyboardLayout 0x4100410, 0000: semi-stub!


how can i solve?
axis6404
Level 2
Level 2
Posts: 14
Joined: Sun Apr 23, 2023 5:13 am

Re: ibus input method doesn't work on wine

Post by axis6404 »

Hi luca92,

Perhaps it might work if wine is upgraded to the latest version wine8.10.

I am using fcitx5-mozc, not ibus, but the previous version did not allow any Japanese input. But since wine 8.10(?), I can input Japanese now.
luca92
Level 3
Level 3
Posts: 55
Joined: Thu Jan 23, 2014 5:44 am

Re: ibus input method doesn't work on wine

Post by luca92 »

axis6404 wrote: Sun Jun 18, 2023 3:32 am Hi luca92,

Perhaps it might work if wine is upgraded to the latest version wine8.10.

I am using fcitx5-mozc, not ibus, but the previous version did not allow any Japanese input. But since wine 8.10(?), I can input Japanese now.
thanks for reply!
i have tried wine 8.10 but still doesn't work.
I also tried fcitx5-mozc, on linux it works but on wine it doesn't. how did you configure it? I followed this guide:
https://wiki.archlinux.org/title/Fcitx5

Code: Select all

$ cat ~/.config/fcitx5/config
[Hotkey]
# Enumerate when press trigger key repeatedly
EnumerateWithTriggerKeys=True
# Skip first input method while enumerating
EnumerateSkipFirst=False

[Hotkey/TriggerKeys]
0=Control+space
1=Zenkaku_Hankaku
2=Hangul

[Hotkey/AltTriggerKeys]
0=Shift_L

[Hotkey/EnumerateForwardKeys]
0=Control+Shift_L

[Hotkey/EnumerateBackwardKeys]
0=Control+Shift_R

[Hotkey/EnumerateGroupForwardKeys]
0=Super+space

[Hotkey/EnumerateGroupBackwardKeys]
0=Shift+Super+space

[Hotkey/ActivateKeys]
0=Hangul_Hanja

[Hotkey/DeactivateKeys]
0=Hangul_Romaja

[Hotkey/PrevPage]
0=Up

[Hotkey/NextPage]
0=Down

[Hotkey/PrevCandidate]
0=Shift+Tab

[Hotkey/NextCandidate]
0=Tab

[Hotkey/TogglePreedit]
0=Control+Alt+P

[Behavior]
# Active By Default
ActiveByDefault=False
# Share Input State
ShareInputState=No
# Show preedit in application
PreeditEnabledByDefault=True
# Show Input Method Information when switch input method
ShowInputMethodInformation=True
# Show Input Method Information when changing focus
showInputMethodInformationWhenFocusIn=False
# Show compact input method information
CompactInputMethodInformation=True
# Show first input method information
ShowFirstInputMethodInformation=True
# Default page size
DefaultPageSize=5
# Override Xkb Option
OverrideXkbOption=False
# Custom Xkb Option
CustomXkbOption=
# Force Enabled Addons
EnabledAddons=
# Force Disabled Addons
DisabledAddons=
# Preload input method to be used by default
PreloadInputMethod=True

Code: Select all

$ cat ~/.config/fcitx5/profile 
[Groups/0]
# Group Name
Name=Default
# Layout
Default Layout=it
# Default Input Method
DefaultIM=mozc

[Groups/0/Items/0]
# Name
Name=keyboard-it
# Layout
Layout=

[Groups/0/Items/1]
# Name
Name=mozc
# Layout
Layout=

[GroupOrder]
0=Default


luca92
Level 3
Level 3
Posts: 55
Joined: Thu Jan 23, 2014 5:44 am

Re: ibus input method doesn't work on wine

Post by luca92 »

if i start the command using variable "XMODIFIERS=@im=fcitx" it works:

Code: Select all

XMODIFIERS=@im=fcitx wine notepad
But in Steam games (like Among Us) it doesn't work: when I press the keys the text appears in the upper left but it is not seen in the game.
video: https://streamable.com/9avioy
how can i solve?
axis6404
Level 2
Level 2
Posts: 14
Joined: Sun Apr 23, 2023 5:13 am

Re: ibus input method doesn't work on wine

Post by axis6404 »

I found this article.
https://askubuntu.com/questions/1297364 ... untu-18-04

I have input Japanese outside of games with default settings. The game GUI is special and may not work.
luca92
Level 3
Level 3
Posts: 55
Joined: Thu Jan 23, 2014 5:44 am

Re: ibus input method doesn't work on wine

Post by luca92 »

axis6404 wrote: Sun Jun 18, 2023 6:07 am I found this article.
https://askubuntu.com/questions/1297364 ... untu-18-04

I have input Japanese outside of games with default settings. The game GUI is special and may not work.
Japanese text on Among US worked until a week ago (with uim/anthy), it hasn't been working since the June 15th update of Steam. I also tried ibus but it doesn't work.
i don't use Ubuntu, i have no "Applications --> Language Support" menu. I use ArchLinux without DE (only openbox).
luca92
Level 3
Level 3
Posts: 55
Joined: Thu Jan 23, 2014 5:44 am

Re: ibus input method doesn't work on wine

Post by luca92 »

I noticed one thing: if while playing Among Us I restart fcitx5 from the systray menu then it works and the text is visible. How is it possible?
luca92
Level 3
Level 3
Posts: 55
Joined: Thu Jan 23, 2014 5:44 am

Re: ibus input method doesn't work on wine

Post by luca92 »

i found a workaround! when it doesn't work if i type Alt+TAB 2 times, it fixes it and it works again!
What could be the cause? i don't use DE, i have only openbox. i have tried another WM like metacity but nothing changes.
luca92
Level 3
Level 3
Posts: 55
Joined: Thu Jan 23, 2014 5:44 am

Re: ibus input method doesn't work on wine

Post by luca92 »

I think I have SOLVED, it was a wine problem:

Code: Select all

sudo pacman -Rs wine-ge-custom wine-mono winetricks dxvk-async

Code: Select all

sudo pacman -S wine
axis6404
Level 2
Level 2
Posts: 14
Joined: Sun Apr 23, 2023 5:13 am

Re: ibus input method doesn't work on wine

Post by axis6404 »

Congratulations! :)
Locked