Skip to main content

Interface: TextQuoteSelector

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

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:38

The exact text that was selected


prefix?

readonly optional prefix: string

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

Context before the selection (up to 32 chars)


suffix?

readonly optional suffix: string

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

Context after the selection (up to 32 chars)


type

readonly type: "TextQuoteSelector"

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

Selector type identifier