Open johann-petrak opened 4 years ago
This should return the text and the offset mapping. It should be possible to add placeholder text for specific annotation types, so instead of retrieving the text from the feature or underlying document, just add some constant text (e.g. a single space) if the annotation is encountered.
Possible signature: text, offsetmap = Document.virtualtext(...)
with parameters:
The offset map is just an array[int] with the same length as the returned text, containing the document offset for each text offset.
As in the stringannotation plugin but more flexible.
One or more texts, based on split anns, insert sep chars or not, insert if, insert from lambda