From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alexandre Garreau Newsgroups: gmane.emacs.help Subject: Re: RTL lines Date: Wed, 27 Oct 2021 21:26:18 +0200 Message-ID: <4537597.zJ5D36GCzO@galex-713.eu> References: <3519414.WYFCpekPd3@galex-713.eu> <83h7deeajw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20704"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 27 21:48:16 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mfouF-0005Er-Sc for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 27 Oct 2021 21:48:15 +0200 Original-Received: from localhost ([::1]:39200 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mfouE-0004mB-PL for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 27 Oct 2021 15:48:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39710) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfoZA-00029L-CX for help-gnu-emacs@gnu.org; Wed, 27 Oct 2021 15:26:28 -0400 Original-Received: from portable.galex-713.eu ([2a00:5884:8305::1]:52674 helo=galex-713.eu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfoZ7-0005lR-Dw; Wed, 27 Oct 2021 15:26:27 -0400 Original-Received: from gal by galex-713.eu with local (Exim 4.92) (envelope-from ) id 1mfoZ1-0007tK-GD; Wed, 27 Oct 2021 21:26:19 +0200 In-Reply-To: <83h7deeajw.fsf@gnu.org> Received-SPF: pass client-ip=2a00:5884:8305::1; envelope-from=galex-713@galex-713.eu; helo=galex-713.eu X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:134238 Archived-At: Pardon me, I think I missed that mail too, and caused you to loose time=20 because of that (given the relatedness of many conversations now) :/ I really should read all emacs manual, I even have it printed=E2=80=A6 Le lundi 18 octobre 2021, 15:18:11 CEST Eli Zaretskii a =C3=A9crit : > > From: Alexandre Garreau > > Date: Mon, 18 Oct 2021 14:40:42 +0200 > >=20 > > 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)? >=20 > 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= =20 do that. I guess in any file where lines can be filled (like, except csv=20 files for instance) there wouldn=E2=80=99t be sense to do that=E2=80=A6 =E2=80=A6but I thought the definition of a paragraph was contextual, and de= termined=20 what M-q would do=E2=80=A6 but here I notice it isn=E2=80=99t: it=E2=80=99s= barely =E2=80=9Cany portion of=20 text separated by a blank line=E2=80=9D, so many bullets within org-mode (w= hose=20 each would be filled/wrapped separately by M-q), and even several=20 *sections* in org/outline-mode would be considered as a paragraph, until=20 the next blank line, even in the middle of a subsection=E2=80=A6 > (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=20 habit of searching within it, instead of simply limiting myself to doing=20 C-h (maybe both kind of documentations could be hyperlinked? maybe they=20 already are=E2=80=A6) > > and arbitrarily (for direction-agnostic languages such as some > > extreme- > > oriental ones)? >=20 > I don't think I understand what kind of "arbitrariness" you have in > mind here. Like =E2=80=9CI want chinese to be written TTB=E2=80=9D (well, let=E2=80=99= s say japanese and LTR,=20 given what you say thereafter). > > and does emacs support TTB/BTT (top to bottom, bottom to top) >=20 > 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= =20 hacking I certainly will.