Divan-owned content takes precedence over Wikisource #1

Merged
anas merged 1 commits from feature/divan-owned-content into main 2026-10-09 12:33:09 +00:00
Owner

Part of anas/divan#30 (with anas/divan's PR of the same name).

  • New divan/ folder: works edited in Divan, as <work url>.dtx (the readable source, one misra or paragraph per line) and <work url>.json (generated by the Divan app: title, verses, who edited and when). See divan/README.md.

  • export_divan.py:

    • uses Divan's version of a work instead of the Wikisource text whenever divan/<work url>.json exists;
    • marks the work DivanOwned with Edited (who, when);
    • computes radif, matla, maqta and the contents order from Divan's text.

    The Wikisource sync keeps updating everything else.

  • Tested end to end: a Divan edit to a Ghalib ghazal survived a full export with its marks recomputed; removing it brought back the Wikisource text. The test edit is not part of this PR.

🤖 Generated with Claude Code

Part of anas/divan#30 (with anas/divan's PR of the same name). - New `divan/` folder: works edited in Divan, as `<work url>.dtx` (the readable source, one misra or paragraph per line) and `<work url>.json` (generated by the Divan app: title, verses, who edited and when). See `divan/README.md`. - `export_divan.py`: - uses Divan's version of a work instead of the Wikisource text whenever `divan/<work url>.json` exists; - marks the work `DivanOwned` with `Edited` (who, when); - computes radif, matla, maqta and the contents order from Divan's text. The Wikisource sync keeps updating everything else. - Tested end to end: a Divan edit to a Ghalib ghazal survived a full export with its marks recomputed; removing it brought back the Wikisource text. The test edit is not part of this PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
anas added 1 commit 2026-10-08 22:22:51 +00:00
Divan-owned content (#30): works edited in Divan take precedence over Wikisource
Some checks failed
Wikisource sync / sync (push) Has been cancelled
49f9fe9f38
divan/<work url>.dtx (readable source) and .json (generated by the Divan app) override the
Wikisource text in the export; such works are marked DivanOwned with who edited them and when.
Radif, matla and maqta are computed from Divan's verses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
anas merged commit 1f8373ab2e into main 2026-10-09 12:33:09 +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#1
No description provided.