bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#22786: 25.1.50; eww arabic rendering


From: Eli Zaretskii
Subject: bug#22786: 25.1.50; eww arabic rendering
Date: Thu, 25 Feb 2016 17:55:16 +0200

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Thu, 25 Feb 2016 16:05:16 +1030
> Cc: 22786@debbugs.gnu.org
> 
> eww defaults `bidi-paragraph-direction' to `left-to-right', and depends
> on web pages including the "dir" attribute to <HTML> to change that.
> The Al Jazeera web site doesn't do that, so things look wrong.

(This, of course, is unrelated to the original problem.)

> Is there a simple heuristic we could use to determine that we're on a
> page where we should flip the paragraph direction?

The heuristic that we have happens automagically if
bidi-paragraph-direction is nil.  (It's not a heuristic, it's what the
Unicode Bidirectional Algorithm prescribes to do.)  Then each
paragraph gets its own direction computed on the fly.

> Some pages may have a bit of RTL text without wanting to change the
> paragraph direction (like most Wikipedia pages)...

Exactly.  Which is why we changed eww to its current default.

I think at this stage we should add to the eww menu an item that
allows to change the page direction, and let users override the
default if needed.  This should solve most, if not all, of the cases
where the default doesn't DTRT.





reply via email to

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