emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] double-width characters in tables


From: Eric Abrahamsen
Subject: Re: [O] double-width characters in tables
Date: Tue, 12 Feb 2013 23:43:49 +0800
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2 (gnu/linux)

Bastien <address@hidden> writes:

> Hi Eric,
>
> Eric Abrahamsen <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]