Re: [csswg-drafts] [css-ruby] Handling apostrophes in pinyin (#5997)

I don't have a solution for how. I am not even sure that we can find one. But if we can, it might be worth trying, because it is a problem. Here's some more details:

Say you have this markup:
```html
<ruby><rb>西<rb>安<rt>xi<rt>an<rb>的<rt>de<rb>东<rb>西<rt>dong<rt>xi</ruby>
```
with default styling, it will look like this:

<img width="266" alt="Screen Shot 2021-02-19 at 8 38 55" src="https://user-images.githubusercontent.com/113268/108436025-fd445080-728d-11eb-8339-00eb65fe774a.png">

That's fine.

However, let's say we apply `ruby-merge: merge` to group the annotations per word, as afforded by this markup:

<img width="281" alt="Screen Shot 2021-02-19 at 8 43 23" src="https://user-images.githubusercontent.com/113268/108436321-8ce9ff00-728e-11eb-82a4-43828387aacf.png">

The "dongxi" over 东西 is fine, but the "xian" over 西安 is not. What we would want instead is something like this:

<img width="264" alt="Screen Shot 2021-02-19 at 8 45 07" src="https://user-images.githubusercontent.com/113268/108436448-cd497d00-728e-11eb-8cb2-b26c4bb8fb28.png">

Here's another example. This is less realistic, but could happen too. Let's say we increase the font-size of the annotations:
<img width="363" alt="Screen Shot 2021-02-19 at 8 40 34" src="https://user-images.githubusercontent.com/113268/108436123-3086df80-728e-11eb-879b-c200c30268ac.png">

That's not good. What we'd actually want is more something like:

<img width="381" alt="Screen Shot 2021-02-19 at 8 41 48" src="https://user-images.githubusercontent.com/113268/108436198-557b5280-728e-11eb-9333-f83fa5b8a295.png">

Again, I don't think I know for sure how to solve it, but if someone can think of something, that would be good.

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


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

Received on Thursday, 18 February 2021 23:49:35 UTC