LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware 12.1 - SCIM does not work within QT applications (https://www.linuxquestions.org/questions/slackware-14/slackware-12-1-scim-does-not-work-within-qt-applications-639732/)

gegechris99 05-04-2008 01:27 AM

Slackware 12.1 - Korean input with SCIM does not work within QT applications
 
Hello,

I've upgraded to Slackware 12.1 and I'm using SCIM to enter Korean characters. I followed instructions in the CHANGES_AND_HINTS.TXT file to set up SCIM:

1) in ~/.profile, I added:
Code:

export LANG=fr_FR.UTF-8
2) then:
Code:

chmod +x /etc/profile.d/scim.sh
3) and in ~/.xprofile, I added:
Code:

/usr/bin/scim -d
It works well on my browser (Firefox) but I can not manage to use SCIM in QT applications (Kword, Kedit...).

On SCIM website (http://www.scim-im.org/projects/scim_qtimm), It is mentioned:

Quote:

Due to version policy, Trolltech won't incorporate immodule support in Qt 3.3.x. However, this would be a standard built-in feature for Qt 4. In fact, Qt 4-beta2 already includes it.
As for Qt 3.3, you can apply the immodule patch. Some distros (gentoo, SuSE) already do that for you.
I'd like to know if someone has managed to enter Asian characters in QT applications with Slackware 12.1. I find it strange that the CHANGES_AND_HINTS.TXT file does not say anything about some limitations for SCIM (or I didn't look at the right place).

FYI, I installed only the following SCIM packages:

libhangul
scim
scim-hangul
scim-bridge

Thank you for your feedback.

Bruce Hill 05-04-2008 11:31 AM

I can enter Simplified Chinese into KWord, Stardict, Firefox, Konsole, KEdit.

I had to go to SCIM setup (right-click the tray icon) and add another language,
so that there was more than just Chinese Simplified in the Global Setup.

Alien Bob 05-04-2008 01:21 PM

Quote:

Originally Posted by gegechris99 (Post 3141856)
3) and in ~/.xprofile, I added:
Code:

/usr/bin/scim -d

Are you starting in runlevel 4 (graphical login)?

Eric

gegechris99 05-04-2008 01:35 PM

Alien Bob,

Yes I'm running level 4

gegechris99 05-04-2008 02:16 PM

I googled a bit and it seems that to be able to have SCIM working for QT applications, we need a QT plugin. Other distributions (Ubuntu, Mandriva, Fedora) offer a "scim-qtimm" package to make SCIM work with QT applications.

Is such a package necessary for Slackware? I haven't found one for now.

gegechris99 05-05-2008 04:03 PM

OK, I guess I found the issue.

There's a recent interview of South Korean KDE developpers:

http://dot.kde.org/1209422140/

Look at krisna's interview about issue with Korean input method with KDE.

Things will look brighter in KDE4. I'll just have to wait.

Bruce Hill 05-05-2008 06:59 PM

Quote:

Originally Posted by gegechris99 (Post 3142473)
I googled a bit and it seems that to be able to have SCIM working for QT applications, we need a QT plugin. Other distributions (Ubuntu, Mandriva, Fedora) offer a "scim-qtimm" package to make SCIM work with QT applications.

Is such a package necessary for Slackware? I haven't found one for now.

I just want to clarify this for others who find and read this thread. It is not necessary
to have a QT plugin for SCIM to work with QT applications.

We put a lot of work into SCIM between Slackware-12.0 and 12.1.

Prior to Slackware-12.0, to use SCIM we had to rebuild many packages ... such as
fontconfig, freetype, libXft, and x11. Not to mention the fact that we also had to
build scim, scim-fcitx, scim-pinyin, and scim-tables to display and input Chinese.
We also had to use Microsoft fonts to have a decent Hanzi display. But ...

Along came Eric Hameleers (Alien Bob), who worked with us and started the SAS
Project ... Slackware Asian Support. My thanks to Eric for hours of tireless work
to get us to where we are today.

Just had to say this, and let those who search know that the problem in this thread
just might be Korean input only, for Chinese and Japanese input and display do not
require a plugin to work with QT apps.

gegechris99 05-06-2008 01:53 AM

OK and agreed with Bruce Hill, issue is only for Korean.

I modified the title in my first post to reflect that point but the thread title is not modified. I don't know how to do it.

Thank you anyway for the good work on SCIM.

Sun_Bin 07-21-2008 06:54 AM

Hi:
“for Chinese and Japanese input and display do not
require a plugin to work with QT apps.”

But I still cannot use scim in kword, but able to use in firefox or KWrite, which file should I configure?
Have search for long, no aswer. Wish help!!

gegechris99 07-21-2008 11:06 AM

