unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Ali AlipourR <alipoor90@gmail.com>
To: 39763@debbugs.gnu.org
Subject: bug#39763: Incorrect behaviour of Farsi (farsi-isiri-9147) input method
Date: Mon, 24 Feb 2020 12:35:04 +0330	[thread overview]
Message-ID: <CABvhJLigsv3m2etwsNu1i_p7_uoz1XbNa4uL7tRoQqhwoDhE-Q@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 2163 bytes --]

Hi,

Farsi keyboard (isiri 9147) has a second "shift" level, which is usually
implemented to be accessible when holding Alt key.
for example when in farsi input method, pressing the "d" key should insert:
U+06CC = ی
but pressing "Shift + d" should insert:
U+064A = ي
and pressing "Alt + d" should insert:
U+0649 = ى
(trust me it's different from the first one! even though they look similar,
it makes a difference when searching for text etc since the unicode code
points are different (and they are also read differently ... one is
pronounced like i the other one like a, though this is not related to the
discussion))

The problem is, in Emacs, when you set the input method to
farsi-isiri-9147, when you press M-d, it deletes a word, which is expected,
but even when you press C-q M-d, instead of inserting U+0649 = ى, it
inserts Latin character U+00E4 = ä)

and I used the d key and letter U+0649 as an example here, there are more
keys and letters like this. in general, when in farsi-isiri-9147, when you
press C-q M-letter instead of inserting appropriate "second shift level"
Farsi letters according to isiri-9147 layout, Emacs inserts Latin
characters with diacritics according to English keyboard layout.

this was tested under GNOME Shell 3.34.3 (with gnome/X input method set to
EN; since setting it to Farsi, means gnome/X will send Farsi chars to Emacs
and thus no Emacs keybinding (e.g. C-f or C-n or C-d or C-x C-s or ...)
will work at all)
(other programs including gedit, firefox and bash in gnome-terminal, behave
correctly, when gnome input method is set to Farsi; even in Emacs Alt + d
works correctly and inserts U+0649 = ى, regardless of what input method is
selected in Emacs itself, if gnome input method is set to Farsi, but again,
as mentioned, this way no Emacs keybinding will work ... since this way,
gnome is directly sending farsi chars to Emacs)

I will attach isiri-9147 keyboard layout standard and some of its tables
(the column marked in red, are the unicode characters that should be
inserted, when pressing the letters on the rightmost column while holding
Alt key.

Thanks

[-- Attachment #1.2: Type: text/html, Size: 2576 bytes --]

[-- Attachment #2: 9147.pdf --]
[-- Type: application/pdf, Size: 950302 bytes --]

[-- Attachment #3: 1.png --]
[-- Type: image/png, Size: 108288 bytes --]

[-- Attachment #4: 2.png --]
[-- Type: image/png, Size: 132721 bytes --]

[-- Attachment #5: 3.png --]
[-- Type: image/png, Size: 81972 bytes --]

             reply	other threads:[~2020-02-24  9:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-24  9:05 Ali AlipourR [this message]
2020-02-24  9:56 ` bug#39763: Incorrect behaviour of Farsi (farsi-isiri-9147) input method Andreas Schwab
2020-02-24 13:04   ` Ali AlipourR
2020-02-24 13:27     ` Ali AlipourR
2020-02-24 13:27     ` Andreas Schwab
2020-02-24 13:35       ` Ali AlipourR

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABvhJLigsv3m2etwsNu1i_p7_uoz1XbNa4uL7tRoQqhwoDhE-Q@mail.gmail.com \
    --to=alipoor90@gmail.com \
    --cc=39763@debbugs.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).