reverse-im.el icon indicating copy to clipboard operation
reverse-im.el copied to clipboard

comma and dot are not translated in diktor layout

Open 7kilobytes opened this issue 10 months ago • 2 comments

Hello. I am using diktor layout with default colemak Image

so, from colemak the latters "b", "B", "p" and "P" are ".", "!", "," and "?" correspondingly. In my custom im file I have the following translations:

...
 ("p" ?,)
 ("b" ?.)
...

but this keys are not working as expected. For example, for C-є . it is translated as C-x .:

C-x . (translated from C-є .) runs the command set-fill-prefix (found in
global-map), which is an interactive native-comp-function in ‘fill.el’.

It is bound to C-x ..

(set-fill-prefix)

The same is for "p". C-, is translated as C-, but not as C-p

Here is the configuration which I use:

(use-package cyrillic-diktor-im
  :load-path "~/.config/emacs/packages/diktor-im"
  :ensure nil
  )

(use-package char-fold
  :custom
  (char-fold-symmetric t)
  (search-default-mode #'char-fold-to-regexp))

(use-package reverse-im
  :ensure t
  :after char-fold
  :custom
  (reverse-im-input-methods '("cyrillic-diktor"))
  :config
  (reverse-im-mode t))

7kilobytes avatar Mar 20 '25 12:03 7kilobytes

Sorry, but reverse-im doesn't translate chars that exist in the base layout to avoid ambiguity. Emacs doesn't know anything about physical key positions or the system layout, just the char being typed, so there's no way to tell if it was "." from colemak or from diktor.

a13 avatar Apr 18 '25 11:04 a13

Actually, it's the same problem as in #6 and #21

and it's mentioned in the README

a13 avatar Apr 18 '25 11:04 a13