Skip to main content

Module accessibility

Module accessibility 

Source
Expand description

Bounded semantic input for a native accessibility bridge, not OS registration or evidence of screen-reader support. Text follows structural IR order, not inferred visual reading order. Keys are session-local revision + address; they deliberately make no cross-revision identity promise.

Structs§

NativeAccessibilityNode
NativeAccessibilityNodeGeometry
NativeAccessibilityRange
Half-open top-level body paragraph range, including its table-cell subtrees. A page filter is intentionally absent: paragraphs can span multiple pages.
NativeAccessibilityRequest
NativeAccessibilitySelectionGeometry
NativeAccessibilitySnapshot

Enums§

NativeAccessibilityGeometryStatus
NativeAccessibilityLimitation
NativeAccessibilityRole

Constants§

MAX_ACCESSIBILITY_DEPTH
MAX_ACCESSIBILITY_GEOMETRY_QUERIES
MAX_ACCESSIBILITY_GEOMETRY_TEXT_BYTES
Optional geometry uses existing core queries, not a layout CPU/time budget. Keep each queried paragraph and selection bounded before calling them.
MAX_ACCESSIBILITY_NODES
MAX_ACCESSIBILITY_SELECTION_PARAGRAPHS
MAX_ACCESSIBILITY_SELECTION_RECTS
MAX_ACCESSIBILITY_SELECTION_SCALARS
MAX_ACCESSIBILITY_TEXT_BYTES
MAX_ACCESSIBILITY_WORK_ITEMS

Functions§

native_scalar_to_utf16
Convert decoded text scalar boundaries to OS UTF-16 units. These are not HWP raw char_offsets (which can include control slots). Inputs are <=1 MiB UTF-8.
native_utf16_to_scalar
Reject UTF-16 offsets inside a surrogate pair, rather than rounding to a neighboring scalar. Combining marks remain distinct scalars, not graphemes.