Skip to content

Add the sample-first YomPUB Core draft and runnable reader - #11

Merged
yo4e merged 2 commits into
mainfrom
codex/phase1-core-prototype
Oct 20, 2026
Merged

yo4e merged 2 commits into
mainfrom
codex/phase1-core-prototype

Conversation

@yo4e

@yo4e yo4e commented Oct 20, 2026

Copy link
Copy Markdown
Owner

What changes

YomPUB was documentation-only. This adds the first runnable source → semantic AST → reader prototype, using three deliberately small books: horizontal English, Japanese vertical text with ruby, and Arabic RTL with isolated multilingual runs.

  • Record the sample-derived Core boundary and a normative 0.1.0-draft.1 proposal. Keep language, direction and writing mode independent; derive TOC and internal targets from headings.
  • Add a parser, local CLI validator/AST export and browser reader. Preserve ruby, alt/cover and language-run semantics; reject invalid Core input without silently dropping it. Loading cancellation and failed loads preserve the previous book.
  • Document clone/install/start commands, samples, API entry points, verification scope and deferred features. Reconcile the roadmap with Issue Phase 1: sample books first, then lock the minimal YomPUB Core #9.
  • Add read-only GitHub Actions checks for PRs and main. No deployment or release workflow.

Related to #9. Issue #8's authoring app remains deferred. This is an experimental prototype, not a compatibility promise or a formal specification release.

Validation

At head be48a06427f879f37e580e6a4abc650e31969c82, a separate temporary checkout passed:

  • npm run check: lint, strict JS/JSDoc typecheck, 95 Node tests and build. One test checks all 652 upstream CommonMark examples with only empty-blockquote serialization whitespace normalized.
  • CLI validation of all three sample folders.
  • CI=1 npm run test:ui: 24 headless scenarios across Chromium desktop/mobile emulation and WebKit desktop, including real layout, local folders, source/AST downloads, repeated switching, running-worker cancellation and failure recovery.

CI repeats these checks on Ubuntu 24.04 / Node 22. The retained screenshots are the initial macOS evidence; current CI results are attached to the checked commit.

Remaining limits

Independent implementation, native-speaker RTL review, full screen-reader/physical-device evaluation and longer real-book reading are still open. CLI checks image signatures; the viewer performs actual decoding. ZIP, EPUB/PDF export, footnotes/captions and an integrated editor are outside this slice. See docs/VALIDATION.md for exact limits.

@yo4e
yo4e marked this pull request as ready for review October 20, 2026 06:45
@yo4e
yo4e merged commit eac3216 into main Oct 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant