From: "ISHIKAWA,chiaki" <ishikawa@yk.rim.or.jp>
To: help-gnu-emacs@gnu.org
Subject: Re: Japanese input in Linux environment (fcitx-mozc)
Date: Sat, 10 Jun 2017 04:49:22 +0900 [thread overview]
Message-ID: <37a042e3-a213-c783-7ff8-213326dfa7c8@yk.rim.or.jp> (raw)
In-Reply-To: <83o9tz95pa.fsf@gnu.org>
On 2017/06/08 0:29, Eli Zaretskii wrote:
>> Date: Wed, 7 Jun 2017 10:02:06 +0200
>> From: Héctor Lahoz <hectorlahoz@gmail.com>
>>
>> So I think the right direction is to look at the X input method
>> architecture. It seems there are some newer solutions like IBus or
>> SCIM. I can't tell how or up to what extent Emacs uses any of these.
>>
>> https://en.wikipedia.org/wiki/X_Input_Method
>
> Emacs uses XIM, has been doing that for a long time.
>
>
Surprise. I am a Japanese user of Emacs located in Japan.
I create my emacs binary with "--without-xim" all the time.
I use an emacs library that mimicks what XIM library would in terms of
talking to the conversion server,
and offers its own frontend inside Emacs buffer for phonetical input ->
Japanese Kanji Kana combination characters.
In my case I use English keyboard, a version of Happy Hacking Keyboard
and I use romanized Japanese input and conversion to Kana Kanaji string
from thereof..
This emacs libary for mimicking XIM and user interface for inputting
Japanese characters is called TAMAGO (tamago is "egg" in Japanese).
This should not be confused with another library for "git" support.
This input method *IS* antiquated, but like the original poster stated,
I got the habit of using this combination close to 30 years now and
can't switch easily.
Me --- English Keyboard
--- Emacs (this input method TAMAGO/egg .el library)
<---> phonetical string to
Kanji Kana string conversion server
(FreeWnn jserver with locally enhanced dictionary)
But how about entering Japanese for OTHER X-based applications such as
Mozilla firefox, and thunderbird under linux?
I use an XIM based input front end called kinput2-wnn-v3.1, which is
again very antiquated, but it DOES use XIM library of X11 distribution.
Me --- English Keyboard
|
kinput2-wnn -v3 front end <---> FreeWnn jserver
|
+-- application such as firefox/thunderbird
The use of TAMAGO .el library and kinput2-wnn makes the keyboard
combination to enter Japanese input more or less similar across Emacs
and other applications.
With TAMAGO we can define how romanized character input is done using
table-driven conversion, and it is the same with kinput2-wnn.
The operations of two input methods are close enough that, when the
operation differs from time to time, I got irritated. But usually such
difference is very small.
One difference is that the Japanese input using TAMAGO in Emacs happens
on the spot. I can choose on-the-spot or off-the-spot input using
kinput2-wnn. There used to be a few bugs related to on-the-spot input,
but I *think* they are gone, or I no longer care :-)
So I use on-the-spot input all the time. This makes Japanese input
uniform across Emacs+Tamago and other applications under X11.
The only hitch is that the mode indicator that shows which mode I am
using (Japanese and/or original ASCII input) is broken for
kinput2-wnn-v3.1 in the latest gtk library. It is shown as black rectangle.
http://myh.no-ip.org/~m-ito/diary/?date=201307
The above page refers to the library version .24, but the later library
also suffers from the same issue. I posted a patch but can't recall
where the patch is located in freedesktop bugzilla site.
Well, the Japanese input under Debian Linux using the
distribution-based input method works rather well.
But due to the old habit, I am using the above method by disabling
Debian's setup.
*HOWEVER*, obviously the input under OTHER OS, I mean, Window is very
different, and I am pretty disgusted at Entering many Japanese
characters under Windows. There does not seem to be an equivalent of
kinput2-wnn under Windows.
Often times, I create rough Japanese draft using Emacs under linux by
means of the above Japanese input method, and then only tidies up /
format the draft in MS Word under Windows if I am forced to work with MS
Word and other proprietary format.
So basically, I run linux inside Oracle VirtualBox under host Windows
for the last several years now for enjyoing the best of the both worlds.
There is one Emacs-lisp problem with TAMAGO input library.
It uses transparent / invisible property of characters (or region of
characters) when it handles user key input during conversion, and I
found it collide with the
use of such attribute in emacs's org-mode. Very unlucky thing.
With XIM, a bug was found about 4 years ago, which had been dormant for
15 years or so since XIM was proposed and implemented, and the bug made
it very difficult to use Japanese/Chinese/Korean input to
firefox/thunderbird, etc.when the bug surfaced when GTK library changed
its handling of event timestamp internally.
XIM library returned bogus timestamp which had been ignored until then.
But suddenly the bogus timestamp caused revised GTK library to misbehave.
We could not pull down menus any more, for example.
I am afraid when that happened, many users simply abandoned the XIM
frontend. The bug was fixed after a six months or so thanks to the help
of mozilla contiributor.
But I am afraid that the damage had been done.
I have no idea how many diehard TAMAGO + Emacs, and kinput2-wnn users
are there under linux who need to use FreeWNN jserver or commercial
Omron WNN Jserver with rich Iwanami dictionary for conversion. (I bought
one for circa 2000 linux. Unfortunately, I think the binary in a.out
format no longer runs due to some kernel change. Er, I should say that
the license server no longer runs. Oh, I forgot to mention. Sun, er,
Oracle Solaris still has Omron WNN Jserver with its rich dictionary and
so I can use Emacs with TAMAGO .el libary and/or kinput2-wnn-v3.1
frontend there very comfortably. I have an image of old Solaris 10 still
intact and it runs fine with Emacs + TAMAGO although I don't use it
often any more. Maybe testing program portability from time to time.)
I wish I could say "Hope this helps", but I am afraid that the above is
a working method that may not have much future (like 10-15 years only at
the maximum, or much shorter.)?
It would be interesting to learn where the OP settles for Japanese input
under linux when he/she is not bound by an antiquated input method and
can start afresh more or less.
TIA
next prev parent reply other threads:[~2017-06-09 19:49 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-06 3:24 Japanese input in Linux environment (fcitx-mozc) Maria Shinoto
2017-06-06 5:37 ` Emanuel Berg
2017-06-06 7:40 ` Lee B
2017-06-06 17:40 ` source liu
2017-06-06 15:04 ` Eli Zaretskii
2017-06-06 23:44 ` Jean-Christophe Helary
2017-06-06 23:54 ` Maria Shinoto
2017-06-07 0:08 ` Jean-Christophe Helary
2017-06-07 0:43 ` Emanuel Berg
2017-06-07 1:35 ` Maria Shinoto
2017-06-07 8:02 ` Héctor Lahoz
2017-06-07 8:13 ` Emanuel Berg
2017-06-07 8:26 ` tomas
2017-06-07 9:24 ` Emanuel Berg
2017-06-07 11:06 ` Input methods (Emacs and others), plain X [was: Japanese input in Linux environment] tomas
2017-06-07 14:51 ` Emanuel Berg
2017-06-07 20:18 ` tomas
2017-06-07 20:40 ` Emanuel Berg
2017-06-08 9:12 ` tomas
2017-06-08 18:37 ` Emanuel Berg
2017-06-07 15:29 ` Japanese input in Linux environment (fcitx-mozc) Eli Zaretskii
2017-06-09 5:59 ` Maria Shinoto
2017-06-09 7:53 ` Emanuel Berg
2017-06-09 10:58 ` Emanuel Berg
2017-06-09 13:27 ` Bruce V Chiarelli
2017-06-09 19:49 ` ISHIKAWA,chiaki [this message]
2017-06-09 19:58 ` ISHIKAWA,chiaki
2017-06-07 5:11 ` Jean-Christophe Helary
2017-06-07 6:26 ` Emanuel Berg
2017-06-07 7:02 ` tomas
2017-06-07 7:17 ` Emanuel Berg
-- strict thread matches above, loose matches on Subject: below --
2017-06-06 4:53 Priv.-Doz. Dr. M. Shinoto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=37a042e3-a213-c783-7ff8-213326dfa7c8@yk.rim.or.jp \
--to=ishikawa@yk.rim.or.jp \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.