Skip to content

Generate output/hilali.pdf — Hilali-Khan English translation PDF (644 pages)#24

Draft
Copilot wants to merge 7 commits into
cairofrom
copilot/generate-hindi-mokhtasar-pdf
Draft

Generate output/hilali.pdf — Hilali-Khan English translation PDF (644 pages)#24
Copilot wants to merge 7 commits into
cairofrom
copilot/generate-hindi-mokhtasar-pdf

Conversation

Copilot AI commented Feb 25, 2026

Copy link
Copy Markdown
Contributor

The repository lacked a compiled PDF for the Hilali-Khan English translation (data/en.hilali.txt), while similar PDFs existed for other translations (Farooq, Suhail, Hindi Mokhtasar).

Changes

  • latex/hilali.tex — new XeLaTeX wrapper; Scheherazade font for Arabic (×2), English as main language, inputs generated quhilali.tex
  • src/gentexforquran.py — new generator block at end; parses sura|ayah|text pipe format from data/en.hilali.txt; escapes LaTeX specials ($, %, &, #, ^, ~) in English text; emits per-ayah Arabic + English pairs
  • output/hilali.pdf — compiled artifact: 644 pages, A4, 3.4 MB (2 XeLaTeX passes)
  • Makefileoutput/hilali.pdf added to all target with explicit dep on latex/quhilali.tex
  • .gitignore!output/hilali.pdf negation to track the PDF; latex/quhilali.tex excluded (generated)
  • README.md — updated data file tree, LaTeX tree, output tree, PDF table, data source table, build commands, and txt mapping table
  • CHANGELOG.md — entry added for Hilali & Khan PDF

Generator pattern

with open('latex/quhilali.tex', 'w', encoding='utf-8') as hilali_out, \
     open('data/en.hilali.txt', 'r', encoding='utf-8') as hilali_in:
    for sura_idx in range(114):
        ...
        raw_line = hilali_in.readline().rstrip('\n')
        text = raw_line.split('|', 2)[2] if raw_line.count('|') >= 2 else raw_line
        text = text.replace('$', '\\$').replace('%', '\\%').replace('&', '\\&')...
        hilali_out.write("\\flushleft{%s}\n" % text)

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…Tafsir)

Co-authored-by: druvx13 <131332414+druvx13@users.noreply.github.com>
Copilot AI changed the title [WIP] Generate hindi mokhtasar PDF from text files Add hindi_mokhtasar.pdf generation (Arabic + transliteration + Hindi Tafsir) Feb 25, 2026
…ion + Hindi Tafsir)

Co-authored-by: druvx13 <131332414+druvx13@users.noreply.github.com>
Copilot AI changed the title Add hindi_mokhtasar.pdf generation (Arabic + transliteration + Hindi Tafsir) Add hindi_mokhtasar.pdf — 925-page typeset PDF (Arabic + transliteration + Hindi Tafsir) Feb 25, 2026
… translation)

Co-authored-by: druvx13 <131332414+druvx13@users.noreply.github.com>
Copilot AI changed the title Add hindi_mokhtasar.pdf — 925-page typeset PDF (Arabic + transliteration + Hindi Tafsir) Add Hilali & Khan English translation PDF output Feb 25, 2026
Copilot AI and others added 3 commits February 25, 2026 11:04
…ranslation)

Co-authored-by: druvx13 <131332414+druvx13@users.noreply.github.com>
…EADME)

Co-authored-by: druvx13 <131332414+druvx13@users.noreply.github.com>
Co-authored-by: druvx13 <131332414+druvx13@users.noreply.github.com>
Copilot AI changed the title Add Hilali & Khan English translation PDF output Generate output/hilali.pdf — Hilali-Khan English translation PDF (644 pages) Feb 25, 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