Divan-owned poet details and book titles in the export #6

Merged
anas merged 1 commits from poet-book-details into main 2026-10-09 23:11:23 +00:00
Owner

For divan#32 (poet and book editors).

  • export_divan.py now reads divan/<poet url>.poet (name, pen name, CE years, intro) and divan/<book url>.book (title), written when such an edit is published in Divan, and prefers them to Wikisource's and Wikipedia's.
  • This is the same way works (.dtx/.json) and arrangements (.order) are kept.
  • The pen name goes into poet.json and the manifest. The title goes into the book's _cat.json and its parent's list.
  • test_divan_details.py tests the parsing.
  • Checked with a full export on a copy, with a sample p238.poet and p238/shaeri/c641.book: only the poet file, the section, its parent and the manifest changed, each with the new values. The run takes about 5 seconds.

🤖 Generated with Claude Code

For divan#32 (poet and book editors). - `export_divan.py` now reads `divan/<poet url>.poet` (name, pen name, CE years, intro) and `divan/<book url>.book` (title), written when such an edit is published in Divan, and prefers them to Wikisource's and Wikipedia's. - This is the same way works (`.dtx`/`.json`) and arrangements (`.order`) are kept. - The pen name goes into `poet.json` and the manifest. The title goes into the book's `_cat.json` and its parent's list. - `test_divan_details.py` tests the parsing. - Checked with a full export on a copy, with a sample `p238.poet` and `p238/shaeri/c641.book`: only the poet file, the section, its parent and the manifest changed, each with the new values. The run takes about 5 seconds. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
anas added 1 commit 2026-10-09 23:06:39 +00:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
anas merged commit 2f123185a2 into main 2026-10-09 23:11:23 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: anas/divan-data#6
No description provided.