* BIDI LaTeX, displayed equation, paragraphs, kile
@ 2016-05-28 8:34 Uwe Brauer
2016-05-28 9:31 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: Uwe Brauer @ 2016-05-28 8:34 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 552 bytes --]
Hello
It seems that kile (a latex editor, which supports BIDI) is in one
aspect superior/(or more natural) to the BIDI implementation of GNU
emacs. Kile shows display equations (equations which are not inline)
left-to-right, even if the are *not* separated by a newline from a
paragraph which contains Hebrew text.
I tried to play around with `paragraph-separate' but failed to
obtain a similar behavior.
Anybody has an idea how to configure paragraph-separate (or
paragraph-start) to get that behavior?
I attach both screenshots.
Uwe Brauer
[-- Attachment #2: heb-eq-emacs.png --]
[-- Type: image/png, Size: 88518 bytes --]
[-- Attachment #3: heb-eq-kile.png --]
[-- Type: image/png, Size: 86447 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: BIDI LaTeX, displayed equation, paragraphs, kile
2016-05-28 8:34 BIDI LaTeX, displayed equation, paragraphs, kile Uwe Brauer
@ 2016-05-28 9:31 ` Eli Zaretskii
0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2016-05-28 9:31 UTC (permalink / raw)
To: Uwe Brauer; +Cc: emacs-devel
> From: Uwe Brauer <oub@mat.ucm.es>
> Date: Sat, 28 May 2016 08:34:04 +0000
>
> It seems that kile (a latex editor, which supports BIDI) is in one
> aspect superior/(or more natural) to the BIDI implementation of GNU
> emacs. Kile shows display equations (equations which are not inline)
> left-to-right, even if the are *not* separated by a newline from a
> paragraph which contains Hebrew text.
>
> I tried to play around with `paragraph-separate' but failed to
> obtain a similar behavior.
>
> Anybody has an idea how to configure paragraph-separate (or
> paragraph-start) to get that behavior?
You can't: the value of paragraph-separate that Emacs uses for bidi
reordering is hard-coded, and cannot be changed. (I tried to use the
buffer local value once, but gave up once I saw the values set by the
likes of texinfo.el -- they caused crashes.)
IMO, the right way of overriding the built-in paragraph direction is
by introducing special text properties, which major modes can set
according to their needs, not unlike font-lock. Patches to that
effect are welcome.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-05-28 9:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-28 8:34 BIDI LaTeX, displayed equation, paragraphs, kile Uwe Brauer
2016-05-28 9:31 ` Eli Zaretskii
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.