Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Space between characters after joining two lines #293

Open
2 of 5 tasks
xfq opened this issue Apr 24, 2020 · 5 comments
Open
2 of 5 tasks

Space between characters after joining two lines #293

xfq opened this issue Apr 24, 2020 · 5 comments

Comments

@xfq
Copy link
Member

xfq commented Apr 24, 2020

Background of this issue

Something like the following paragraph in an HTML file:

Here is an English paragraph
that is broken into multiple lines
in the source code so that it can
more easily read in a text editor.

will become:

Here is an English paragraph that is broken into multiple lines in the source code so that it can be more easily read in a text editor.

when rendered in a web browser, i.e., lines are joined and one space is added between two lines.

However, in CJK text (except Hangul), the spaces are not added. For example:

这个段落比较长,
用一行写不行。最好
用三行写。

becomes:

这个段落比较长,用一行写不行。最好用三行写。

when rendered in a web browser, i.e., there is not space after and .

Question

The CSS Working Group would like to know which characters should not have spaces around them when joining lines.

Here is the current list, categorized using Unicode blocks: https://drafts.csswg.org/css-text-3/#space-discard-set

The interesting questions remaining are:

Unlike fantasai, I'm leaning towards not having spaces for all three categories above. WDYT? @w3c/chinese-layout-req-contributors


See also (CSSWG issues)

@upsuper
Copy link
Member

upsuper commented Apr 25, 2020

I tend to think spaces between bopomofo should not be discarded, because similar to pinyin, there seem to be spaces to break words or characters. However, I haven't ever seen any complete sentence written in just bopomofo, so I can be wrong about how it's actually used.

Probably people from Taiwan should confirm.

@r12a
Copy link
Contributor

r12a commented Apr 25, 2020

At https://r12a.github.io/scripts/bopomofo/ontheweb#mixedtext you can see bopomofo words mixed into Chinese without spaces being used.

At https://r12a.github.io/scripts/bopomofo/ontheweb#lighttone you can see a whole paragraph in bopomofo, which uses spaces between words. See also http://uncyclopedia.tw/wiki/%E3%84%93%E3%84%A8%CB%8B_%E3%84%A7%E3%84%A3_%E3%84%A8%E3%84%A3%CB%8A

I suspect that its a question of which is the dominant writing style. Is this bopomofo only, or is this chinese that includes bits of bopomofo.

@upsuper
Copy link
Member

upsuper commented Apr 25, 2020

I wouldn't take uncyclopedia as serious source of reference :)

But yes, when it's mixed with Chinese characters, it should probably have whitespace removed.

I somehow recall that the rule had something like if one side is Chinese and the other side is some set of characters, then eliminate the whitespace. This kind of thing can probably be applied here as well. But it seems that there is no longer such rule...

@bobbytung
Copy link
Contributor

bobbytung commented Apr 25, 2020 via email

@xfq
Copy link
Member Author

xfq commented May 8, 2020

We discussed this issue in a clreq meeting, and our consensus was that Bopomofo should not discard spaces because spaces are sometimes used in Bopomofo-only text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants