m17n-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disabling Unicode input with C-U


From: Mike FABIAN
Subject: Re: Disabling Unicode input with C-U
Date: Wed, 08 Feb 2023 11:59:09 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Brad Neimann <brad.neimann@hotmail.com> さんはかきました:

>> You can disable that by creating a file ~/.m17n.d/config.mic in your
>> home directory (Create the "~/.m17n.d" directory if it doesn’t exist)
>> with the following contents:
>>
>>
>> $ cat .m17n.d/config.mic
>> ;; -*- mode:lisp; coding:utf-8 -*-
>> ((input-method t nil global)
>>   (variable
>>    (fallback-input-method nil
>>     "lsymbol")))
>>
>> which removes the "unicode" from the list of fallback input methods.
>>
>> (I left "lsymbol" there because that didn’t annoy you apparently, you
>> could remove that as well if you like (see /usr/share/m17n/lsymbol.mim
>> for what that does))
>
> Thanks Mike! This solves my problem. I knew from the beginning it came
> from unicode.mim; just couldn't figure out how to get rid of it.
>
> As for lsymbol, it hasn't annoyed me simply because I didn't notice it
> in the first case. In fact, it doesn't seem to work at all as a
> fallback... when I explicitly select 'lsymbol' in IBus it works fine,
> but in 'fallback-input-method' it does nothing. Odd, that.

I checked this and the reason for lsymbol appearing not to work as a
fallback is only that it uses "/" as a starter key. The documentation
for the fallback input method in /usr/share/m17n/global.mim says:

    (fallback-input-method
      (_"Fallback input methods.
    Value must be comma separated fallback input method names.
    When you type a key that is not handled by the currently activated intup 
method,
    fallback input methods (in the order specified in this variable) try
    to handle that key, and the first one that can handle the key is activated
    temporarily.
    For instance, as the default value of this variable is \"lsymbol, unicode\",
    when you type \"/...\" while you are activating an input method
    that doesn't handle that key sequence, \"lsymbol\" input method is activated
    and \"…\" (U+2026: HORIZONTAL ELLIPSIS) is inserted.")
      "lsymbol, unicode"))

So lsymbol can only work as a fallback in those input methods which do
*not* handle "/" already. And almost all input methods already do
something with "/", very few exceptions.

For example, in /usr/share/m17n/latn-pre.mim, "/" is used:


;; | dot above  |  . /   | .g -> ġ  /g -> ġ
;; | misc       |   /    | /a -> å  /e -> æ  /h -> ħ  /o -> ø  /oe -> œ
;; | misc       | " ~ /  | "s -> ß  ~d -> ð  ~t -> þ  /a -> å  /e -> æ  /o -> ø
..
;; | symbol     |   /    | /2 -> ½  /3 -> ¾  /4 -> ¼  /= -> ?¬
;; | symbol     |   /    | /# -> £  /$ -> ¤  /c -> ¢  /. -> ˙  // -> °  /\ -> ×


Therefore, lsymbol does not work as a fallback when latn-pre.mim is
used.

But, /usr/share/m17n/latn1-pre.mim does not use "/" at all. Therefore,
lsymbol works as a fallback when latn1-pre.mim is used.

-- 
Mike FABIAN <mfabian@redhat.com>
睡眠不足はいい仕事の敵だ。




reply via email to

[Prev in Thread] Current Thread [Next in Thread]