GNU bug report logs - #6998
24.0.50; bidi: lines starting with neutral types have the wrong base direction?

Previous Next

Package: emacs;

Reported by: Thamer Mahmoud <thamer.mahmoud <at> gmail.com>

Date: Wed, 8 Sep 2010 11:20:02 UTC

Severity: normal

Found in version 24.0.50

Done: Thamer Mahmoud <thamer.mahmoud <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Thamer Mahmoud <thamer.mahmoud <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#6998: closed (24.0.50; bidi: lines starting with neutral
 types have the wrong base direction?)
Date: Fri, 10 Sep 2010 22:34:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 11 Sep 2010 01:29:44 +0300
with message-id <19594.45400.927788.599350 <at> zemblan.newkuwait.org>
and subject line Re: 24.0.50; bidi: lines starting with neutral types have the wrong base direction?
has caused the GNU bug report #6998,
regarding 24.0.50; bidi: lines starting with neutral types have the wrong base direction?
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
6998: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6998
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Thamer Mahmoud <thamer.mahmoud <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.50; bidi: lines starting with neutral types have the wrong base
	direction?
Date: Wed, 8 Sep 2010 11:39:06 +0300
While investigating a crash I came across this problem.

By default in Emacs, lines starting with Other Neutral types (in this
case `*') seem to be following the direction of the line before them,
and perhaps not being considered as separate paragraphs. This makes
Emacs display files differently than the output of fribidi (gedit,
etc).

For example, I have a file with the following content:

* ARABIC
* abcdef

I'd expect to see:

                             CIBARA *
* abcdef                             

But in Emacs it's shown as:

                             CIBARA *
                             abcdef *

Another example is:

* First
[BLANK_LINE]
ARABIC
* Second

What I expect:

* First
[BLANK_LINE]
                               CIBARA
* Second

What is shown in Emacs:

* First
[BLANK_LINE]
                               CIBARA
                             Second *

This seems like a bug to me.

Tests were done using -Q --eval "(setq-default bidi-display-reordering t)".
In GNU Emacs 24.0.50.6 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2010-09-07

Thanks.

--
Thamer


[Message part 3 (message/rfc822, inline)]
From: Thamer Mahmoud <thamer.mahmoud <at> gmail.com>
To: 6998-done <at> debbugs.gnu.org
Subject: Re: 24.0.50;
	bidi: lines starting with neutral types have the wrong base direction?
Date: Sat, 11 Sep 2010 01:29:44 +0300
I did some testing, and I found out that the differences between Emacs
and other apps (fribidi, gedit, kwrite, etc) are explained by the other
apps' use of "line-based reordering", while Emacs uses
"paragraph-based reordering" (perhaps to avoid filled paragraphs
having more than one direction). So I guess this is not a bug per se.

However, I still see inconsistent rendering of the second example
given above. But I'll file a more specific bug for that.

Closing.

-- 
Thamer




This bug report was last modified 14 years and 250 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.