The URL on gist.github.com doesn't work, and the current instructions
seem to indicate that the template should be installed in two files
rather than just one.
Wire Chinese (Simplified) into build-book.sh as a first-class target
alongside en_US, pt_BR, and es_ES, and teach setup_translation.sh how
to install the system packages that translated editions need.
build-book.sh:
- Add zh_CN to LANGUAGES_ALL and to every language helper
(get_chapters_dir, get_appendices_dir, get_pandoc_lang,
get_lang_display, normalize_lang) so it flows through the
existing per-language build path with no special-casing.
- Wire Noto CJK fonts into the PDF build for zh_CN via the
Eisvogel template's CJKmainfont/CJKsansfont/CJKmonofont
variables (which auto-load xeCJK), plus a mainfont override
so Latin text in the body matches the surrounding Chinese.
The Latin defaults from metadata.yaml have no CJK glyphs,
so this is required for the zh_CN PDF to render.
- Refresh help text, error messages, output-file listing,
CONTENT SOURCES, EXAMPLES, and REQUIREMENTS to include
zh_CN and the CJK font / texlive-lang-chinese dependencies.
setup_translation.sh:
- Add install_language_dependencies(), which maps a language
code to the apt packages needed to build that edition:
Noto CJK fonts + texlive-lang-chinese/cjk for zh*, the
Japanese and Korean equivalents for ja/ko, and the
matching texlive-lang-* packs for pt/es/fr/de/it/ru.
- Print the exact apt-get and fc-cache commands before
running them so they can be reproduced manually, and
fall back cleanly when apt-get is unavailable (non-Debian
hosts) or sudo credentials are not cached.
- Add a --skip-deps flag for CI and unprivileged environments
that just want the directory scaffolding without touching
system packages.
- Update usage/help to document --skip-deps and the new
zh_CN example.
Introduce a preliminary Spanish version of the book, translated
with AI assistance using the qwen3.6:35b-a3b-bf16 model.
Note: This content has not been fully human-reviewed and may
contain errors or inconsistencies. The English version remains
the primary source of truth.
Update: scripts/book-build.sh to generate pt_BR and es_ES files
fix(docs): correct typo in chapter 6 crashing PDF workflow
Introduce an initial Brazilian Portuguese version of the book, translated
with AI assistance using the qwen3.6:35b-a3b-bf16 model.
This translated content has not yet been fully reviewed and may still contain
translation errors, terminology inconsistencies, or passages that sound
unnatural in Portuguese. If any part of the translation is unclear or seems
incorrect, readers should refer to the original English version as the source
of truth.