unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Angelo Graziosi <angelo.graziosi@alice.it>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: bidi, auto-composition-mode
Date: Wed, 21 Apr 2010 10:05:30 +0200	[thread overview]
Message-ID: <4BCEB1CA.8070901@alice.it> (raw)
In-Reply-To: <83ljch4i41.fsf@gnu.org>

Il 21/04/2010 5.09, Eli Zaretskii ha scritto:
>> Date: Wed, 21 Apr 2010 01:00:38 +0200
>> From: Angelo Graziosi<angelo.graziosi@alice.it>
>> CC: Eli Zaretskii<eliz@gnu.org>
>>
>> Eduard Wiebe wrote:
>>> I'm playing with the new bidi-feature, thanks Eli, and receive a
>>> strange result.
>> [...]
>>> the display order
>>> indeed reversed but some characters are duplicated (s. attachment).
>>
>> The same happens on Cygwin (GTK build of the trunk).
>>
>> Trying to write "This is a test", it writes, initially, two T instead of
>> one, so the result is
>>
>> This is a testT
>>                ^^^
>
> ??? The OP used Hebrew letters and auto-composed characters, but you
> used only ASCII, so this is a different problem.  Please tell me what
> did you type to get this displayed flushed to the right and T doubled.

OK. In my $HOME/.emacs.d/init.el file I have added this:

;; Use C-x 8 RET RIGHT-TO-LEFT MARK to write from right to left
(setq-default bidi-display-reordering t)

Then, in Emacs, I do this

C-x C-f foo.txt
C-x 8 RET RIGHT-TO-LEFT MARK

Then I start to type "This is a test" (all starts to the right, 
obviously). When I type the firt 'T', really in Emacs, I see two 'T',

TT

Then, I type 'h',

ThT

and so on

ThiT
ThisT
This iT
This isT
...
This is a testT

with the cursor always to the left of the most left 'T' (that near the 
'h', i.e. 'Th'). If now I do

M-x auto-composition-mode

the result is:

This is a test

without the most right 'T'!

I obtain the *same* results both on Cygwin and on GNU/Linux kubuntu 9.10 
(GTK builds rev. >= 99951).

Ciao,
Angelo.




  reply	other threads:[~2010-04-21  8:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-20 23:00 bidi, auto-composition-mode Angelo Graziosi
2010-04-21  3:09 ` Eli Zaretskii
2010-04-21  8:05   ` Angelo Graziosi [this message]
2010-04-21 16:12     ` Eli Zaretskii
2010-04-25 16:13       ` bidi, auto-composition-mode [core dump] Angelo Graziosi
2010-04-25 16:22         ` Eli Zaretskii
2010-04-25 17:14           ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2010-04-20 20:46 bidi, auto-composition-mode Eduard Wiebe
2010-04-21  3:15 ` Eli Zaretskii
2010-04-23 18:37 ` Eli Zaretskii
2010-04-26 14:36   ` Eduard Wiebe

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=4BCEB1CA.8070901@alice.it \
    --to=angelo.graziosi@alice.it \
    --cc=eliz@gnu.org \
    --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 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).