Steps to reproduce:
1.Open a page with VE
2.Place a cursor after a text like "sub-heading 1"
3.Open the link inspector
Observe that the character 1 is not getting selected and the link inspector is opening at the end of the line
Ryasmeen | |
Dec 10 2014, 10:39 PM |
F20734: Screen_Shot_2014-12-10_at_2.39.01_PM.png | |
Dec 10 2014, 10:39 PM |
Steps to reproduce:
1.Open a page with VE
2.Place a cursor after a text like "sub-heading 1"
3.Open the link inspector
Observe that the character 1 is not getting selected and the link inspector is opening at the end of the line
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
[BREAKING CHANGE] Use Unicode character class to calculate word expansions | VisualEditor/VisualEditor | master | +101 -29 |
I spoke to David about this issue, there is definitely something off about how we account for word boundary and wordbreaks.
The word break calculation is correct:
Sub | heading | 1 | ||
But our word expansion logic avoids wrapping single length ranges due to the following cases:
Double | Space | ||
中 | 國 | 人 |
UnicodeJS change was released in v0.1.3, which is now in VisualEditor core master following https://gerrit.wikimedia.org/r/188729 – what's next?
Change 197661 had a related patch set uploaded (by Divec):
WIP: BREAKING CHANGE: Use unicode character class to calculate word expansions
Change 197661 merged by jenkins-bot:
[BREAKING CHANGE] Use Unicode character class to calculate word expansions