Changes between Version 6 and Version 7 of json-annotation-format


Ignore:
Timestamp:
Nov 22, 2012, 2:38:52 PM (11 years ago)
Author:
casties
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • json-annotation-format

    v6 v7  
    4343
    4444
    45 == Image area ==
     45== Image selection ==
    4646
    47 Annotations of image areas have a "shapes" member, specifying a list of shapes on the image. The shape definitions are based on the [[http://www.w3.org/TR/SVG/shapes.html|SVG shape definitions]].
     47Annotations of images have a "shapes" member, specifying a list of shapes on the image. The shape definitions are based on the [[http://www.w3.org/TR/SVG/shapes.html|SVG shape definitions]].
    4848
    4949The possible shape forms are
     
    7070}]
    7171}}}
     72
     73
     74== Text selection ==
     75
     76Annotations of text have a "ranges" member, specifying a list of text ranges.
     77
     78The text range definitions use an XPath-like path to identify the '''start''' and '''end''' element and '''startOffset''' and '''endOffset''' character offsets inside the element.
     79
     80{{{
     81"ranges": [{
     82  "start" : "/div[1]/div[2]/p[4]/span[1]",
     83  "startOffset" : "16",
     84  "end" : "/div[1]/div[2]/p[4]/span[1]",
     85  "endOffset" : "33"
     86}]
     87}}}