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

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

Re: RTL lines


From: Alexandre Garreau
Subject: Re: RTL lines
Date: Wed, 27 Oct 2021 21:26:18 +0200

Pardon me, I think I missed that mail too, and caused you to loose time 
because of that (given the relatedness of many conversations now) :/

I really should read all emacs manual, I even have it printed…

Le lundi 18 octobre 2021, 15:18:11 CEST Eli Zaretskii a écrit :
> > From: Alexandre Garreau <galex-713@galex-713.eu>
> > Date: Mon, 18 Oct 2021 14:40:42 +0200
> > 
> > Is there a var to make any line whose first either rtl or ltr char is
> > RTL be displayed RTL (so for instance an org-mode definition list
> > (with ::) would be displayed RTL with the bullets at right, if the
> > defining terms (at the beginning, just after the */+/-/etc.) are in
> > arabic/hebrew/etc.)?
> Set bidi-paragraph-direction to the nil value.  It's a per-buffer
> variable.

Thank you!

> > Another idea I have is is there a way to do that per-paragraph (for
> > instance for a defun that would use a such language)?
> 
> The above will do that per paragraph.  That is, each paragraph will be
> LTR or RTL depending on the first "strong directional" character in
> that paragraph.

Thinking to it, yes, a paragraph is the most meaningful semantical unit to 
do that.  I guess in any file where lines can be filled (like, except csv 
files for instance) there wouldn’t be sense to do that…

…but I thought the definition of a paragraph was contextual, and determined 
what M-q would do… but here I notice it isn’t: it’s barely “any portion of 
text separated by a blank line”, so many bullets within org-mode (whose 
each would be filled/wrapped separately by M-q), and even several 
*sections* in org/outline-mode would be considered as a paragraph, until 
the next blank line, even in the middle of a subsection…

> (This all is supposed to be well documented in the Emacs manual.
> Hint, hint...)

Emacs is very big and so is its manual, but yes I should get more of an 
habit of searching within it, instead of simply limiting myself to doing 
C-h (maybe both kind of documentations could be hyperlinked? maybe they 
already are…)

> > and arbitrarily (for direction-agnostic languages such as some
> > extreme-
> > oriental ones)?
> 
> I don't think I understand what kind of "arbitrariness" you have in
> mind here.

Like “I want chinese to be written TTB” (well, let’s say japanese and LTR, 
given what you say thereafter).

> > and does emacs support TTB/BTT (top to bottom, bottom to top)
> 
> No.  if you want to submit patches to that effect,l they will be most
> welcome, though.

Thank you very much for the encouragement, if I succeed getting again into 
hacking I certainly will.



reply via email to

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