W3C home > Mailing lists > Public > public-openannotation@w3.org > May 2013

Re: oa:start and end

From: Kristof Csillag <csillag@hypothes.is>
Date: Thu, 23 May 2013 22:33:22 +0200
Message-ID: <519E7D12.6070307@hypothes.is>
To: public-openannotation@w3.org
Hi All,

I think the wording in the spec[1] is quite clear:

-------------
/The start can be thought of as the position of a cursor in the list.
Position 0 would be immediately before the first character, position 1
would be immediately before the second character, and so on. The start
character is thus included in the list, but the end character is not as
the cursor stops immediately before it. //
//For example, if the document was "abcdefghijklmnopqrstuvwxyz", the
start was 4, and the end was 7, then the selection would be "efg". //
/-------------

However, the description in the ontology[2] is not so clear:

-------------
/An oa:Selector which describes a range of text based on its start and
end positions./
-------------

Indeed, this section could be a bit more detailed, to convey the intent
more precisely.

I can confirm that the implementation in Hypothes.is (which is hopefully
going to land in Annotator soon) is in sync with the first spec, so it
behaves as Robert has described. (So from "abcdefghijkl", start:0, end:1
gives "a" .)

1:
http://www.openannotation.org/spec/core/specific.html#TextPositionSelector
2: http://www.w3.org/ns/oa#d4e667

Best wishes:

   Kristof Csillag


At 2013-05-23 21:50, Robert Sanderson wrote:
>
> Hi Sebastian,
>
> If that's true, then we need to fix the description in the spec[1], as
> it's intended to be the same as RFC 5147 using only characters mode,
> with some 
>
> To use "abcdefghijkl" as the document:
>
> start:0, end:1 should be "a"      -- start before the first character,
> end before the second character
> start:4, end:7 should be "efg" -- start before the 5th character (eg
> e) and end before the 8th character (eg h)
>
> So I *think* it's the same as your tools?
>
>
> 1: http://www.openannotation.org/spec/core/specific.html#TextPositionSelector
>
> Rob
>
>
Received on Friday, 24 May 2013 01:34:06 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:22:04 UTC