Re: [csswg-drafts] [css-text-4] Japanese Paragraph-start Conventions in CSS need to be updated (#10144)

> I think I disagree with your conclusion based on JLREQ. Due to this: "This half em spacing can be removed for line adjustment." The only case where the difference between `trim-start` and `trim-auto` at the end of the line is visible is if you try and apply `text-align: justify`. With `trim-start`, you don't remove the half em spacing for alignment. With `trim-auto`, you do. So I think `trim-auto` is a better match for this JLREQ expectation.

You might think the JLREQ's description in [§3.1.9](https://www.w3.org/TR/jlreq/#positioning_of_closing_brackets_full_stops_commas_and_middle_dots_at_line_end), “In principle, closing brackets (cl-02), commas (cl-07) or full stops (cl-06) at the line end have half em spacing after them,” applies to unjustified text, but it is not. JLREQ [notes](https://www.w3.org/TR/jlreq/#n159) that “In Japanese composition, especially common book composition, usually only "justification" is applied.” So it is obvious this description and [Figure 76](https://www.w3.org/TR/jlreq/#fig2_21) show justified text with half em spacing after closing punctuation at line end. This cannot be matched with `trim-auto`'s line end behavior.

The description that follows, “This half em spacing can be removed for line adjustment,” just matches the `trim-start`'s line end behavior (trim only if would not fit). Further explanation of this line adjustment is in [§3.8.3 Procedures for Inter-Character Spacing Reduction](https://www.w3.org/TR/jlreq/#procedures_for_intercharacter_space_reduction): “b. The half em spacing after closing brackets (cl-02),commas (cl-07) and full stops (cl-06) at the end of a line, is removed and set solid.”

About the line end behavior that matches `trim-auto`, JLREQ only [notes](https://www.w3.org/TR/jlreq/#n70) that “In some DTP systems etc., after full stops (cl-06), commas (cl-07) or closing brackets (cl-02) at the line end, the line end is always set solid (see [Figure 79](https://www.w3.org/TR/jlreq/#fig2_23)).”

-- 
GitHub Notification of comment by MurakamiShinyu
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10144#issuecomment-2027039333 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 29 March 2024 10:27:31 UTC