Add option to exclude ruby annotation from plain text when copied
Categories
(Core :: DOM: Selection, enhancement, P5)
Tracking
()
People
(Reporter: alice0775, Assigned: xidorn)
References
(Blocks 1 open bug)
Details
Attachments
(5 files, 2 obsolete files)
1.63 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
4.40 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
3.26 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
11.00 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
48 bytes,
text/x-phabricator-request
|
Details | Review |
Comment 1•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Assignee | ||
Comment 2•11 years ago
|
||
Comment 3•11 years ago
|
||
Assignee | ||
Comment 4•11 years ago
|
||
Assignee | ||
Comment 5•11 years ago
|
||
Assignee | ||
Comment 6•11 years ago
|
||
Comment 7•11 years ago
|
||
Comment 8•11 years ago
|
||
Assignee | ||
Comment 9•10 years ago
|
||
Assignee | ||
Comment 10•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Assignee | ||
Comment 11•10 years ago
|
||
Assignee | ||
Comment 12•10 years ago
|
||
Comment 13•10 years ago
|
||
Updated•10 years ago
|
Assignee | ||
Comment 14•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Comment 15•10 years ago
|
||
Assignee | ||
Comment 18•10 years ago
|
||
Comment 19•10 years ago
|
||
Assignee | ||
Comment 20•10 years ago
|
||
Comment 21•10 years ago
|
||
Assignee | ||
Comment 22•10 years ago
|
||
Comment 23•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Assignee | ||
Comment 25•10 years ago
|
||
Assignee | ||
Comment 26•10 years ago
|
||
Comment 27•10 years ago
|
||
Comment 28•10 years ago
|
||
Assignee | ||
Comment 29•10 years ago
|
||
Comment 30•10 years ago
|
||
Assignee | ||
Comment 31•10 years ago
|
||
Assignee | ||
Comment 32•10 years ago
|
||
Assignee | ||
Comment 33•10 years ago
|
||
Assignee | ||
Comment 34•10 years ago
|
||
Comment 35•10 years ago
|
||
Comment 36•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Comment 37•7 years ago
|
||
Comment 39•6 years ago
|
||
The leave-open keyword is there and there is no activity for 6 months.
:hsinyi, maybe it's time to close this bug?
Comment 40•6 years ago
|
||
(In reply to Release mgmt bot [:sylvestre / :calixte / :marco for bugbug] from comment #39)
The leave-open keyword is there and there is no activity for 6 months.
:hsinyi, maybe it's time to close this bug?
no
Comment 41•6 years ago
|
||
The leave-open keyword is there and there is no activity for 6 months.
:hsinyi, maybe it's time to close this bug?
Comment 43•5 years ago
|
||
The leave-open keyword is there and there is no activity for 6 months.
:hsinyi, maybe it's time to close this bug?
Comment 45•5 years ago
|
||
The leave-open keyword is there and there is no activity for 6 months.
:jstutte, maybe it's time to close this bug?
Comment 46•5 years ago
|
||
Mirko, can you check if there is something left to do here?
Mirko, can you check if there is something left to do here?
According to #c37, there is.
Madhava (UX person) isn't working for Mozilla anymore. So we should ni? someone else from UX. Unfortunately, I don't know whom else to ni?. annevk: do you know someone?
Btw., it seems parts of the code were landed, but without test. It seems flipping the pref ("converter.html2txt.always_include_ruby") doesn't change the plaintext. Hence, what was landed might have been broken.
Comment 49•5 years ago
|
||
So assuming we fix what was broken the question to UX would be how to expose to the user the ability to copy ruby text along with the ruby base when copying plain text (and not HTML)? (See https://en.wikipedia.org/wiki/Ruby_character for context.) It seems we have at least these options:
- Not offer anything. (Status quo I assume?)
- Copy the ruby text only if only the ruby container was selected. (Suggested by roc above.)
- Offer a "Copy with ruby text" or equivalent contextmenu item. (It seems this would also require additional work to determine when it would be appropriate to display that if I'm reading the patches correctly.)
Markus, is this something you or your team could give guidance on?
Assignee | ||
Comment 50•5 years ago
|
||
I can have a look at why it was broken, and possibly fix it and add tests.
Assignee | ||
Updated•5 years ago
|
Comment 51•5 years ago
|
||
(In reply to Anne (:annevk) from comment #49)
Markus, is this something you or your team could give guidance on?
Hi Anne, sorry we can not offer to fully think through this if this is not part of our bigger initiatives as we are very resource constrained.
What I can do is leave you my thoughts and please don't feel blocked by us from moving forward with what you deem right.
So assuming we fix what was broken the question to UX would be how to expose to the user the ability to copy ruby text along with the ruby base when copying plain text (and not HTML)? (See https://en.wikipedia.org/wiki/Ruby_character for context.) It seems we have at least these options:
- Not offer anything. (Status quo I assume?)
we do quite a lot currently
- copy text with ruby in parenthesis in the wikipedia example. (more differentiation then Chrome or Edge make)
- copy text without ruby when selecting a full ruby block by tripple-clicking
- search for text without ruby when using context menu "search with..." entry
this might explain why we see a surprisingly high usage of that search access point in Japan - but never had an explanation for that.
- Copy the ruby text only if only the ruby container was selected. (Suggested by roc above.)
Looks like this is implemented already but very hard to discover.
As I don't know how often or widely this is used or what peoples needs are it is hard to judge if this should be more accessible in a way like suggested in 3.
- Offer a "Copy with ruby text" or equivalent contextmenu item. (It seems this would also require additional work to determine when it would be appropriate to display that if I'm reading the patches correctly.)
Assignee | ||
Comment 52•5 years ago
|
||
Btw., it seems parts of the code were landed, but without test. It seems flipping the pref ("converter.html2txt.always_include_ruby") doesn't change the plaintext. Hence, what was landed might have been broken.
I just tested it and it doesn't seem to be broken. It still seems to work as expected that when the pref is set, ruby text is always copied. But I'll see if I can add a test for it.
Assignee | ||
Comment 53•5 years ago
|
||
Assignee | ||
Comment 54•5 years ago
|
||
That's being said, I think the current behavior isn't very helpful. I would probably want to change it to something like, if all text nodes being selected are in ruby, then copy ruby annotation, because it's not always easy (actually it's quite hard) to select the whole ruby while leaving the selection position just fall inside ruby.
Comment 55•5 years ago
|
||
Comment 56•5 years ago
|
||
bugherder |
Comment 57•4 years ago
|
||
The leave-open keyword is there and there is no activity for 6 months.
:jstutte, maybe it's time to close this bug?
Comment 58•4 years ago
|
||
I read from several comments that there is still work to do here. But I have a hard time to understand the state here, it feels a bit as if we might rather want to file a new, better scoped bug and close this one?
Comment 59•4 years ago
|
||
(In reply to Jens Stutte [:jstutte] from comment #58)
I read from several comments that there is still work to do here. But I have a hard time to understand the state here, it feels a bit as if we might rather want to file a new, better scoped bug and close this one?
Well, Xidorn, how about to file a new file for follow up things?
Assignee | ||
Comment 60•4 years ago
|
||
Sounds good. Filed a new bug 1722215.
Assignee | ||
Updated•4 years ago
|
Description
•