Hello Sun_Bi,

To solve my issue with Korean input not working in QT applications, I installed SKIM (SCIM for KDE).

I've submitted a slackbuild at www.slackbuilds.org:

http://slackbuilds.org/repository/12.1/system/skim/

Hope it will work for you.

Sun_Bin 07-22-2008 07:11 AM

Thanks a lot,gegechris99, skim works well!!
By the way, my pinyin name is Sun_Bin

hoanglong1712 08-25-2009 12:54 AM

Dear everyone
I had a problem
I had solved that I can type non-US-english in firefox, open office
but I can not make the skim panel show another input style like chinese or japanese except english/keyboard while I use kword or kate

I had install
scim1.4.7
skim1.4.5
m17n-lib
m17n-db
scim-m17n-0.2.2scim-bridge-agent_0.4.16-2_i386
scim-bridge-client-gtk_0.4.16-2_i386
scim-bridge-client-qt4_0.4.16-2_i386
scim-bridge-client-qt_0.4.16-2_i386

and this this my .bashprofile content

export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE="scim-bridge"
export QT_IM_MODULE="scim"
/usr/lib/scim-1.0/scim-panel-gtk -d
/usr/bin/scim -f x11 -s socket -c socket -d
/usr/bin/scim -f socket -c simple -ns socket -d


did I do something wrong

gegechris99 08-25-2009 03:35 AM

Hello Hoanglong1712,

Which version of Slackware are you using?

Since Slackware 12.1, scim is included in slackware and the installation method is described in file CHANGES_AND_HINTS.TXT:

Quote:

Input methods for complex characters (CJK, which is shorthand for Chinese,
Japanese, Korean) and other non-latin character sets have been added. These
input methods use the SCIM (Smart Common Input Method) platform.
The environment variables for SCIM support are set in /etc/profile.d/scim.sh
The requirements for getting SCIM input methods to work in your X session
are as follows:
(1) Use a UTF-8 locale. Look in /etc/profile.d/lang.sh for setting your
language to (for instance) en_US.UTF-8. As a word of warning: maybe you
should leave root with a non-UTF-8 locale because you don't want root's
commands to be misinterpreted. You can add the following line to your
~/.profile file to enable UTF-8 just for yourself:
export LANG=en_US.UTF-8
(2) Make the scim profile scripts executable. These will setup your
environment correctly for the use of scim with X applications. Run:
chmod +x /etc/profile.d/scim.*
(3) Start the scim daemon as soon as your X session starts. The scim daemon
must be active before any of your X applications. In KDE, you can add a
shell script to the ~/.kde/Autostart folder that runs the command
"scim -d". In XFCE you can add "scim -d" to the Autostarted Applications.
If you boot your computer in runlevel 4 (the graphical XDM/KDM login)
you can simply add the line "scim -d" to your ~/.xprofile file.
This gives you a Desktop Environment independent way of starting scim.
When scim is running, you will see a small keyboard icon in your system tray.
Right-click it to enter SCIM Setup. In 'Global Setup' select your keyboard
layout, and you are ready to start entering just about any language
characters you wish! Press the magical key combo <Control><Space>
in order to activate or deactivate SCIM input. The SCIM taskbar in the
desktop's corner allows you to select a language. As you type, SCIM will show
an overview of applicable character glyphs (if you are inputting complex
characters like Japanese).
However in Slackware 12.1, I had to install skim to be able to enter Korean characters in QT-based applications (ex: Kword) although others reported that scim worked fine without skim. You can install skim using this SlackBuild(i.e. a shell script to create the package. See instructions on the site)

In Slackware 12.2, scim works natively with QT-based applications (as far as Korean input is concerned). So no need for Skim.

Bruce Hill 08-25-2009 08:34 AM

Hello hoanglong1712,

I use SCIM that comes with Slackware.

I am using Slackware64 -current.

I do not use Kword or Kate, but I try to help you.

I open Kword and press 'ctrl+space' and input Hanzi. It works, no problem.

I open kate and press 'ctrll+space' and input Hanzi. It works, no problem.

I have QQ beta for Linux. Before I start QQ from a terminal, I must enter
"export LANG=zh_CN.UTF-8" for SCIM to work with QQ.

hoanglong1712 08-25-2009 11:52 PM

Dear everyone
I am a vietnamase
I am using slackware 12
I still wait for Slackware 13, because, you known , upgrading os version is really a pain in ass, I am sorry because I do not known another phrase,

if I use firefox or whatever gnome-based application like pidgin or openoffice, the panel has all language
but when I use koffice or kde-app, it only show me keyboard and english/european
I had tried to download scim from slackware.it but the server do not let me download

what should I do?


All times are GMT -5. The time now is 12:22 AM.