Skip to content

feat(books): plant 心經 and 源氏物語 as the third and fourth books#10

Open
cubxxw wants to merge 1 commit into
mainfrom
feat/plant-xinjing-and-genji
Open

feat(books): plant 心經 and 源氏物語 as the third and fourth books#10
cubxxw wants to merge 1 commit into
mainfrom
feat/plant-xinjing-and-genji

Conversation

@cubxxw

@cubxxw cubxxw commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Plants two new books on the shelf alongside 道德經 and 金剛經, using the existing Book shape in src/books/types.ts — no schema changes, no new components, no routing changes. The current main (with the PR #1 金剛經 merge) already gave us everything needed: Bookshelf, BookDetail, Reading, theme.css, Header, useNightMode, and a Book type rich enough to carry biography + reading strata.

  • 心經 (src/books/xinjing.ts) — 般若 shelf, /book/xinjing
    • 十节传记: 般若类经典的印度成型 · 罗什 402 初译 · 玄奘 649 定本 · 怀仁集王羲之字 · 敦煌无名抄经生 · Edward Conze 1948 校梵本 · 铃木俊隆 1959 定为禅心早课 · Jan Nattier 1992「汉文伪经?」philological reversal (rendered as the special variant-comparison box: 代代相传的说法 vs 那体慧的文献学证据) · 一行禅师 2014 重译 · 2026 today
    • 阅读章: 玄奘定本全篇 — 观自在开经四句 · 色空互即 · 六根六尘 · 心无罣碍 · 揭谛咒, each with 罗什 vs 玄奘 vs modern-reader strata
  • 源氏物語 (src/books/genji.ts) — 物語 shelf, /book/genji
    • 十二节传记: 1008 藤原道长调笑 · 平安绘卷 · 1255 河内本编成,两个祖本并立 (rendered as the special box: 青表纸本 vs 河内本) · 本居宣长「物哀」 · 江户源氏香 · Waley 1925 六卷英译 · 谷崎润一郎三度重译 · やまと和纪《浅梦》十四年 · Royall Tyler 2001 · 2008 千年纪 · 2026 today
    • 阅读章: 第一帖桐壺 — 开卷三句 with 定家校本 / Waley / 宣长物哀 / やまと和纪 / 雲隠留白 各层

comingSoon in src/books/registry.ts drops the genji ghost (now planted); lunyu, zhuangzi, meditations remain as honest 待种下 ghosts.

The two books share the reader-ring cast (沈一苇 / 周菡 / 陈拾) already established on 金剛經's rings, so a reader's line can be followed across books later without a name migration.

Why this instead of PRs #3#8

PRs #3, #4, #5, #6, #7, #8 each attempted a version of "add a second/third book" between mid-July and the design-handoff era, but were all authored before PR #1 (金剛經) merged into main. The 金剛經 merge crystallized src/books/types.ts (with ShelfEntry + BioNode + BioRing + ReadingChapter + StrataLayer + CompareSpan), added src/pages/Bookshelf, BookDetail, Reading, theme.css, and a shared Header + useNightMode. That's exactly the surface those six PRs were trying to build from scratch — each with a different, incompatible Book shape and a different landing/detail page name.

Concretely, on today's main:

Rather than rebase each PR onto a schema that no longer needs them, this PR harvests the two truly valuable pieces (心经 content from #6, 源氏物语 content from #7) and expresses them in main's existing shape.

I recommend closing #3, #4, #5, #6, #7, #8 with a link back here — @cubxxw. Happy to do that once this lands.

Test plan

  • npm run build (tsc -b + vite build) — 46 modules transformed, no type errors, 226 KB JS / 20 KB CSS
  • Reviewer: hit / — confirm the 千年书架 axis now shows four live spines (道德經 -400 · 金剛經 200 · 心經 649 · 源氏物語 1008) and three ghost planks (論語 / 莊子 / Meditations)
  • Reviewer: hit /book/xinjing — biography reveals on scroll; the 1992 (Nattier) node renders the special comparison box; the today node shows three reader rings
  • Reviewer: hit /book/genji — same, with 1255 (河内本) as the fork node
  • Reviewer: hit /book/xinjing/read and /book/genji/read — time slider covers the min→max span, sentence-strata drawers unlock at their years

Adds two full `Book` records — biography timeline, reader rings, and one
cultivated reading chapter each — using the existing types from
`src/books/types.ts`. Registers them on the shelf and turns the 源氏物語
ghost in `comingSoon` into a live spine.

- **心經** (`src/books/xinjing.ts`) — 般若 shelf, `/book/xinjing`. 十节传记
  从般若类经典的印度成型,到罗什 402、玄奘 649 定本、怀仁集王羲之字、
  敦煌抄经生、Conze 1948 校梵本、铃木俊隆 1959 定为禅心早课、Jan Nattier
  1992 的「汉文伪经?」philological reversal (rendered as the `special`
  variant box) 、一行禅师 2014 重译、到 2026 的 today node. Reading
  chapter: 玄奘定本全篇 (开经四句 / 色空互即 / 六根六尘 / 心无罣碍 /
  揭谛咒), each with 罗什 vs 玄奘 vs 现代读者的地层.
- **源氏物語** (`src/books/genji.ts`) — 物語 shelf, `/book/genji`. 十二节
  从 1008 藤原道长调笑, 平安绘卷, 定家青表纸本 vs 河内本 (the two-recension
  fork rendered as the `special` box) , 本居宣长「物哀」, 江户源氏香,
  Waley 1925 六卷英译, 谷崎润一郎, やまと和纪《浅梦》十四年, Royall Tyler
  2001, 2008 千年纪. Reading chapter: 第一帖桐壺 opening three sentences
  with 定家校本、Waley 英译、宣长物哀、やまと和纪、雲隠留白 各层.

The two books share the reader-ring cast (沈一苇 / 周菡 / 陈拾) already
established on the diamondSutra rings, so a reader's line can be followed
across books later without a name migration.

`comingSoon` in `src/books/registry.ts` drops `genji`; `lunyu`, `zhuangzi`,
and `meditations` remain as honest 待种下 ghosts.

## Test plan

- [x] `npm run build` (tsc -b + vite build) passes; 46 modules, no type errors
- [ ] Reviewer: check `/book/xinjing` and `/book/genji` biography timelines
      reveal on scroll and the `special` variant-comparison boxes render on
      the 1992 (Nattier) and 1255 (河内本) nodes
- [ ] Reviewer: check `/book/xinjing/read` and `/book/genji/read` — time
      slider covers the min→max span, strata layers unlock at their years
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