Stefan Schimanski schrieb:
Slight correction of the EPM patch: there are these exceptions of the logic to avoid double spaces:

abc [WERBEH|] def"
abc [ WERBEH]|def"
abc|[WERBEH ]def"
abc[|WERBEH] def"

All 4 should be possible, i.e. a space should be inserted. The last two don't fulfill the condition that the previous character is a space, so they are accepted anyway. The first two have the property that we are on a bidi boundary and the cursor boundary flag is false. So the following patch is implementing that.
Stefan,

could you please check this code also with change tracking activated?

Please note that all of these spaces can in principle be (logically) deleted spaces. Inevitably, this increases the number of possible combinations :-(

(I don't think that we can achieve a perfect solution in CT mode with a reasonable amount of code. However, your algorithm should not prohibit the insertion of a space.

Michael

Reply via email to