From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Nicolas Goaziou Newsgroups: gmane.emacs.bugs Subject: bug#11700: 24.1.50; Bad interaction between BiDi and org-tables Date: Mon, 04 Dec 2017 21:27:53 +0100 Message-ID: <87mv2y6xx2.fsf@nicolasgoaziou.fr> References: <83mx46y4f5.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1512419295 1793 195.159.176.226 (4 Dec 2017 20:28:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 4 Dec 2017 20:28:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Cc: Dov Grobgeld , 11700@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 04 21:28:11 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLxLT-0008Ss-8M for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Dec 2017 21:28:07 +0100 Original-Received: from localhost ([::1]:45082 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLxLa-0006ge-HZ for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Dec 2017 15:28:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35229) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLxLP-0006gA-NI for bug-gnu-emacs@gnu.org; Mon, 04 Dec 2017 15:28:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eLxLO-00066g-QY for bug-gnu-emacs@gnu.org; Mon, 04 Dec 2017 15:28:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37280) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eLxLO-00066A-NY; Mon, 04 Dec 2017 15:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eLxLO-00065o-D9; Mon, 04 Dec 2017 15:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Nicolas Goaziou Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Resent-Date: Mon, 04 Dec 2017 20:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11700 X-GNU-PR-Package: emacs,org-mode X-GNU-PR-Keywords: Original-Received: via spool by 11700-submit@debbugs.gnu.org id=B11700.151241927923408 (code B ref 11700); Mon, 04 Dec 2017 20:28:02 +0000 Original-Received: (at 11700) by debbugs.gnu.org; 4 Dec 2017 20:27:59 +0000 Original-Received: from localhost ([127.0.0.1]:45961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLxLK-00065S-Pc for submit@debbugs.gnu.org; Mon, 04 Dec 2017 15:27:58 -0500 Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]:34500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLxLI-00065H-VB for 11700@debbugs.gnu.org; Mon, 04 Dec 2017 15:27:57 -0500 Original-Received: from saiph.selenimh (000043010000000000000469.ipv6.commingeshautdebit.fr [IPv6:2a03:a0a0:0:4301::469]) (Authenticated sender: mail@nicolasgoaziou.fr) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id BA476A80DC; Mon, 4 Dec 2017 21:27:54 +0100 (CET) Original-Received: from ngz by saiph.selenimh with local (Exim 4.89) (envelope-from ) id 1eLxLF-0005aJ-H0; Mon, 04 Dec 2017 21:27:53 +0100 In-Reply-To: <83mx46y4f5.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 14 Jun 2012 06:10:22 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:140691 Archived-At: Hello, Eli Zaretskii writes: >> Date: Wed, 13 Jun 2012 22:26:35 +0300 >> From: Dov Grobgeld >> >> Imagine you have a buffer with the following logical contents (using the >> convention that capitals are RTL characters). >> >> | abcdef | abc | >> | ABCDEF | ABC | >> >> I would like this to be displayed as: >> >> | abcdef | abc | >> | FEDCBA | CBA | >> >> The problem is that I want to each column of the table to be isolated >> (with regards to bidi influence) from other columns in the table. (Of >> course we also want to choose the table direction, but that is a >> different and solvable issue.) If there is no such separation, which >> is the behaviour currently get in emacs HEAD, then the resulting >> rendered buffer is: >> >> | abcdef | abc | >> | CBA | FEDCBA | >> >> Is this even solvable in the current emacs bidi model? > > Yes, it is. The solution involves putting segment separators between > the table columns. These could be TAB characters or a display > property whose value is (space . :width N) or (space . :align-to COL). > > Org maintainers, please ask if you need help in fixing this. *raises a hand* I'd rather preserve structure of Org documents outside of Emacs. So, `:align-to' is not an option. IIUC, I need to replace the closest space from vertical bars with #(" " 0 1 (space :width 1)) This doesn't sound too difficult. However, could someone provide tests cases so we get it right once and for all? Thank you. Regards, -- Nicolas Goaziou 0x80A93738