w3c / i18n-issues

A place to log problems encountered when developing web sites and pages for international use.
3 stars 2 forks source link

Difficulties selecting ruby text #3

Open r12a opened 6 years ago

r12a commented 6 years ago

@bobbytung reports the following:

In mono-ruby case when you select and copy certain text with mono-ruby, the last ruby texts will not be selected. For example:

2018-04-19 9 49 34

After copy and paste, you will get "火ㄏㄨㄛˇ星". "ㄒㄧㄥ" is not copied.

xfq commented 6 years ago

I did a simple copy-and-paste experiment in various browsers:


Code:

<ruby>火<rt>ㄏㄨㄛˇ</rt></ruby><ruby>星<rt>ㄒㄧㄥ</rt></ruby>
r12a commented 6 years ago

Here are some more results, using data:text/html,<p>hello<ruby>火<rt>ㄏㄨㄛˇ</rt></ruby><ruby>星<rt>ㄒㄧㄥ</rt></ruby>bye</p> on a Mac.

In Chrome:

Safari does the same, except that the actual highlight appears on the 2nd rt and not the first, which can be rather confusing.

Firefox exhibits the same highlighting behaviour as Chrome, but never pastes the rt text.

I don't have a Windows machine at the moment, so can't test Edge.

kirklin commented 1 year ago

System: OS: Windows 10 10.0.23536 CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700 Memory: 6.44 GB / 31.75 GB Binaries: Node: 18.15.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD npm: 9.1.1 - C:\Program Files\nodejs\npm.CMD pnpm: 8.6.9 - ~\AppData\Roaming\npm\pnpm.CMD Browsers: Edge: Spartan (44.23536.1000.0), Chromium (117.0.2045.12), ChromiumDev (118.0.2060.1) Internet Explorer: 11.0.23536.1000

https://github.com/w3c/i18n-issues/assets/17453452/c0e18493-a809-4352-9e0f-f4ee2184c747