Treora commented on issue #60:
URL: 
https://github.com/apache/incubator-annotator/issues/60#issuecomment-686651856


   > Besides making a parser for the fragment identifier syntax itself, I 
suppose we would want to implement the algorithm for resolving it. May well be 
worthwhile if others are not already doing this!
   
   Update: last month, I decided to take a stab at this and implemented the 
algorithm in TypeScript: <https://code.treora.com/gerben/text-fragments-ts>
   
   See also: <https://github.com/WICG/scroll-to-text-fragment/issues/135>
   
   Perhaps it could some day be considered adopting this implementation in 
Annotator, but I suppose it is a bit early as the spec is still in flux, and so 
far my impression is that few people (want to) adopt it.
   
   I expect that a significant disadvantage for many annotation-ish tools would 
be that, as it is currently defined, the expressivity of the text fragment 
identifier is limited by only being able to point at whole words. See my [issue 
#37](https://github.com/WICG/scroll-to-text-fragment/issues/137) on the spec’s 
repo.
   
   To use the fragment syntax as a standard for use within, and exchange 
between, annotation softwares, one could of course choose to interpret it 
differently (except when activating a ‘browser compat mode’), e.g. as a WA 
RangeSelector containing two TextQuoteSelectors. But that might lead to a 
misleading situation of half-interoperability which seems better to avoid.
   
   Nevertheless, for the goal of making annotations (ex)portable from 
annotation tools, it could be valuable to have a tool that helps convert (where 
possible) annotation targets to browser-compatible text-fragment URLs. And vice 
versa to import them.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to