emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org mode and right-to-left paragraphs
@ 2013-06-09  6:40 Manuel GJT
  2013-06-27 15:11 ` Bastien
  0 siblings, 1 reply; 3+ messages in thread
From: Manuel GJT @ 2013-06-09  6:40 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1050 bytes --]

Hello everyone,

I want to work in an org buffer with both left-to-right and right-to-left
text (arabic). Although the character directionality and composition works
fine, when writing paragraphs with visual-line-mode on the lines get
inverted, i.e., the line

ZYX CBA

appears as

ZYX
CBA

instead of

CBA
ZYX

The section "22.20 Bidirectional Editing" of the Emacs manual suggests
forcing the directionality of the paragraph with RIGHT-TO-LEFT MARK, but
this does not seem to work: even with such a character beginning the line,
(current-bidi-paragraph-direction) returns "left-to-right".

The RTL MARK seems to work just fine in tables.

When written in a clean text-mode buffer the same text appears with proper
directionality. However switching from org-mode to text-mode does not
correct directionality in said paragraphs. The issue persists even when
visiting the file with emacs -Q.

org-version 8.0.3, same issue with v. 7.9.4

Any fixes or workarounds? Your help is much appreciated, most of my brain
is linked to org-mode.

-- 
Manuel GJT

[-- Attachment #2: Type: text/html, Size: 1394 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Org mode and right-to-left paragraphs
  2013-06-09  6:40 Org mode and right-to-left paragraphs Manuel GJT
@ 2013-06-27 15:11 ` Bastien
       [not found]   ` <CAMF-RWbyaA6HT4oO67c3ncrU49eLX1VWzqvpFzOMYo9uzJS-Jw@mail.gmail.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Bastien @ 2013-06-27 15:11 UTC (permalink / raw)
  To: Manuel GJT; +Cc: emacs-orgmode

Hi Manuel,

Manuel GJT <valhifi@gmail.com> writes:

> org-version 8.0.3, same issue with v. 7.9.4
>
> Any fixes or workarounds? Your help is much appreciated, most of my
> brain is linked to org-mode.

I'm afraid there is no real fix:

  (setq bidi-paragraph-direction 'left-to-right)

is in the very definition of Org-mode.  But experience
shows that I'm often too pessimistic on this list :)

-- 
 Bastien

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Org mode and right-to-left paragraphs
       [not found]   ` <CAMF-RWbyaA6HT4oO67c3ncrU49eLX1VWzqvpFzOMYo9uzJS-Jw@mail.gmail.com>
@ 2013-06-30  3:39     ` Manuel GJT
  0 siblings, 0 replies; 3+ messages in thread
From: Manuel GJT @ 2013-06-30  3:39 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 368 bytes --]

Hi Bastien,

Thank you for answering. Dov helped me figure out the issue that you point
out. The workaround was simple.

There is something very appealing (sexy?) about exporting documents with
multilingual texts and literate programming code blocks. That keeps me on
the optimistic side.

Regards,

Manuel GJT
On Jun 27, 2013 10:11 AM, "Bastien" <bzg@gnu.org> wrote:

[-- Attachment #2: Type: text/html, Size: 506 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-06-30  3:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-09  6:40 Org mode and right-to-left paragraphs Manuel GJT
2013-06-27 15:11 ` Bastien
     [not found]   ` <CAMF-RWbyaA6HT4oO67c3ncrU49eLX1VWzqvpFzOMYo9uzJS-Jw@mail.gmail.com>
2013-06-30  3:39     ` Manuel GJT

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.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).