feat: add the paper-gloss annotation layer to the glossed page - #31
Merged
Conversation
Injected via paper-gloss/scripts/inject_annotations.py (ANNOTATE mode): select-to- highlight, per-highlight notes, a Notes panel, Markdown/JSON export and JSON import, persisted in localStorage under pg-annotations:forge-gap. Injection is content-neutral and was verified as such: <p> count 58 -> 58 (unchanged) gloss-term buttons 56 -> 56 (unchanged) per-term tally byte-identical before/after --check clean; second run byte-identical (idempotent) 101 data-pg-block markers stamped; existing ids untouched self-containment / theming / math / well-formedness all pass Republished in place to the existing Artifact URL (https://claude.ai/code/artifact/5595b09c-d8f0-4d93-8488-ac3e8966b1f9) — keeping the URL keeps the origin, which is what lets any annotations a reader already stored survive. The injected runtime is not new code here: it landed in claude-config PR #62 behind a 4-round adversarial review (1 critical + 6 should-fix found and fixed, all independently verified). This diff is that reviewed runtime applied mechanically by a tested injector, so it takes the trivial-diff escape hatch rather than its own round. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TBPk1b1UkoVqSCBpeMib3f
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the highlight-and-note annotation layer (select-to-highlight, notes, Notes panel, Markdown/JSON export, JSON import) to the glossed page, injected mechanically by
paper-gloss/scripts/inject_annotations.py.Content-neutral, verified:
<p>58→58,.gloss-term56→56, per-term tally byte-identical,--checkclean, second run byte-identical, 101 block markers stamped, existing ids untouched. Self-containment / theming / math / well-formedness all pass.Republished in place to the existing Artifact URL, so any annotations a reader already stored survive the redeploy.
The runtime itself landed in claude-config PR #62 behind a 4-round adversarial review; this diff applies it mechanically, so it takes the trivial-diff escape hatch.