Open uskudarli opened 8 years ago
The annotator extension should support all selectors, but since we are talking about text selections I'll give example to those :
Considering a text "abcxyzdef", and assuming we want to select just three characters "xyz".
{ "type": "TextQuoteSelector", "exact": "xyz", "prefix": "abc", "suffix": " def" }
However, while using TextPosition selector, it is enough to define the start and end each representing the number of bytes respectively for start and end, where the first byte of the string is assumed to be starting from 0.
{ "type": "TextPositionSelector", "start": 3, "end": 6 }
One very important note for both of the selectors, while working with HTML content, the selectors discard html elements.
Berat,
Is it possible for you to implement TextQuoteSelector for the Berlin Demo?
If not, Emrah's work will not be able to use the annotations we create the the Crazy Annotator extension.
Just 1 level TextQuoteSelector
In order to work with the renarration extension, the XPath selector with prefix and suffix is needed.
Right now it is using TextPositionSelector.
The current demo (Berlin Demo) needs XPath. Any chance we can get a version that works with XPath before demo?
Or, is there an easy way to translate to XPath with TextQuoteSelector (see comment by Emrah below) for Renarration example.
(Need Emrah to write this better: Done, Thanks Emrah!)