Cannot input Chinese text in Scratch [$15]

Bug #1198794 reported by Jonathan Lumb
80
This bug affects 14 people
Affects Status Importance Assigned to Milestone
Scratch
Fix Released
Medium
Cody Garver

Bug Description

I am unable to input Chinese text in Scratch using fcitx, a Chinese input tool. I am able to copy Chinese text from elsewhere into a Scratch document and the text displays correctly. This is unusual as fcitx works fine in all other applications - for example in other text editors including Geany and Gedit. This bug makes Scratch fairly unusable for most Chinese users, many of whom use fcitx for Chinese input. The bug may also affect ibus users although I haven't yet tested this to confirm.

ProblemType: Bug
DistroRelease: elementary OS 0.2
Package: scratch-text-editor 2.0~r1117-0+pkg47~precise1 [origin: LP-PPA-elementary-os-daily]
ProcVersionSignature: Ubuntu 3.2.0-49.75-generic 3.2.46
Uname: Linux 3.2.0-49-generic i686
ApportVersion: 2.0.1-0ubuntu17.3+elementary3~precise1
Architecture: i386
CrashDB: scratch_text_editor
Date: Mon Jul 8 11:56:25 2013
GsettingsChanges:

InstallationMedia: elementary OS 0.2 "Luna" - Beta 1 i386 (20121114)
MarkForUpload: True
SourcePackage: scratch-text-editor
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jonathan Lumb (jonolumb) wrote :
Revision history for this message
Jonathan Lumb (jonolumb) wrote :

Can confirm that the same problem occurs with ibus - cannot type Chinese characters in Scratch.

I wonder whether this bug is related to another ibus/fcitx bug in Slingshot?

 https://bugs.launchpad.net/slingshot/+bug/1193572

Changed in scratch:
status: New → Confirmed
importance: Undecided → Low
milestone: none → 2.1
Changed in scratch:
milestone: 2.0.1 → 2.1
Revision history for this message
Jung-Kyu Park (bagjunggyu) wrote :

oops sorry my mistake ,updated
I wanted to write it affects me also, ibus-hangul
it is unable to type Korean also,it doesn't work at all

description: updated
Revision history for this message
Jonathan Lumb (jonolumb) wrote :

Doesn't work for me - and anyway, this would mess up with file permissions...

Revision history for this message
Jonathan Lumb (jonolumb) wrote :

No - but I read and write in Chinese on my laptop.

I notice that you were using IBUS for text input with your sudo workaround. I'm using fcitx so maybe that's why it doesn't work for me.

Hope this can be fixed soon...

Revision history for this message
zigzed (zigzed) wrote :

use command: GTK_IM_MODULE="xim" scratch-text-editor, now I can input Chinese with fcitx

Revision history for this message
Jonathan Lumb (jonolumb) wrote :

The GTK_IM_MODULE workaround works for me! Any chance this could be fixed now?

Revision history for this message
dsewnr (dsewnr) wrote :

I use iBus and no plan to use another input method.

I hope this bug will be fixed, too.

Thanks.

Revision history for this message
imzf (tdzfeng) wrote :
Cody Garver (codygarver)
Changed in scratch:
importance: Low → Medium
Changed in scratch:
milestone: isis-beta1 → isis-beta2
Changed in scratch:
milestone: freya-beta2 → none
Revision history for this message
Li Shiyi (li3shiyi) wrote :
Revision history for this message
BALLOON (balloon) wrote :

I have encountered the same problem in Japanese.
and try the workaround of i3shiyi, it was effective.

Revision history for this message
賴家亨 (laichiaheng) wrote :

When will it be fixed......it has been more than 2 years.

Revision history for this message
Jonathan Lumb (jonolumb) wrote :

Is there any way this could be implemented some time soon so I don't have to hack the configuration files myself? It's as simple as changing the Exec line in the .desktop file to the following:

 Exec=env GTK_IM_MODULE=xim scratch-text-editor %U

Currently, most Chinese, Japanese and Korean users of Elementary cannot enter text in their own languages using Scratch. That's a major caveat if Elementary wants to grow its presence in Asia.

Thanks!

