Re: [csswg-drafts] [css-text] text-spacing is very complicated (#4246)

The simplified version of text-spacing looks nice, but the `trim-all` keyword should be changed, because it sounds like trimming all trimmable fullwidth punctuations not only at start, end and adjacent.

There are certain use cases for trimming fullwidth punctuations not only at start, end and adjacent. See examples in JLREQ:

- [3.1.2 Positioning of Punctuation Marks (Commas, Periods and Brackets)](https://w3c.github.io/jlreq/#positioning_of_punctuation_marks), Figure 65: Positioning of parentheses and brackets. (The left-hand side shows an example of setting them solid.)

  ![Figure 65: Positioning of parentheses and brackets. (The left-hand side shows an example of setting them solid.)](https://w3c.github.io/jlreq/images/img2_9.png)

- [3.1.3 Exceptional Positioning of Ideographic Comma and Katakana Middle Dot](https://w3c.github.io/jlreq/#exceptional_positioning_of_ideographic_comma_and_katakana_middle_dot)

  - Figure 66: Example of exceptional positioning of the IDEOGRAPHIC COMMA.

    ![Figure 66: Example of exceptional positioning of the IDEOGRAPHIC COMMA.](https://w3c.github.io/jlreq/images/img2_11.png)

  - Figure 67: Example of the positioning of IDEOGRAPHIC COMMA with ideographic digits to represent an approximate number.  

    ![Figure 67: Example of the positioning of IDEOGRAPHIC COMMA with ideographic digits to represent an approximate number.](https://w3c.github.io/jlreq/images/img2_10.png)

  - Figure 68: Example of the exceptional positioning of KATAKANA MIDDLE DOT.

    ![Figure 68: Example of the exceptional positioning of KATAKANA MIDDLE DOT.](https://w3c.github.io/jlreq/images/img2_12.png)



Antenna House Formatter has `(-ah-)punctuation-trim: all` for such exceptional use cases. See: <https://www.antenna.co.jp/AHF/help/en/ahf-ext.html#axf.punctuation-trim>.

> <dl><dt>all</dt><dd>Trim all parentheses, middle dots, and punctuations of full width and treat them as half width.</dd></dl>

So the keyword `trim-all` should be reserved for trimming all trimmable fullwidth punctuations, and we need a new keyword for trimming start, end and adjacent. I think `trim-auto` is good.


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


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

Received on Saturday, 4 February 2023 03:26:17 UTC