Skip to content

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

Description

@Oaklight

Problem

The alpine-science-cn image has zero system fonts (fc-list returns empty). It only ships Latin Modern OTF from TeX, which is enough for pdflatex with Western European languages but insufficient for non-Latin scripts.

Current status

Language group pdflatex xelatex/lualatex Status
French/German/Spanish/Italian ✅ babel + LM ✅ polyglossia + LM Works
Cyrillic (Russian, etc.) ❌ no T2A encoding ⚠️ polyglossia defs exist, no fonts Broken
Arabic ❌ no RTL support ⚠️ arabxetex exists, no fonts Broken

What's available

  • polyglossia.sty ✅ (full language definitions including ru, ar, etc.)
  • fontspec.sty
  • arabxetex.sty
  • babel-english, babel-japanese
  • babel-russian, babel-french, babel-german, etc. ❌
  • System fonts (Cyrillic, Arabic) ❌
  • T2A encoding (t2aenc.def) ❌

Proposed changes

  1. Install babel language packs: babel-french, babel-german, babel-spanish, babel-italian, babel-russian
  2. Install Cyrillic support: cyrillic package (provides T2A encoding)
  3. Install system fonts for xelatex/lualatex:
    • Noto fonts (covers Latin, Cyrillic, Arabic, and more) or
    • CMU (Computer Modern Unicode) for Cyrillic + Amiri/Scheherazade for Arabic
  4. Run fc-cache -fv after font installation

Priority

Low — current users are primarily CJK + English. This is for future multilingual support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions