flameshot-org / flameshot

Powerful yet simple to use screenshot software :desktop_computer: :camera_flash:
https://flameshot.org
GNU General Public License v3.0
25.03k stars 1.6k forks source link

Text cannot be entered in Chinese #562

Closed maojunxyz closed 5 years ago

maojunxyz commented 5 years ago

Flameshot version Flameshot v0.6.0 Compiled with Qt 5.12.1

Describe the bug Text cannot be entered in Chinese. My input method tray icon has been switched to Chinese input method. But I can't input Chinese, and I can't switch input method when using TEXT,only English letters can be entered.

Peek 2019-06-21 13-27

To Reproduce I use pamcan as my package management tool and use the fcitx-rime input tool.

# intall input tool
$ sudo pacman -S fcitx-rime
$ sudo pacman -S fcitx-configtool

Install the Simplified Chinese input method in the input tool. Switch to Chinese input status and enter Chinese in the flameshot use TEXT function.

Expected behavior When using the TEXT function, Chinese can be input in Chinese input tool.

System Information 4.19.49-1-MANJARO

hosiet commented 5 years ago

For my testing on Debian 10, Chinese characters can be typed in but the character selection box will not show up anyway.

maojunxyz commented 5 years ago

@hosiet testing on Archlinux or Manjaro it does not work.

But I thought of an alternative, first enter the content and copy the clipboard, copyq will store them. When I use the Text function, I use the global shortcut to copy the contents of copyq (you can select the previous/next content), and then paste it with ctrl-v and it will be perfect.

The downside is that I have to think about what I need in advance when I need to use the TEXT feature. However, it is much more convenient than opening screenshot in other software and adding text.

Peek 2019-07-31 09-28

maojunxyz commented 5 years ago

solved.In addition to the following configuration:

export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx

Need additional installation of the fcitx-qt module.Add the fcitx-qt5 module method in archlinux:

$ sudo pacman -S fcitx-qt5

Restart the fcitx input tool and flameshot after installation. Then try Chinese input. success.

amosbird commented 4 years ago

solved.In addition to the following configuration:

export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx

Need additional installation of the fcitx-qt module.Add the fcitx-qt5 module method in archlinux:

$ sudo pacman -S fcitx-qt5

Restart the fcitx input tool and flameshot after installation. Then try Chinese input. success.

It still doesn't work for me.

This is because flameshot gui spawns a dummy daemon, which doesn't have the QT_IM_MODULE=fcitx env entry.

Pre-running a flameshot daemon fixes the problem.

exploman commented 8 months ago

@maojunxyz 你好,楼主。解决不能输入中文,是不是只能自己编译

LeisureLinux commented 4 months ago

solved.In addition to the following configuration:

export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx

Need additional installation of the fcitx-qt module.Add the fcitx-qt5 module method in archlinux:

$ sudo pacman -S fcitx-qt5

Restart the fcitx input tool and flameshot after installation. Then try Chinese input. success.

It still doesn't work for me.

This is because flameshot gui spawns a dummy daemon, which doesn't have the QT_IM_MODULE=fcitx env entry.

Pre-running a flameshot daemon fixes the problem.

Under Debian, this package is fcitx-frontend-qt5. After installed this package, Can input Chinese Character now. Thanks for sharing.