Last modified: 2013-04-16 21:29:56 UTC
Currently we can't use the UnicodeJS.wordbreak library to emulate word skipping (ctrl+arrow / alt+arrow) functionality as wordbreaks appear either side of whitespace and between multiple whitespaces: |One| |Two| | |Three| Moving forwards we expect the cursor to stop in the following positions: One| Two| Three| Moving backwards we expect: |One |Two |Three
Looking at other implementations, sepcifically OpenOffice, they have an "ignore whitespace" mode in their nextWord function: https://svn.apache.org/repos/asf/incubator/ooo/symphony/trunk/main/i18npool/source/breakiterator/breakiterator_unicode.cxx which calls an is_whitepsace function, which is defined as: http://www.icu-project.org/apiref/icu4c/uchar_8h.html#a5cef869b23e8d8e649963457cccca68e
I have added better support for skipping white spaces in 4th patch set: https://gerrit.wikimedia.org/r/#/c/57076/
Actually Ed is still working on it.
Related URL: https://gerrit.wikimedia.org/r/58868 (Gerrit Change I6b2700d65476c4d34ba4a01a88382d7af8e736fb)
Now fixed.