Re: [csswg-drafts] [css-text-4] Make ideograph-alpha and ideograph-numeric part of text-spacing: normal (#6950)

It's not an easy call, one way or the other. 

If autospacing is the default, it's possible that some web text somewhere might grow a little, although it's not clear to me how many cases like that exist, and it may be a small number.

On the other hand, if the behaviour has to be applied manually to all Chinese and Japanese text in the future, that's a pain in the neck (for all web pages going forward, forever).   Especially in cases such as where text is converted automatically from markdown, or where strings from a database or field-based input from users are integrated into a document that doesn't have styling for Chinese, and so on.

But i also find myself wondering about a couple of aspects of this.

@CharlesBelov makes a case for no autospacing in some types of text.  Of course, one possibility would be to have a value that turns autospacing off, except that we don't appear to have one, and that leads to another thought.  It suggests that it would also not be possible to have, say, autospacing set for the document as a whole (by default or by a style declaration), and then turn it off for some parts of the content.

Another feature that might be useful is the ability to say, "If spacing has been used in an existing text between Han and ASCII alphanumeric text, rather than adding yet more space if autospacing is turned on (1/4 em plus the existing space), _replace_ the existing space with a 1/4em gap. That would make it easier to have consistent spacing when mixing text from different sources on the same page (especially including user input via forms, where they may add spaces). That would also allow content authors to apply autospacing without being concerned that  existing text would wrap onto 2 lines, as @frivoal fears.

Which makes me wonder whether it's right to treat autospacing as just a value of `text-spacing`, or whether it better to have an `autospacing` property with values such as `on|off|override-space|<width>`.  (I seem to vaguely remember that this is more like what was implemented in Internet Explorer in times past.) 

 



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


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

Received on Monday, 28 March 2022 15:22:46 UTC