On 27. Oct 2020, at 11:56, Peter Klügl <[email protected]> wrote:
>
> your new defintion "Left wide, right wide" is fine for me. +1
>
> (Symmetry is really important in my opinion, much more important than
> the actual specification of predicates for zero-length annotations.)
Actually, I found another potential oddity...
So we say that a zero-width interval is always covered by, e.g. in this
case:
X:[5,5] Y[5,10], then X is covered by Y.
So when I do a select.preceding(Y), I don't want X to be returned.
Consequently, if I do a select.following(X), I don't want Y to be returned.
However, when I want to find "all annotations following 5", then I would
want Y to be returned - don't I?. So
select.following([5,5]) = {}
select.following(5) == select.following([0,5]) = {Y}
select.preceding([10,10]) = {}
select.preceding(10) == select.preceding([10,MAX_INT]) = {Y}
That might be seen as a bit of an oddity, but I think it still makes sense.
Cheers,
-- Richard