w3c / w3c/clreq

Space between characters after joining two lines

Open
#293 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

i:spacing 問題/question
Dominant language
HTML
Stars
809
Forks
66
Avg merge
19m
Merged PRs (30d)
1

Description

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)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the CSS Text Level 3 space-discard set and the linked CSSWG issues, then examine the unchecked categories: Yijing/Tai Xuan Jing symbols, mixed Chinese and Western text, and punctuation. Done means reaching agreement with the Chinese layout contributors on which characters should discard spaces and documenting that decision.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, html
Domain
documentation, internationalization
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.