all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Stephen J. Turnbull" <stephen@xemacs.org>
Cc: Eli Zaretskii <eliz@is.elta.co.il>,  emacs-devel@gnu.org
Subject: Re: Insert Euro symbol
Date: 04 May 2002 15:06:58 +0900	[thread overview]
Message-ID: <87helojvjx.fsf@tleepslib.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <87g019a4mz.fsf@tc-1-100.kawasaki.gol.ne.jp>

>>>>> "Miles" == Miles Bader <miles@gnu.org> writes:

    Miles> "Eli Zaretskii" <eliz@is.elta.co.il> writes:
    >> > It's very convenient for people who don't use a latin-x input
    >> > method normally but want to only insert a character or two.
    >> 
    >> Is that because you have some other input method active?

    Miles> Yes.  I normally use the japanese language environment,

etc.

FWIW I agree with Miles 100%.  LEIM is broken by design in the same
way that XIM is broken, that is, it assumes that input methods are
modal.

IMO, input methods should not be modal, they should be context-
sensitive.[1]  Ie, if your LANG=ja_JP.eucJP and you visit a file which
is known to be in Polish (Latin-2), you should be able to start typing
and get a Latin-2 input method.  More, if you're a Buddhist scholar
with a trilingual (Sanskrit, Chinese, Japanese) document and you
overstrike a Japanese character, you should be in a Japanese input
method no matter what your most recent previous insertion used.  If
for some reason you really want to overstrike with Sanskrit, then you
explicitly invoke an input method, through a mechanism like C-x 8.

This would be really hard to implement, of course (without
telepathy.el which I hear is still totally non-functional :-).  Since
most people and most documents are monolingual, a modal input
framework is a close approximation to the context-sensitive framework
(in number-of-keystroke terms, not in annoyance terms, YMMV).  But
C-x 8 is a really important facility for making this bearable to
multilingual users.

Note that most fullfledged Japanese input methods provide both modal
aspects (is the basic input romanized phonetics or Japanese
phonetics?) but also C-x 8-like "single shifts" to menus of symbols,
radical/stroke count input, direct input of JIS codes, and even more
exotic methods.  These are only used for "rare" characters that may
not be in the IM's dictionary or that the user can't pronounce.

By analogy, I would suggest that C-x 8 could be considered a
single-shift to a designated secondary input method.  The default
should be "traditional C-x 8", but it should be reconfigurable to a
"single shift" to any LEIM IM.  (This probably requires extensions to
LEIM.)  C-x 9 could give a menu of available input methods (ordered by
user preference), then you enter one char using that IM.  C-u versions
of C-x 8 and C-x 9 could allow changing the defaults (C-u C-x 9
therefore probably should invoke a Customize method).

This is quite complex, but the typical monolingual "The sysadmin set
LANG in /etc/profile and I've never noticed" user still won't notice.
Nor will Latin-2 users who need to enter the Euro sign (once U+20AC
gets added to C-x 8 :-).  Buddhist scholars and other polyglots will
get a lot of benefit from it, I think, although they really want a
'input-method text property.


Footnotes: 
[1]  I don't know of any context-sensitive implementations, except in
edict.el, and that's broken at the moment.  AFAIK Emacs is the only
app with any hope of getting it right, anyway.

-- 
Institute of Policy and Planning Sciences     http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba                    Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
 My nostalgia for Icon makes me forget about any of the bad things.  I don't
have much nostalgia for Perl, so its faults I remember.  Scott Gilbert c.l.py

  reply	other threads:[~2002-05-04  6:06 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-02 13:19 Insert Euro symbol Kai Großjohann
2002-05-02 13:30 ` Alan Shutko
2002-05-02 13:43   ` Kai Großjohann
2002-05-02 15:12     ` Karl Eichwalder
2002-05-02 15:33       ` Kai Großjohann
2002-05-03 18:25   ` Richard Stallman
2002-05-03 19:59     ` Kai Großjohann
2002-05-04 15:02       ` Richard Stallman
2002-05-05  6:39         ` Werner LEMBERG
2002-05-06  6:24           ` Richard Stallman
2002-05-06 12:16             ` Werner LEMBERG
2002-05-07  4:58               ` Richard Stallman
2002-05-07  7:06                 ` Werner LEMBERG
2002-05-08 13:58                   ` Richard Stallman
2002-05-06  9:54           ` Kai Großjohann
2002-05-06 12:09             ` Werner LEMBERG
2002-05-05 23:18         ` Stefan Monnier
2002-05-02 13:44 ` Stefan Monnier
2002-05-02 16:06 ` Eli Zaretskii
2002-05-02 20:17   ` Miles Bader
2002-05-03  6:25     ` Eli Zaretskii
2002-05-03 10:48       ` Miles Bader
2002-05-04  6:06         ` Stephen J. Turnbull [this message]
2002-05-04 11:52           ` Miles Bader
2002-05-05  5:34           ` Richard Stallman
2002-05-05 11:52             ` Kai Großjohann
2002-05-06  6:24               ` Richard Stallman
2002-05-06  9:50                 ` Kai Großjohann
2002-05-06 19:32                   ` Richard Stallman
2002-05-07  8:25                     ` Kai Großjohann
2002-05-08 13:58                       ` Richard Stallman
2002-05-08 15:02                         ` Kai Großjohann
2002-05-09 14:59                           ` Richard Stallman
2002-05-12 12:21                             ` Florian Weimer
2002-05-13 14:18                               ` Richard Stallman
2002-05-13 14:28                                 ` Florian Weimer
2002-05-14 19:41                                   ` Richard Stallman
2002-05-08 13:58                       ` Richard Stallman
2002-05-07  9:12                     ` Miles Bader
2002-05-03  9:52   ` Kai Großjohann
2002-05-03 10:41     ` Eli Zaretskii
2002-05-03 11:24       ` Kai Großjohann

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=87helojvjx.fsf@tleepslib.sk.tsukuba.ac.jp \
    --to=stephen@xemacs.org \
    --cc=eliz@is.elta.co.il \
    --cc=emacs-devel@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.