Skip to content

Add Urdu Quran Transliteration to Devanagari Script#27

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

Add Urdu Quran Transliteration to Devanagari Script#27
Copilot wants to merge 2 commits into
copilot/add-ur-jalandhry-txt-filefrom
copilot/transliterate-urdu-to-devanagri

Conversation

Copilot AI commented Feb 27, 2026

Copy link
Copy Markdown
Contributor

Transliterates the complete Urdu Quran translation (quran_urdu_jalandhry.txt) into Devanagari script, producing a new output file. Verse number indicators and Surah titles are preserved as-is; only the Urdu (Arabic-script) text is converted.

New: src/urdu_to_devanagari.py

Character-level Urdu → Devanagari engine covering:

  • Full consonant map — all Arabic/Urdu letters including Urdu-specific (پ ٹ چ ڈ ڑ ک گ ہ ے ی ں)
  • Aspiration digraphsبھ→भ, کھ→ख, گھ→घ, چھ→छ, etc.
  • Long vowel absorptionا→ā, و→o/व (context-sensitive), ی→ī, ے→े, یٰ→ā
  • Word-initial diphthongsاور→और, اے→ए, ای→ई
  • Harakat support — fatha/zabar, kasra/zer, damma/pesh, sukun, shadda
  • Gemination — adjacent identical consonants insert halant ()
  • High-frequency word fixesالله→अल्लाह, ہے→है, ہیں→हैं, نہیں→नहीं
  • Arabic punctuation۔→।, ،→,, ؟→?

Updated: src/gentxtforquran.py

  • Imports transliterate_urdu_to_devanagari from the new module
  • Adds Urdu-Devanagari-SuraAyah format handler — regenerates the Devanagari file directly from data/ur.jalandhry.txt

New: output/quran_urdu_devanagari_jalandhry.txt

  • 6,582 lines matching source structure; 114 Surah titles unchanged; 6,236 verse [N:N] prefixes unchanged; 0 residual Arabic characters in verse text; 602,284 Devanagari characters generated

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

… output file

Co-authored-by: druvx13 <131332414+druvx13@users.noreply.github.com>
Copilot AI changed the title [WIP] Transliterate Urdu Quran text to Devanagari script Add Urdu Quran Transliteration to Devanagari Script Feb 27, 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