Skip to content

[css-text-3] text-transform: full-size-kana #3143

@frivoal

Description

@frivoal

Many years ago, we discussed, and eventually rule against, a full-size-kana value to text-transform

It would have turned something like しゃ into しや. The two are not equivalent, (the first is pronounced “sha”, the second “shiya”), but at very small font sizes inside ruby text, this substitution is sometimes used to keep things at a legible size.

Without this text transform, authors wanting this effect will just hard code the transformed string into the source, which does the wrong thing from searches or speech synthesis.

The main argument against this feature was that this was a rather niche i18n feature, and if we started to add those to text-transform, there'd be no end to it, so it would be better to pursue a generic extension mechanism. I was one of those pushing this line of thought, and even drafted a possible generic mechanism: https://specs.rivoal.net/css-custom-tt/

I repent, and I think we should have added/kept full-size-kana.

  • In the years since, there hasn't been an avalanche of requests for more i18n transforms like this one, so the slippery slope concern does seem to have been founded.
  • In the meanwhile, the i18n/a11y problem that this was meant to solve remains unsolved.
  • The custom text-transform mechanism has some interesting difficulties, and has not received any attention since then.

I think we should consider adding this value back.

Metadata

Metadata

Assignees

Labels

Closed Accepted by CSSWG ResolutionTestedMemory aid - issue has WPT testsTracked in DoCa11y-trackerGroup bringing to attention of a11y, or tracked by the a11y Group but not needing response.css-text-3Current Worki18n-jlreqJapanese language enablementi18n-trackerGroup bringing to attention of Internationalization, or tracked by i18n but not needing response.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions