Skip to main content

Module segment

Module segment 

Source

Structs§

BlockTranslation
Segment
SegmentBlock
SegmentConstraints
SegmentContext
SegmentId
SegmentMetadata
SegmentSource
SegmentTextRun

Enums§

SegmentStatus

Constants§

CACHE_KEY_SCHEMA_VERSION
Bumped when the cache key derivation changes incompatibly.
INLINE_MARKER_SCHEMA_VERSION
Bumped when inline marker extraction (m/keep/ref) changes incompatibly. v2: depth-anchored block closing, lazily anchored text blocks for non-whitelist elements, addressable stray text nodes — block ordinals and marker assignments differ from v1 on affected books. v3: short per-block inline marker tags (<m1>...</m1>, <r1/>) replace verbose global ids (<m id="m000000_000">...</m>).
SEGMENT_SCHEMA_VERSION
Bumped when Segment / SegmentBlock layout changes incompatibly.

Functions§

block_kind_label
build_segments
compute_cache_namespace
Compute a cache namespace that scopes lookups to a single set of schema and segmentation parameters. Cached rows from a different namespace are not eligible for reuse.
compute_cache_namespace_v1