From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Aligning table is incorrect when containing japanese character Date: Wed, 3 Feb 2010 07:23:33 +0100 Message-ID: <12578DBB-5019-4D5B-A6BE-7E185F95F3C6@gmail.com> References: <73f97e501002021058k6f2942c5t73fba841fd080373@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=ISO-2022-JP; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NcYeI-0001ff-Df for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 01:23:38 -0500 Received: from [199.232.76.173] (port=34262 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcYeH-0001fG-AX for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 01:23:37 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NcYeG-0004QT-Ff for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 01:23:37 -0500 Received: from mail-ew0-f228.google.com ([209.85.219.228]:43192) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NcYeG-0004QN-6D for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 01:23:36 -0500 Received: by ewy28 with SMTP id 28so980017ewy.8 for ; Tue, 02 Feb 2010 22:23:35 -0800 (PST) In-Reply-To: <73f97e501002021058k6f2942c5t73fba841fd080373@mail.gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Taiki SUGAWARA Cc: emacs-orgmode@gnu.org Hi Taiki, Org-mode will do this right if you are using a font that uses a wdith of exactly 2 ASCII characters for each japanese character. - Carsten On Feb 2, 2010, at 7:58 PM, Taiki SUGAWARA wrote: > Hi, > > When I align table containing japanese character as following steps: > > 1. insert following table to buffer. > | 日本語 | | > | foo bar baz | | > 2. move cursor to top-left corner of table. > > 3. Hit Tab, Tab > > Aligning table is incorrect as following: > | 日本語 | | > | foo bar baz | | > > I think, `org-table-justify-field-maybe' should use string width > instead of buffer's point distance. > > I wrote attached patch to use string width. Would you review it? > > Regards, > Taiki > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten