Skip to content

Add Urdu → Devanagari script transliteration for Jalandhry translation#26

Draft
Copilot wants to merge 2 commits into
copilot/add-ur-jalandhry-txt-filefrom
copilot/transliterate-urdu-to-devanagari
Draft

Add Urdu → Devanagari script transliteration for Jalandhry translation#26
Copilot wants to merge 2 commits into
copilot/add-ur-jalandhry-txt-filefrom
copilot/transliterate-urdu-to-devanagari

Conversation

Copilot AI commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

Adds pipeline support to transliterate the Urdu Quran text (Fateh Muhammad Jalandhry) from Nastaliq/Arabic script into Devanagari, producing output/quran_devanagari_jalandhry.txt.

New module: src/urdu_to_devanagari.py

Character-level transliteration engine covering:

  • Extended Devanagari for Urdu-specific phonemes: ق→क़, خ→ख़, غ→ग़, ز→ज़, ف→फ़
  • Aspirated consonant pairs via do-chashmi-he (ھ): ب+ھ→भ, پ+ھ→फ, ک+ھ→ख, گ+ھ→घ, etc.
  • Long vowel matras: ا→ा/अ, آ→आ, و→ो/व, ی→ी/य, ے→े/ए (consonant vs. vowel position distinguished)
  • Retroflex consonants: ٹ→ट, ڈ→ड, ڑ→ड़
  • Noon Ghunna ں→ं (anusvara), punctuation (،→,, ؟→?, ۔→।)
  • Verbatim preservation of , ؑ, ؓ

Changes to src/gentxtforquran.py

  • Imports transliterate_urdu from the new module
  • Adds ('data/ur.jalandhry.txt', 'output/quran_devanagari_jalandhry.txt', ..., 'Urdu-Devanagari') to the translations list
  • Adds header (Quran - Urdu Tarjuma (Devanagari Lipi)) and processing branch that pipes each ayah through transliterate_urdu() before writing

The generated file matches the source structure line-for-line (6582 lines, 114 Surahs), with no residual Arabic-script characters outside the intentionally preserved Unicode symbols.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: druvx13 <131332414+druvx13@users.noreply.github.com>
Copilot AI changed the title [WIP] Add transliteration of Urdu Quran to Devanagari script Add Urdu → Devanagari script transliteration for Jalandhry translation Feb 26, 2026
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.

2 participants