Skip to content

feat(ebook): build Arabic EPUB and PDF - #111

Closed
M0-AR wants to merge 3 commits into
dlgrv:mainfrom
M0-AR:ebook/ar
Closed

M0-AR wants to merge 3 commits into
dlgrv:mainfrom
M0-AR:ebook/ar

Conversation

@M0-AR

@M0-AR M0-AR commented Oct 1, 2026

Copy link
Copy Markdown

Follows up the draft ar locale with downloadable ebooks.

  • EPUB: unique book id, spine page-progression-direction="rtl", dir="rtl" on package/html/body, logical CSS properties
  • PDF: Amiri/Naskh font fallback, direction-aware table alignment, mirrored RTL running head (rtl pandoc var)
  • CI: ar added to the ebooks matrix + publish set (10 → 12 assets); Amiri installed and asserted in the PDF step
  • Site: ar footer download strings (previously rendered undefined); all locale pages rebuilt
  • Docs: all six READMEs link HowToLiveBetter-ar.pdf/.epub from ebooks-latest

Verified locally: manifest tests 12/12, real ar EPUB unzipped and inspected, real ar PDF built with stock pandoc 3.11 + typst 0.15.1 (34 chapters, 17.2 MB, Amiri embedded, 131k Arabic strings extractable, /Lang set); en control builds unchanged.

M0-AR added 3 commits October 1, 2026 20:24
Add ar to the ebooks matrix and publish set (10 -> 12 assets). EPUB: unique book id, spine page-progression-direction rtl, dir rtl on package/html/body, logical CSS properties. PDF: Amiri/Naskh font fallback, direction-aware table alignment, mirrored RTL running head via rtl pandoc var. CI installs Amiri and asserts its presence. Tests cover EBOOK_IDS, isRtl, and the template RTL branch.
The ar I18N block missed fbDlT/fbDl, rendering undefined in the footer. Rebuild all locale pages.
Replace the ar row dashes with ebooks-latest download links in all six READMEs.
@dlgrv dlgrv mentioned this pull request Oct 2, 2026
3 of 4 tasks
@dlgrv dlgrv closed this in #122 Oct 2, 2026
@dlgrv

dlgrv commented Oct 2, 2026

Copy link
Copy Markdown
Owner

Huge thank you for contributing to this repository — we are incredibly grateful!

Your Arabic EPUB/PDF work is merged into main via #122 (this PR is closed as landed). The ebooks CI matrix now builds ar, and the README language tables link to the Arabic PDF/EPUB on ebooks-latest.

Thank you again for the care you put into RTL, fonts, and the download wiring. It means a lot.

OmarAglan pushed a commit to OmarAglan/HowToLiveBetter that referenced this pull request Oct 8, 2026
Wire RTL spine/dir, Amiri fonts in CI, and ebooks-latest ar assets.
Closes dlgrv#111.

Co-authored-by: Mohamad Al-Ashmar <moar.job@gmail.com>
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