w3c / clreq

Requirements for Chinese Text Layout
https://www.w3.org/International/clreq/
Other
729 stars 61 forks source link

Behavior of double-clicking on Chinese text #301

Open xfq opened 4 years ago

xfq commented 4 years ago

I wrote a test about double-clicking on Chinese text. See a summary of the result.

What would be the expectation of the average Chinese user for the case in https://github.com/w3c/character_phrase_tests/issues/31 ? If a user clicks inside 她哭了, (depending on where you click) should the browser highlights one of 她/哭/了, or 她/哭了? (The latter is the behavior of Chrome and Safari.)

c933103 commented 4 years ago

Speaking from my experience, I don't really have any expectation on double clicking behavior as they usually doesn't work. However, if it is to be made work, while I cannot answer whether 她/哭/了 or 她/哭了 is more desired, I can say in other sentence with same structure, 她/抵擋/了 is more favorable than 她/抵擋/了. That is because 抵擋 here is a vocabulary (verb), while the 了 is just another additional element that represent the starus of the word. Now, I can't personally tell whether the same citcunstances should also applies to one-character-words, because some might expect double click to select more than one character and include the supplementary element (狀語 or 補語) in selection in case the word is only a one-character-word? I don't know how most people expected it to function in such case.

xfq commented 4 years ago

We discussed this issue at the editors' call, but no conclusion yet: https://www.w3.org/2020/06/10-clreq-minutes.html#t09

xfq commented 6 months ago

Ideally, we should have the ability to customize dictionaries.

A bit related: https://github.com/tc39/proposal-intl-segmenter/issues/133