Changes between Version 6 and Version 7 of json-annotation-format
- Timestamp:
- Nov 22, 2012, 2:38:52 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
json-annotation-format
v6 v7 43 43 44 44 45 == Image area==45 == Image selection == 46 46 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]].47 Annotations 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]]. 48 48 49 49 The possible shape forms are … … 70 70 }] 71 71 }}} 72 73 74 == Text selection == 75 76 Annotations of text have a "ranges" member, specifying a list of text ranges. 77 78 The 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 }}}