Divan-owned order: the export follows arrangements published in Divan #2

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

For anas/divan#41 (divan PR: arranging content). Builds on #1 (Divan-owned content), so merge #1 first.

  • owned_order() in export_divan.py: if divan/<category url>.order exists, the category's sub-sections and works are listed in that order.
    • Each line is <last part of the url> <title>.
    • Unlisted items, e.g. a work new on Wikisource, keep their place after the listed ones (stable sort).
  • divan/README.md: documents the .order files.
  • test_divan_order.py: no file means no change; with a file, the listed items come first and a new one comes last.

Validation

  • python3 test_divan_order.py and python3 test_ghazal_marks.py pass.
  • A full export without order files changes nothing except the timestamp.

🤖 Generated with Claude Code

For anas/divan#41 (divan PR: arranging content). **Builds on #1** (Divan-owned content), so merge #1 first. - `owned_order()` in `export_divan.py`: if `divan/<category url>.order` exists, the category's sub-sections and works are listed in that order. - Each line is `<last part of the url> <title>`. - Unlisted items, e.g. a work new on Wikisource, keep their place after the listed ones (stable sort). - `divan/README.md`: documents the `.order` files. - `test_divan_order.py`: no file means no change; with a file, the listed items come first and a new one comes last. **Validation** - `python3 test_divan_order.py` and `python3 test_ghazal_marks.py` pass. - A full export without order files changes nothing except the timestamp. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
anas added 2 commits 2026-10-09 12:02:55 +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>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
anas merged commit 96529bdd88 into main 2026-10-09 12:33:16 +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#2
No description provided.