Repository navigation
feat: add Cyrillic, Arabic, and European babel support - #32
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 + hyphenationtexmf-dist-langcyrillic— T2A encoding + Russian babel supporttexmf-dist-langarabic— polyglossia Arabic definitions + arabxetexfontconfig,font-dejavu(Cyrillic-capable system font),font-noto-arabicfc-cache -fDebian
Dockerfile.debian-science:texlive-lang-french german spanish italian cyrillic arabicfontconfig,fonts-dejavu-core,fonts-hosny-amirifc-cache -ftest/smoke.shgains five sections and two font assertions: French (babel/pdflatex), Russian (T2A/pdflatex), Russian (xelatex + DejaVu), Arabic (xelatex + the font the variant ships), plusfc-list :lang=ar/:lang=ruchecks 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:
alpine-sciencedebian-scienceThe CN/JP/KR variants inherit the increase because they build on these images.
Verification
Built the two science images and their
-cnchildren on this machine from the changed Dockerfiles, then ran the full extendedtest/smoke.shagainst both-cnimages: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
-cncompile paths are covered becausedocker-pr.ymlbuildsalpine-science-cnanddebian-science-cnon top and runs the same script.Risk
texmf-dist-langarabicis 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-frenchon Debian pulls 191 MB of Babel/font data perdpkg, but the measured on-disk delta is 95 MiB total for all six languages plus fonts, because much of the TeX data deduplicates againsttexlive-fonts-extraalready in the image.-cnimages grow too; that is unavoidable while they derive from science. If size matters more than multilingual support, the alternative is separate-intltags rather than growing the defaults.