OSDN Git Service

Fix for #1455 (Hyphenated words reported incorrectly in standard Windows Edit control...
authorMichael Curran <mick@kulgan.net>
Mon, 6 Jun 2011 02:03:10 +0000 (12:03 +1000)
committerMichael Curran <mick@kulgan.net>
Mon, 6 Jun 2011 02:03:10 +0000 (12:03 +1000)
commit4a976c89260bde2d58d502d43922c1334cc1c6e2
treedfbf2e1d452c4e6257494c27790f23b494020cae
parent331b20bf7343980381c6d66bf46b2903c4fc6175
Fix for #1455 (Hyphenated words reported incorrectly in standard Windows Edit controls). for now just revert changeset:main,4148 as although this was correct for XP edit controls with out uniscribe support, it was incorrect for all later Operating systems and most likely xP with unicscribe support (east asian language pack installed). An alternative way this could be implemented in the future is to first detect whether uniscribe is being used (not sure how), and if it is, then use ScriptItemize / ScriptBreak to generate an array of script logic attribute structures, and check for which characters allow  word stop on. We could also consider using this inside offsetstextInfo at a low level so that virtualBuffers can make use of better word navigation.
source/NVDAObjects/window/edit.py