From mboxrd@z Thu Jan 1 00:00:00 1970 From: jsj Subject: Re: table alignment with org-pretty-entities turned on Date: Wed, 31 Aug 2016 10:14:57 -0700 Message-ID: <0EB461EC-CFAD-4BA0-AB02-E13954025F2E@gmail.com> References: <24054f3d55784e3b905a958604b45a33@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> <87lgzd2vla.fsf@ucl.ac.uk> <9dfe6e36-805d-3e2b-11bf-41ae5f5b8b02@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_5A84BE0F-36BF-4141-9F07-4FBB79027F95" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bf96M-0002o5-CN for emacs-orgmode@gnu.org; Wed, 31 Aug 2016 13:15:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bf96I-0002TE-4j for emacs-orgmode@gnu.org; Wed, 31 Aug 2016 13:15:01 -0400 Received: from mail-it0-x22d.google.com ([2607:f8b0:4001:c0b::22d]:36133) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bf96H-0002TA-RS for emacs-orgmode@gnu.org; Wed, 31 Aug 2016 13:14:58 -0400 Received: by mail-it0-x22d.google.com with SMTP id i184so21139758itf.1 for ; Wed, 31 Aug 2016 10:14:57 -0700 (PDT) In-Reply-To: <9dfe6e36-805d-3e2b-11bf-41ae5f5b8b02@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: =?utf-8?Q?Cl=C3=A9ment_Pit--Claudel?= Cc: emacs-orgmode@gnu.org --Apple-Mail=_5A84BE0F-36BF-4141-9F07-4FBB79027F95 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, > On 2016=E5=B9=B48=E6=9C=8831=E6=97=A5, at 07:44, Cl=C3=A9ment = Pit--Claudel wrote: >=20 > I'm not sure I understand the problem description. Turning on = prettification does breaks table alignment; thus,=20 >=20 > | a | b | c | > |--------+---+---| > | \alpha | | | >=20 > is always displayed as=20 >=20 > | a | b | c | > |--------+---+---| > | =CE=B1 | | | >=20 > I can indeed reproduce this; one way to prevent it from happening = would be to prettify "\alpha" as "=CE=B1 =E2=80=9C. This is the same as my experience, and it makes sense because turning on = prettification does not take care of the alignment. The problem I have = is exactly related to what you described below, i.e. the table alignment = after a realignment. > On the other hand, realigning the table (by pressing tab in a cell) = produces the expected alignment: >=20 > | a | b | c | > |---+---+---| > | =CE=B1 | | | >=20 I have a different experience for this. In my case, after a realignment (by pressing TAB or C-c C-c), I got=20 | a | b | c | |----+---+---| | =CE=B1 | | | instead of=20 | a | b | c | |---+---+---| | =CE=B1 | | | It looks like that a greek letter is considered to be a double-wide = symbol but displayed as a single-wide one. > which in turn looks wrong when prettification is disabled: >=20 > | a | b | c | > |---+---+---| > | \alpha | | | >=20 > Does this match your experience? If so, I don't think it's a bug, as = much as a limitation of prettification. >=20 > Cl=C3=A9ment. This is surprising as I can reproduce the issue with a clean init file. Btw, I am using org-plus-contrib package (20160822) with emacs 25.1.50 = on a mac (10.11.6). Jiang --Apple-Mail=_5A84BE0F-36BF-4141-9F07-4FBB79027F95 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi,


On = 2016=E5=B9=B48=E6=9C=8831=E6=97=A5, at 07:44, Cl=C3=A9ment Pit--Claudel = <clement.pit@gmail.com> wrote:

I'm not sure I = understand the problem description. Turning on prettification does = breaks table alignment; thus, 

| a      | b | c = |
|--------+---+---|
| \alpha |   | =   |

is always displayed = as 

| a      | b | c = |
|--------+---+---|
| =CE=B1 |   | =   |

I can indeed = reproduce this; one way to prevent it from happening would be to = prettify "\alpha" as "=CE=B1     =E2=80=9C.

This is the same as my experience, and = it makes sense because turning on prettification does not take care of = the alignment. The problem I have is exactly related to what you = described below, i.e. the table alignment after a realignment.

On the other hand, realigning the table (by = pressing tab in a cell) produces the expected alignment:

| a | b | c |
|---+---+---|
| =CE=B1 |   | =   |


I have a different experience for = this.
In my case, after a realignment (by pressing TAB or C-c = C-c), I got 

| a  | b | c = |
|----+---+---|
| =CE=B1 | =   |   |

instead of 

| a | b | c = |
|---+---+---|
| =CE=B1 |   | =   |

It looks like that a greek letter is = considered to be a double-wide symbol but displayed as a single-wide = one.

which in turn looks wrong when = prettification is disabled:

| a | b | c |
|---+---+---|
| \alpha | =   |   |

Does this match your experience? If so, I don't = think it's a bug, as much as a limitation of prettification.

Cl=C3=A9ment.

This is surprising as I can reproduce the issue = with a clean init file.
Btw, I am using org-plus-contrib = package (20160822) with emacs 25.1.50 on a mac (10.11.6).

Jiang


= --Apple-Mail=_5A84BE0F-36BF-4141-9F07-4FBB79027F95--