Revision history for this message
xhhqzxg24 (xhhqzxg24) wrote :
Revision history for this message
Thibaut Victor Dumont (thibaut-victor-dumont-deactivatedaccount) wrote :

Same issue here for Korean alphabet (hangul) with scratch and sublime text. I cannot recommend it to my friends as the correction get deleted at each update.

I do believe it's quite a big issue for the Asian market and it's even more annoying knowing that a mere line could fix it =/

tags: added: i18n
Revision history for this message
Jung-Kyu Park (bagjunggyu) wrote :

I marked this issue https://bugs.launchpad.net/bugs/1198794
as a dupilcation of this bug report,
thus I moved the bounty to this issue.
If someone solve this issue, please claim this bounty [20$]
https://www.bountysource.com/issues/6722517-unable-to-switch-language-with-ibus-hangul-in-search-window

Revision history for this message
Jung-Kyu Park (bagjunggyu) wrote :

correct the wrong link of above comment "this issue"
https://bugs.launchpad.net/scratch/+bug/1397766

Revision history for this message
Jung-Kyu Park (bagjunggyu) wrote :

I don't think its a duplication issue.
I would expire this issue and would claim the bounty by my self
and, I would add the bounty from this issue to the other project
https://bugs.launchpad.net/switchboard-plug-keyboard/+bug/1397776

There is no bounty for this issue.

Revision history for this message
Jung-Kyu Park (bagjunggyu) wrote :
Maxim Taranov (png2378)
summary: - Cannot input Chinese text in Scratch
+ Cannot input Chinese text in Scratch [$15]
tags: added: bounty internationalization
Revision history for this message
Jung-Kyu Park (bagjunggyu) wrote :

These two input method seems to work, try to use these input method to Korean and Chinese

1) nimf
$ sudo apt install software-properties-common
$ sudo apt-add-repository ppa:hodong/nimf
$ im-config -n nimf
$ nimf-settings
log out & log in

2) uim
$ sudo apt install uim uim-pinyin
$ im-config -n uim
$ uim-pref-gtk
log out & log in

Revision history for this message
Jung-Kyu Park (bagjunggyu) wrote :

I can't type in Korean Hangul and English in slingshot.
I can't switch Input Method language between Hangul with English.

Input Method: fcitx-hangul

=== How to reproduce ===
$ sudo apt install fcitx-hangul fcitx-frontend-all fcitx-config-gtk
$ im-config -n fcitx
log out & log in

Note)
fcitx-config-gtk is now installed with gtk2 ,
thus it doesn't show its contents even I can run it in slingshot
it has an issue with missing dependancies in Loki, thus
fcitx-config-gtk3 is not available to be installed in Loki

We can not set shortcut key to input Hangul
restricted to Ctrl + Space , Hangul

Changed in slingshot:
status: New → Confirmed
no longer affects: slingshot
Revision history for this message
賴家亨 (laichiaheng) wrote :

When will it be fixed??????????????????????????????????????????/
The slingshot becomes weird in Loki, too......WTF!!!

Revision history for this message
BALLOON (balloon) wrote :

Although I have tried Loki Beta 2,
Scratch is has occurred is another problem that the display becomes strange,
does not currently able to confirm this problem.

Revision history for this message
BALLOON (balloon) wrote :

I solve the above problems, began to Scratch can be used.
As a result, it was confirmed that this problem has been continued in Loki.

Revision history for this message
Jung-Kyu Park (bagjunggyu) wrote :

賴家亨 (laichiaheng) mailed to me this workaround and it works perfectly with whole fcitx issues in elementary OS , removing of "fcitx-frontend-gtk3".

$ sudo apt purge fcitx-frontend-gtk3
logout & login

Revision history for this message
BALLOON (balloon) wrote :

I tried #29 in Japanese, it worked. but it can cause have a problem in a different app.

Revision history for this message
BALLOON (balloon) wrote :

Sorry. I tried "#28" in Japanese, it worked.

Changed in scratch:
status: Confirmed → Fix Committed
assignee: nobody → Cody Garver (codygarver)
Changed in scratch:
milestone: none → juno-beta1
Cody Garver (codygarver)
Changed in scratch:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.