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

I propose:
 - Delete forward = delete grapheme
 - Delete backward = delete grapheme or code point depends on language and platform

>> Until  JS proves function to deal graphme, e.g. like what Swift,
> Could you try to rephrase that? I don't think I understood it.
In JS standard library, there are no functions to deal grapheme. 
When web devs want to implement "Delete Forward/Backward by Grapheme", they need to have library implementing UAX#29.

For "Delete Backward like Backsapce", web devs need to know platform convention about deleting one code point or grapheme by multiple code points.

Swift provides functions handling grapheme:
[Strings and Characters in Switf](https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/StringsAndCharacters.html)


---
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-236472598

Received on Monday, 1 August 2016 01:51:42 UTC