From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: double-width characters in tables Date: Tue, 12 Feb 2013 23:43:49 +0800 Message-ID: <87vc9x4jwq.fsf@ericabrahamsen.net> References: <878v6tdcmm.fsf@ericabrahamsen.net> <87vc9xixze.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:43719) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5Hwd-0003JA-6I for emacs-orgmode@gnu.org; Tue, 12 Feb 2013 10:39:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U5HwZ-0005r2-5W for emacs-orgmode@gnu.org; Tue, 12 Feb 2013 10:38:55 -0500 Received: from plane.gmane.org ([80.91.229.3]:34945) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5HwY-0005qq-UJ for emacs-orgmode@gnu.org; Tue, 12 Feb 2013 10:38:51 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U5Hwo-0002aD-W2 for emacs-orgmode@gnu.org; Tue, 12 Feb 2013 16:39:06 +0100 Received: from 180.109.163.161 ([180.109.163.161]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Feb 2013 16:39:06 +0100 Received: from eric by 180.109.163.161 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Feb 2013 16:39:06 +0100 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Bastien writes: > Hi Eric, > > Eric Abrahamsen writes: > >> This problem has been flagged up before: >> >> http://orgmode.org/worg/org-issues.html#mid-87pqt04qg1-2Efsf-40gmail-2Ecom >> >> It's causing me headaches at the moment, so I'm trying to see if I can >> find a solution. > > The problem for me here is that even if (string-width "《蛙》") > returns 6, it is not visually equivalent to 6 characters. > > Is it for you? > > If not, let's report this to Emacs... > > PS: Btw (org-string-width "《蛙》") returns the correct value. Yes, org-string-width eventually calls string-width, so that behaves "correctly" as far as it goes, but unfortunately that's not where the value in the text properties comes from... 《蛙》 123456 Doesn't that line up for you? Those bracket characters come with their own "whitespace", maybe this is clearer: 正能量 123456 One Chinese character should definitely take up two screen columns. I'd love to file a bug report but I honestly don't know where this comes from. If it's not org-add-props or relatives, what emacs function is responsible? Thanks for the swift responses! Eric