feat(07): close native text pagination semantics loop

This commit is contained in:
shen
2026-05-22 20:39:26 +08:00
parent 21c8bbb23a
commit d7339aa255
15 changed files with 722 additions and 22 deletions
@@ -0,0 +1,20 @@
---
phase: 7
plan: 07-01
status: complete
requirements-completed:
- ATTR-01
- ATTR-03
updated: 2026-05-22
---
# 07-01 Summary
- Added explicit native-text semantic types and attributed-string keys for block kinds, pagination hints, and attachment placement.
- Extended chapter preprocessing to inject semantic markers for WXRead-style hints such as `avoidPageBreakInside`, `pageBreakBefore`, `pageBreakAfter`, `pageRelate`, and image/body block semantics.
- Renderer post-processing now strips those markers and applies real attributes before fragment-offset extraction, so semantic metadata is preserved without breaking the existing offset contract.
## Verification
- `build_sim` for `ReadViewDemo` on iOS Simulator succeeded on 2026-05-22.