DO NOT MERGE: fpdf2 greenfield planner spike v2 - #206
Draft
yyolk wants to merge 3 commits into
Draft
Conversation
Strip the Typst/parch tree and replace it with a tiny fpdf2-only package. Working press writes a 2026 Monday-week 106x144 mm planner with named dests, page links, and specimen/full-year artifacts. Co-authored-by: Joseph Chiocchi <joe@yolk.cc>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Full-year 2026 matrix 0→100 via /usr/bin/time -v. Nothing OOM'd. N=100 was 26s / 518 MiB. Spot-check day↔notes with pypdf. Co-authored-by: Joseph Chiocchi <joe@yolk.cc>
Vendor Liberation Fonts 2.1.5 (SIL OFL) and register Regular+Bold via add_font. Serif for titles and the cover year; sans for chrome, nav, and calendars. Labels use a fake smcp (uppercase at 0.76x with tracking). Regenerated specimen and previews. Co-authored-by: Joseph Chiocchi <joe@yolk.cc>
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.
DO NOT MERGE. Experimental throwaway spike. This branch will not be merged and may be deleted later.
Third greenfield planner spike (after fpdf2 v1 #204 and ReportLab #205). Source is rebuilt clean — no copy from those branches. Visual craft aims at #205’s tighter Helvetica-on-white (black header slab, washed/inverted nav, boxed mini-months, hairline rhythm) without parch chrome.
The Typst/parch application tree is stripped. Tiny Python package writes a yearly planner PDF with fpdf2 only.
Type (follow-up)
Helvetica is gone. Vendored Liberation Fonts 2.1.5 (SIL OFL 1.1) in
src/planner/fonts/— Regular + Bold for Sans and Serif.add_fontat construct.January 2026,Week 1,Thu 1 January, giant2026).smcp. Uppercase at 0.76× with 0.14 em tracking. Used on nav tabs, cover eyebrow/specs, header meta, month abbreviations, weekday letters, week gutter, and labels (notes/today/more). Documented inNOTES.md.Glance:
artifacts/preview/{cover,year,quarter,month,week,day}.pngandartifacts/preview/type-sample.png(cover + day).Generate
Defaults: year 2026, Monday week start, page 106 × 144 mm portrait.
--notes-pages N: 1 daily page + N dedicated notes pages per day.N=0(default) is the day page only, with its on-page notes panel.Notes-pages benchmark
Full-year 2026, Monday weeks.
/usr/bin/time -varoundpress(generate only). VM: 15 GiB RAM, 4 CPUs, no swap. Order 0 → 2 → 10 → 20 → 30 → 50 → 100. Nothing OOM’d. Last completed N=100. Died N: none. Full-year N≥2 PDFs not committed (N=100 was ~76 MB). Details:BENCH.md. Fonts follow-up did not re-run the N=100 matrix.Spot-check (
pypdf):day-2026-07-02andday-2026-07-02-notes-1exist for N≥2; day→notes-1 and notes-1→day annots resolve (N=2: pages 618↔619; N=100: 18454↔18455).vs #204 / #205 at N=100: v2 26 s / 518 MiB / 76 MB; v1 31 s / 629 MiB / 78 MB; ReportLab 35 s / 893 MiB / 109 MB. Same linear class, no Typst notes-slab cliff.
CI
Old Typst jobs replaced with a specimen generate stub. Do not treat as product CI.