From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Align of columns is not correct if Chinese character contained. Date: Tue, 21 Oct 2008 10:32:33 +0200 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: multipart/mixed; boundary="===============0874712510==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KsCfT-0003wf-Iy for emacs-orgmode@gnu.org; Tue, 21 Oct 2008 04:32:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KsCfS-0003vG-02 for emacs-orgmode@gnu.org; Tue, 21 Oct 2008 04:32:42 -0400 Received: from [199.232.76.173] (port=41112 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsCfR-0003v4-8v for emacs-orgmode@gnu.org; Tue, 21 Oct 2008 04:32:41 -0400 Received: from postduif.ic.uva.nl ([145.18.40.180]:58022) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KsCfR-0007zw-8f for emacs-orgmode@gnu.org; Tue, 21 Oct 2008 04:32:41 -0400 In-Reply-To: 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: "Larry.Liu" Cc: emacs-orgmode@gnu.org --===============0874712510== Content-Type: multipart/alternative; boundary=Apple-Mail-16--689865505 --Apple-Mail-16--689865505 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Hi Larry, this has come up before. You need to use a fixed-width chinese font as your default font, one where each character will occupy exactly two (or 1 or 3) ascii character widths. Org is smart enough to deal with integer width characters (quite a feat already, I assure you), but it cannot and likely never will handle variable width fonts. - Carsten On Oct 21, 2008, at 9:48 AM, Larry.Liu wrote: > I found the align of table columns, as well as tags and columns in > column mode are not aligned correctly, if there is any Chinese > character contained, > > The attachment is a screen shoot > > System: MacOS 10.5.5 > Emacs: GNU Emacs 22.2.50.1 (i386-apple-darwin9.4.0, Carbon Version > 1.6.0) > Org-mode version: version 6.09 > > I am not familar with lisp so I can not look into the code, is this > a bug of org-mode or tbl? maybe this is because the length of multi- > byte character is not calculated correctly? > > Thanks. > > -- > -------------------------------------- > Larry.Liu > Mobile: 13911483964 > --------------------------------------- > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode --Apple-Mail-16--689865505 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi = Larry,

this has come up before.  You need to use = a fixed-width chinese font as your default font, one where each = character will occupy exactly two (or 1 or 3) ascii character widths. =  Org is smart enough to deal with integer width characters (quite a = feat already, I assure you), but it cannot and likely never will handle = variable width fonts.

- = Carsten

On Oct 21, 2008, at 9:48 AM, Larry.Liu = wrote:

I found the align of table columns, as well as tags and = columns in column mode are not aligned correctly, if there is any = Chinese character contained,

The attachment  is a screen = shoot

System: MacOS 10.5.5
Emacs: GNU Emacs 22.2.50.1 (i386-apple-darwin9.4.0, Carbon = Version 1.6.0)
Org-mode version: version 6.09

I = am not familar with lisp so I can not look into the code,  is this = a bug of org-mode or tbl? maybe this is because the length of multi-byte = character is not calculated correctly?

Thanks.

-- =
--------------------------------------
Larry.Liu     =                     =
Mobile: 13911483964     =
---------------------------------------
= <screenshot.png>__________________________________________= _____
Emacs-orgmode mailing list
Remember: use `Reply All' to send = replies to the list.
Emacs-orgmode@gnu.org
http://lists.= gnu.org/mailman/listinfo/emacs-orgmode

= --Apple-Mail-16--689865505-- --===============0874712510== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0874712510==--