from dedoc.data_structures.annotation import Annotation
[docs]class LinkedTextAnnotation(Annotation):
"""
This annotation is used when some text is linked to the line or its part.
For example, line can contain a number that refers the footnote - the text of this footnote will be the value of this annotation.
"""
name = "linked_text"
[docs] def __init__(self, start: int, end: int, value: str) -> None:
"""
:param start: start of the annotated text
:param end: end of the annotated text (not included)
:param value: text, linked to given one, for example text of the footnote
"""
super().__init__(start=start, end=end, name=LinkedTextAnnotation.name, value=value, is_mergeable=False)