Re: [w3c/editing] Should we expose physical direction in Deletion commands? (for the case of RTL) (#133)

>Would it help if there was something like deleteCodePointBackward?
In short, it makes world confusing. Backspace behavior depends on platform, it is hard to implement simulating platform behavior for every language.

Until JS proves function to deal graphme, e.g. like what Swift, we should not provide low level primitive.

>Would the browser generally know whether the current script/language will ask fro deletion of grapheme or code point?
Yes, browser should know. Browsers implement UAX#29 with platform tailoring.


>This only has to do with deleteContentForward and deleteContentBackward, correct? Not deletion of words or lines, right?
Yes. But, I propose selection should be extend to both direction to cover grapheme. Deleting code point in grapheme makes user surprised, e.g. leave accent character in content.



---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/issues/133#issuecomment-236470249

Received on Monday, 1 August 2016 01:23:32 UTC