Skip to content

feat: add Cyrillic, Arabic, and European babel support - #32

Merged
Oaklight merged 1 commit into
masterfrom
feat/multilingual-fonts
Nov 18, 2026
Merged

Oaklight merged 1 commit into
masterfrom
feat/multilingual-fonts

Conversation

@Oaklight

Copy link
Copy Markdown
Owner

Closes #1.

What

Science images (alpine-science*, debian-science*) now compile French, German, Spanish, Italian, Russian/Ukrainian, and Arabic documents.

Alpine Dockerfile.alpine-science:

  • texmf-dist-langfrench langgerman langspanish langitalian — babel files + hyphenation
  • texmf-dist-langcyrillic — T2A encoding + Russian babel support
  • texmf-dist-langarabic — polyglossia Arabic definitions + arabxetex
  • fontconfig, font-dejavu (Cyrillic-capable system font), font-noto-arabic
  • fc-cache -f

Debian Dockerfile.debian-science:

  • texlive-lang-french german spanish italian cyrillic arabic
  • fontconfig, fonts-dejavu-core, fonts-hosny-amiri
  • fc-cache -f

test/smoke.sh gains five sections and two font assertions: French (babel/pdflatex), Russian (T2A/pdflatex), Russian (xelatex + DejaVu), Arabic (xelatex + the font the variant ships), plus fc-list :lang=ar / :lang=ru checks that fail if the system fonts are missing from an image.

Both READMEs document the new capability. The old "Alpine images ship no system fonts" note is replaced: science images do, base images still do not.

Size (measured, not estimated)

Root filesystem delta measured by installing the package set on the current published science images:

Variant Delta
alpine-science 137 MiB
debian-science 95 MiB

The CN/JP/KR variants inherit the increase because they build on these images.

Verification

Built the two science images and their -cn children on this machine from the changed Dockerfiles, then ran the full extended test/smoke.sh against both -cn images:

  • tl-test-alpine-science-cn: all sections pass, including the new French/Russian/Arabic compiles and both font checks.
  • tl-test-debian-science-cn: all sections pass.

Also checked with the package set installed ad hoc on the published science images (without rebuilding): French/Russian/Russian-xelatex/Arabic all compile on both distributions.

PR CI builds and smoke-tests both base flavors, so it will re-run the extended smoke. The -cn compile paths are covered because docker-pr.yml builds alpine-science-cn and debian-science-cn on top and runs the same script.

Risk

  • Alpine texmf-dist-langarabic is 40 MiB; Arabic support is the largest single addition. If nobody needs Arabic, dropping that one package saves most of the Alpine increase. Say so and I will split it out.
  • texlive-lang-french on Debian pulls 191 MB of Babel/font data per dpkg, but the measured on-disk delta is 95 MiB total for all six languages plus fonts, because much of the TeX data deduplicates against texlive-fonts-extra already in the image.
  • The -cn images grow too; that is unavoidable while they derive from science. If size matters more than multilingual support, the alternative is separate -intl tags rather than growing the defaults.

@Oaklight
Oaklight merged commit b312644 into master Nov 18, 2026
6 checks passed
@Oaklight
Oaklight deleted the feat/multilingual-fonts branch November 18, 2026 19:27
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.

Add multilingual font support (Cyrillic, Arabic, etc.)

1 participant