Can not switch to a Selection that spans more than one Sentence
The Sentence "Here's the full regex: "/^an?|the (.+?) (is|was) an? (.+?)$/".
" is recognized as two sentences.
-
Here's the full regex: "/^an?|the (.+?) (is|was) an? (.+?)$/".
-
Here's the full regex:
In the QPT this leads to the behavior that it does not switch to the new Selection.
public Selection suggestNewSelection(Selection oldSelection, Selection newSelection) {
if (supportsMultiTokenSelection() && newSelection.coversMultipleSentences()) {
return null;
}
return newSelection;
}
In the AnnotationBehavior suggestNewSelection(...) returns null.
Is there a certain reason why a Selection covering multiple sentences is not allowed?