Re: Selection on text with ruby

"Selection" and "copying to plain text" are two different things.
Selection should include ruby, or they will be left when you hit the
DELETE key, or stripped out when you copied to different HTML
documents.

How to plain-text-ize HTML is not in the scope of the spec as far as I
understand, at least as of today, so it's up to UA to decide what to
do.

In my personal opinion, it might depends on the content and what users
want to do, but I agree that in the most common cases I'd probably
want it to be stripped out.

/koji

On Sat, Feb 21, 2015 at 12:14 PM, Bobby Tung <bobbytung@wanderer.tw> wrote:
> Hi Xidorn,
>
> Xidorn Quan <quanxunzhen@gmail.com> 於 2015年2月21日 上午9:45 寫道:
>
> Hi,
>
> We just implement CSS Ruby on Gecko, and we recently get a request from
> users that when selecting a piece of text, the ruby annotations should be
> excluded from the selection as well as the text in clipboard. [1]
>
> AFAICS, it is a reasonable request. I don't think people generally wants to
> select the annotations. In most cases, people just need the base text. But I
> can see one case that, people may want to copy the whole markup structure
> for using in other places.
>
> Currently, in all browsers which support ruby, annotations will be selected
> and copied as if they are inline elements. But in Kindle apps (for
> iOS/Android), the annotations cannot be selected in any way.
>
> I'm pretty sure that in common cases, people would only want to select the
> base text. But what I'm not sure is, how often do people want to select the
> annotation as well, and what would they expect when moving the text to other
> places? I guess for plain text, they may expect that there are always
> brackets around the annotations.
>
>
> I think in Pinyin and Bopomofo, people may think they can copy/paste and
> keep ruby as well. But it doesn't work anyway. If the output, in plain text,
> is every character with brackets and Pinyin/Bopomofo. It will be unreadable.
>
> But for general Japanese ruby usage and ruby as "real" annotation. It would
> be better to export the brackets and ruby text together.
>
> Bobby
>
>
> [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1130891
>
> - Xidorn

Received on Tuesday, 24 February 2015 03:29:59 UTC