Re: Org default is Left-to-right

2022-06-14 Thread Daniel Fleischer
Ihor Radchenko [2022-06-14 Tue 13:17] wrote:

> The Emacs devs reply was that 'right-to-left global setting is preferred
> for such users while nil being preferred setting for other users and it
> should not be something Org decides.
>
> Hence, I just applied a patch removing Org setting
> bidi-paragraph-direction to main (0cdbc63a0).

The right-to-left setting makes everything RTL, and more often than not
I have mixed-languages documents which looks better with nil direction
value.

Anyways, good judgment; it is up to a user who uses different languages
to decide how Emacs should align the text and it should carry naturally
into Org.

-- 

Daniel Fleischer



Re: Org default is Left-to-right

2022-06-13 Thread Ihor Radchenko
Ihor Radchenko  writes:

> I tried to create a large file in Persian, but I cannot see any
> difference in performance when bidi-paragraph-direction is nil or
> 'left-to-right. However, I was able to see a difference using the
> attached file when moving through an artificially created very long line
> in the second heading. In my testing, setting bidi-paragraph-direction
> to nil *improves* the performance.

I tried to get additional feedback from other right-to-left language
users, but no luck
(https://old.reddit.com/r/orgmode/comments/v9nouy/help_org_with_righttoleft_language_defaults/)

The Emacs devs reply was that 'right-to-left global setting is preferred
for such users while nil being preferred setting for other users and it
should not be something Org decides.

Hence, I just applied a patch removing Org setting
bidi-paragraph-direction to main (0cdbc63a0).

Best,
Ihor



Re: Org default is Left-to-right

2021-10-30 Thread Ihor Radchenko
Daniel Fleischer  writes:

> Ihor Radchenko  writes:
>> See https://lists.gnu.org/archive/html/emacs-devel/2011-09/msg00285.html
>
> OK, so 10 years ago on Emacs 24 it might have caused some slowdown on
> large Org files. It wasn't clear if these people needed RTL or not,
> because I set it to nil as soon as I open my Org files. I guess I'll
> use a hook in my config.

You asked why Org does not use default. That was the reason.

Unfortunately, the original test file is not available anymore, so we
cannot easily test if the slowdown is still there.

I tried to create a large file in Persian, but I cannot see any
difference in performance when bidi-paragraph-direction is nil or
'left-to-right. However, I was able to see a difference using the
attached file when moving through an artificially created very long line
in the second heading. In my testing, setting bidi-paragraph-direction
to nil *improves* the performance.

> You could also turn it back to nil and see if people complain, as part
> of 9.6.

So, my datapoint indicates that changing bidi-paragraph-direction back
to nil could make sense. However, I am not using right-to-left text
daily in my system. Testing from people who do use right-to-left
languages would be appreciated.

Best,
Ihor

Text credit: https://ganjoor.net/khayyam/robaee/



test-bidi.org
Description: Lotus Organizer


Re: Org default is Left-to-right

2021-10-30 Thread Daniel Fleischer
Ihor Radchenko  writes:
> See https://lists.gnu.org/archive/html/emacs-devel/2011-09/msg00285.html

OK, so 10 years ago on Emacs 24 it might have caused some slowdown on
large Org files. It wasn't clear if these people needed RTL or not,
because I set it to nil as soon as I open my Org files. I guess I'll
use a hook in my config.

You could also turn it back to nil and see if people complain, as part
of 9.6.

-- 

Daniel Fleischer



Re: Org default is Left-to-right

2021-10-30 Thread Ihor Radchenko
Daniel Fleischer  writes:

> nil is Emacs default. I don't understand why Org chooses to align
> everything to the left, disregarding any RTL language. Org works great
> with RTL and even with mixed languages, as many people can attest.

See https://lists.gnu.org/archive/html/emacs-devel/2011-09/msg00285.html

Best,
Ihor