[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kmail-devel
Subject:    Bug#38112: Japanese input with kinput2 does not display
From:       Mike Fabian <mfabian () suse ! de>
Date:       2002-02-20 23:31:36
[Download RAW message or body]

Waldo Bastian <bastian@kde.org> writes:

> On Tuesday 19 February 2002 11:26 pm, Michael Häckel wrote:
>> On Thursday 14 February 2002 20:22:20, meinke@pa.msu.edu wrote:
>> > I use kinput2 to enter Japanese. As I type the characters should appear.
>> > I don't get any feedback, however, until I hit enter or the space bar
>> > twice. The latter brings up the character chooser as it should.  The
>> > input works fine with a small qt application compiled against the same
>> > library.
>>
>> Does it also work in the "widgets" example from Qt in the edit fields on
>> the tabs "First" and "Second"?
>>
>> Did this work better with earlier versions of KMail? Actually Japanese
>> should work well since KDE 2.1.1 and I think quite some people are using
>> it.
>>
>> I just tried to get kinput2 running, but somehow it doesn't work.
>
> I think this is a general problem of Qt3.
>
> To quote Mike Fabian, one of my collegues:
> --- Start Quote ---
> To input Japanese you need:
>
>     ~$ rpm -i canna.rpm cannadic.rpm
>     ~$ rccanna start
>     ~$ rpm -i kinput2.rpm
>     ~$ LANG=ja_JP LC_ALL=ja_JP kinput2 -xim -kinput -canna &
>     ~$ export XMODIFIERS="@im=kinput2"
>     ~$ LANG=ja_JP konsole &
>
> (or '~$ LANG=ja_JP.UTF-8 konsole &')
>
> Then follow the instructions on
>
>     http://www.suse.de/~mfabian/suse-cjk/kinput2-canna-simple-exampl.html
>
> I'll test whether this works now. Japanese input generally works in
> KDE3, but it is quite inconvenient compared to KDE2 because of the
> OnTheSpot input which is not implemented perfectly. In principle,
> OnTheSpot input is best (also for Japanese) but the current
> implementation in Qt3 is deficient. Compared to the current OnTheSpot
> implementation in Qt3, the OverTheSpot implementation in Qt2 was
> more convenient for Japanese.
>
> The best solution would be to fix the problems with the current
> OnTheSpot implementation, but that might be difficult. Second best
> would be a possibility to use OverTheSpot as a fallback like it is
> possible with Vim.
> --- End of Quote ---

I tried konsole again today

    mfabian@gregory:~$ konsole --version
    Qt: 3.0.2-snapshot-20020126
    KDE: 2.93 (CVS >= 20020213)
    Konsole: 1.1 Beta2
    mfabian@gregory:~$ 

Does this already contain your fixes Waldo? 

It appears to contain some fixes as it has improved, but there are
still problems.

Screenshot:

    http://www.suse.de/~mfabian/screenshots/konsole-2002-02-21.png

    + cursor is at the correct position now behind the prompt and
      not in the middle of the line as before
    - after many Japanese characters, a box is shown
    - halfwidth kana are used
    - the current Japanese input at the cursor position is invisible,
      but after pressing space twice the 'Candidate Selection'
      window appears (as reported by meinke@pa.msu.edu above)
    - after selecting a candidate and confirming with 'Return',
      nothing is inserted into konsole.
    - the status window, indicating that Japanese input is active
      and displaying the current mode of the input is invisible
    - cutting and pasting Japanese doesn't work

Screenshot of 'mlterm' for comparison:

    http://www.suse.de/~mfabian/screenshots/mlterm.png

    + Japanese input at cursor position visible, conversion
      region visibly marked in reverse.
    + Status window visible (below the cursor position)
    + Japanese test file and output of 'date' displayed correctly,
      no boxes, no halfwidth kana. 

> Maybe Lars can comment on this from a Qt point of view. KDE doesn't do 
> anything in this area that I'm aware of but it could of course be that we do 
> something that interacts poorly with kinput2 in which case we should fix 
> that.

'konsole' is still worse than other KDE3 applications like 'kedit' for
example. In 'kedit' the display and input of Japanese works correctly,
although the status window and the current conversion region are is
invisible as well.

-- 
Mike Fabian   <mfabian@suse.de>   http://www.suse.de/~mfabian
睡 不足はいい仕事の敵 。
_______________________________________________
kmail Developers mailing list
kmail@mail.kde.org
http://mail.kde.org/mailman/listinfo/kmail
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic