Skip to content

Selecting ruby #574

Open
Open

Description

@xfq

What should be the correct behaviour when selecting and copying some text with ruby in a browser or e-book reader?

Currently, browsers behave inconsistently, and we need to document the requirements before reporting this issue to browsers.

Activity

  1. OverflowCat commented on Jan 26, 2025

    @OverflowCat
    这是<ruby>汉<rp>(</rp><rt>Hàn</rt><rp>)</rp>字<rp>(</rp><rt>zì</rt><rp>)</rp></ruby>。
    

    Copying 这是汉(Hàn)字(zì)。 gets 这是汉Hàn字zì。 in Chrome. I think most people expect 这是汉(Hàn)字(zì)。. If <rp> tag is designed only for compability, then we should discuss what it will yield when there is no <rp> tag.  Currently there is no way to control what being copied using CSS.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions