emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Leo Gaspard <leo@gaspard.ninja>
Cc: Leo Gaspard <orgmode@leo.gaspard.io>, emacs-orgmode@gnu.org
Subject: Re: Full-width characters break column display
Date: Thu, 01 Nov 2018 22:25:36 +0100	[thread overview]
Message-ID: <87o9b8bicv.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87y3acu06k.fsf@llwynog.ekleog.org> (Leo Gaspard's message of "Fri, 02 Nov 2018 03:23:15 +0900")

Leo Gaspard <leo@gaspard.ninja> writes:

> Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
>>> Small issue I've been having with org-mode: full-width characters
>>> (eg. 何か) appear to be breaking column display.
>>
>> Org tables assume a fixed-width font.  You need to use one, if such
>> thing exists for these characters.
>
> Well, it is fixed-width, but twice the width of spaces and vertical
> characters.
>
> Using it with regular English makes it look like th
> is, which I guess you'll grant me is not really usable :)
>
> I wonder if it'd be possible to support full-width chars for CJK
> script?

The problem is that 

  (string-width "何か")

equals

  (string-width "    ")

i.e, 4 characters, but both strings do not have the same length
visually.

As long as the two sexps above disagree, it seems difficult to support
this.

  reply	other threads:[~2018-11-01 22:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-01 15:54 Full-width characters break column display Leo Gaspard
2018-11-01 17:29 ` Nicolas Goaziou
2018-11-01 18:23   ` Leo Gaspard
2018-11-01 21:25     ` Nicolas Goaziou [this message]
2018-11-02 18:35       ` Leo Gaspard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o9b8bicv.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=leo@gaspard.ninja \
    --cc=orgmode@leo.gaspard.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).