Skip to main content

Interface: TextQuoteSelector

Defined in: src/types/models/annotation.ts:35

W3C TextQuoteSelector for resilient text matching.

Remarks​

Identifies text by copying the exact phrase plus surrounding context. This allows matching even if the document is slightly modified.

See​

W3C TextQuoteSelector

Properties​

exact​

readonly exact: string

Defined in: src/types/models/annotation.ts:39

The exact text that was selected


prefix?​

readonly optional prefix: string

Defined in: src/types/models/annotation.ts:41

Context before the selection (up to 32 chars)


suffix?​

readonly optional suffix: string

Defined in: src/types/models/annotation.ts:43

Context after the selection (up to 32 chars)


type​

readonly type: "TextQuoteSelector"

Defined in: src/types/models/annotation.ts:37

Selector type identifier