C++ Logo

sg16

Advanced search

Re: [SG16] Use of U+3000 IDEOGRAPHIC SPACE is common practice

From: Victor Zverovich <victor.zverovich_at_[hidden]>
Date: Thu, 2 Dec 2021 09:40:56 -0800
Yes, the example is completely misleading because we never guaranteed that
alignment works in proportional fonts in the first place. So what is being
proposed is a completely novel design that we shouldn't try to sneak in as
a LWG issue "fix".

Cheers,
Victor

On Thu, Dec 2, 2021 at 9:36 AM Mark Zeren via SG16 <sg16_at_[hidden]>
wrote:

> If I reformat the second example with a mono-spaced ideographic font
> (PCMyungjo on macOS) I get the same alignment as the first example.
>
>
>
> Don't we have a similar miss-alignment when switching from monospaced
> fonts to proportional fonts for pure ascii, aligned, text?
>
>
>
> *From: *SG16 <sg16-bounces_at_[hidden]> on behalf of Peter Brett via
> SG16 <sg16_at_[hidden]>
> *Date: *Thursday, December 2, 2021 at 5:38 AM
> *To: *sg16_at_[hidden] <sg16_at_[hidden]>
> *Cc: *Peter Brett <pbrett_at_[hidden]>
> *Subject: *[SG16] Use of U+3000 IDEOGRAPHIC SPACE is common practice
>
> Hi all,
>
>
>
> Alignment with U+3000 IDEOGRAPHIC SPACE (the full-width space character)
> is common practice in Han text.
>
>
>
> Consider the following text typed using the Microsoft Japanese IME in its
> default Hiragana configuration:
>
>
>
> おはようございます
>
> こんにちは
>
> おやすみなさい
>
>
>
> Note that (1) pressing the space keyboard key inserts U+3000 IDEOGRAPHIC
> SPACE and (2) that U+3000 takes up exactly one ideographic square, allowing
> the text to be perfectly aligned.
>
>
>
> The same text with each U+3000 IDEOGRAPHIC SPACE replaced with two U+0020
> SPACE characters:
>
>
>
> おはようございます
>
> こんにちは
>
> おやすみなさい
>
>
>
> The ability to specify U+3000 as padding for formatting alignment is
> highly desirable in Han environments, especially for any text that may be
> copied and pasted from a terminal emulator into another environment (e.g. a
> programming text editor such as VS Code or Emacs).
>
>
>
> Best regards,
>
>
>
> Peter
>
>
> --
> SG16 mailing list
> SG16_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/sg16
>

Received on 2021-12-02 11:41:31