W3C home > Mailing lists > Public > public-css-archive@w3.org > September 2017

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

From: Bobby Tung via GitHub <sysbot+gh@w3.org>
Date: Mon, 11 Sep 2017 00:33:13 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-328386645-1505089983-sysbot+gh@w3.org>
Xidorn,

But in this way, ruby will be separated with Hanzi when line-break. It is quite important requirement for inter-character.

Bobby

> Xidorn Quan <notifications@github.com> 於 2017年9月11日 上午8:24 寫道:
> 
> 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:
> 
> <!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-blocks 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.
> 
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub <https://github.com/w3c/csswg-drafts/issues/1773#issuecomment-328386041>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABxu0liHcFODsQkdjndIN7cb7w_AeURDks5shH3RgaJpZM4PJjs4>.
> 



-- 
GitHub Notification of comment by bobbytung
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1773#issuecomment-328386645 using your GitHub account
Received on Monday, 11 September 2017 00:33:07 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:17 UTC