Skip to content

How to modify annotation offset? #12

@10zinten

Description

@10zinten

Hey, guys!

I am one of the developer working on adopting STAM in OpenPecha. Currently, I am trying to implement this and I am facing an issue with modifying offset of an annotation.

Current output:

...
>>>str(annotation.offset())
'3:5'
>>>annotation.offset().shift(1)
>>>str(annotation.offset())
'3:5'

As you can see the offset remain same even after performing shift.

Expected output:

...
>>>str(annotation.offset())
'3:5'
>>>annotation.offset().shift(1)
>>>str(annotation.offset())
'4:6'

How to achieve this in STAM?

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions