Re: [csswg-drafts] [css-ruby-1] Propose to treat rtc with orthogonal writing-mode to be inter-character rather than using ruby-position

I actually start wondering whether inter-character ruby is a good idea at all, now.

Majority of use case of inter-character ruby can be achieved by something like:
```html
<!DOCTYPE html>
<meta charset="UTF-8">
<style>
ruby {
  display: inline-block;
  width: 1.4em;
}
rt {
  display: inline-block;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 30%;
  vertical-align: middle;
}
p {
  font-size: 72px;
}
</style>
<p>
  <ruby>我<rt>ㄨㄛˇ</rt></ruby><ruby>起<rt>ㄑㄧˇ</rt></ruby><ruby>來<rt>ㄌㄞˊ</rt></ruby><ruby>了<rt>˙ㄌㄜ</rt></ruby><ruby>我<rt>ㄨㄛˇ</rt></ruby><ruby>起<rt>ㄑㄧˇ</rt></ruby><ruby>來<rt>ㄌㄞˊ</rt></ruby><ruby>了<rt>˙ㄌㄜ</rt></ruby>
</p>
```
which just works in every browser nowadays. (I don't think the `width` on `ruby` should be necessary, but there might be some bug in Gecko which stops it from working as expected. That should be investigated separately.)

There are issues around this approach, e.g. justification doesn't work, `letter-spacing` doesn't work. But those can be fixed independently, e.g. via treating `inline-block`s as `U+FFFD` in the corresponding algorithms (which should be desirable in general I suppose).

I have a feeling that baking this feature into CSS itself directly is more complicated than it's worth, especially given that the testcases can already be done with some stable CSS features without much hack.

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

Received on Monday, 11 September 2017 00:24:50 UTC