emacs-bidi
[Top][All Lists]
Advanced

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

Re: [emacs-bidi] Setting text direction for each line


From: Ali Shirvani
Subject: Re: [emacs-bidi] Setting text direction for each line
Date: Wed, 31 Jul 2019 19:07:10 +0430

Hi Eli,

Thanks for your comment, I used this method but it works only if there exist one empty line between paragraphs. I need to set direction for consecutive lines such as follow:

This is a LTR line
این متن راست به چپ است.

Regards,
Ali

On Wed, Jul 31, 2019 at 6:43 PM Eli Zaretskii <address@hidden> wrote:
> From: Ali Shirvani <address@hidden>
> Date: Wed, 31 Jul 2019 15:46:03 +0430
>
> I read the "Bidirectional Editing" section from Emacs manual. I found that Emacs set direction for each
> paragraph. I want to set direction for each line of text instead of paragraph, I tried different values for
> paragraph-start-re and bidi-paragraph-separate-re variables, but with no success.
>
> Would you please guide me how to set these variable to treat each line of text as a new paragraph and apply
> current direction for it?

If you have Emacs 26 or later, you should be able to get what you want
by setting both bidi-paragraph-start-re and bidi-paragraph-separate-re
to "^".

reply via email to

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