Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difficulties selecting ruby text #3

Open
r12a opened this issue May 1, 2018 · 3 comments
Open

Difficulties selecting ruby text #3

r12a opened this issue May 1, 2018 · 3 comments

Comments

@r12a
Copy link
Contributor

r12a commented May 1, 2018

@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.

@r12a r12a added the i18n-clreq label May 1, 2018
@xfq
Copy link
Member

xfq commented May 2, 2018

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

  • Chrome: 火ㄏㄨㄛˇ星
  • Safari: 火ㄏㄨㄛˇ星ㄒㄧㄥ
  • Firefox: 火星

Code:

<ruby><rt>ㄏㄨㄛˇ</rt></ruby><ruby><rt>ㄒㄧㄥ</rt></ruby>

@r12a
Copy link
Contributor Author

r12a commented May 2, 2018

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:

  • triple click to select grabs everything
  • double click on the 1st han character and extend to second includes the first rt (ie. 火ㄏㄨㄛˇ星) but misses the second rt (ㄒㄧㄥ), but the selection can be extended using shift+→
  • selecting base characters by dragging the cursor gives the same result as previous bullet
  • you can select just the 1st rt, but if you extend the selection to include the next one, it grabs the 2nd han character too (perhaps, not surprisingly)

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
Copy link

kirklin commented Sep 5, 2023

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

test_by_chorme.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants