Commit Graph

9 Commits

Author SHA1 Message Date
Anas Rashid
b46fdb5ca9 Ghazal marks: radif, matla, maqta (takhallus sign) and radif letter for divan contents
Some checks are pending
Wikisource sync / sync (push) Waiting to run
Grouping and order now read the radif from the first couplet's second line, which carries it
even when the source lacks the matla.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 21:27:22 +02:00
Anas Rashid
7ad39cd96a Treat works in poetry sections as poetry even without <poem> markup
Some checks are pending
Wikisource sync / sync (push) Waiting to run
Six Mir ghazals were stored as prose, so their couplets were merged into paragraphs.
Classification now also uses the section (غزل، نظم، رباعی…); a fix-up pass reclassifies
stored works on every sync.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 20:51:41 +02:00
Anas Rashid
256800c577 Published order for books and poems; divan (radif letter) order for ghazals
Some checks are pending
Wikisource sync / sync (push) Waiting to run
- wikisource.py: record each work's position in the author page list (ord), refreshed on
  every sync; children of index pages keep their parent's position
- export: walk works by ord; books in order of first appearance (Iqbal: Bang-e-Dra,
  Bal-e-Jibril, Zarb-e-Kalim, Armaghan-e-Hijaz)
- ghazal sections in divan order: last letter of the radif (opening line), alif..ye;
  ties keep source order; Iqbal keeps his books' published order

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 20:45:45 +02:00
Anas Rashid
406e7c910b Rename to Divan (Roman script): divan.db, export_divan.py, divan_ids, repo links
Ids unchanged (export identical). Urdu دیوان unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 20:02:06 +02:00
Anas Rashid
120e278054 Merge duplicate author pages via resolved Wikipedia article (#7)
- author pages linking the same article (after redirects) become one poet; aliases kept in
  poet_aliases so later syncs map new works to the canonical poet
- normalise ':ur:X' Wikipedia links
- result: مرزا اسد اللہ خان غالب merged into مرزا غالب (316 works); 383 poets

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 00:32:32 +02:00
Anas Rashid
eb4e74f0a1 Rename export_ganjoor.py -> export_divan.py, ganjoor_ids -> divan_ids; Language ur-PK
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 23:51:03 +02:00
Anas Rashid
47a5e454e4 Ganjoor-compatible export (manifest.json, poets/, index/)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 23:05:14 +02:00
Anas Rashid
ebc73d0d53 Urdu only: drop English Wikipedia intros (intro_ur -> intro)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 22:52:15 +02:00
Anas Rashid
81ab6a3331 Divan: classical Urdu poetry & prose from Urdu Wikisource
384 authors, 11,087 works (10,446 poetry, 641 prose), FTS5 search,
JSONL export, daily Gitea Actions sync.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 22:48:40 +02:00