Repository navigation
Let localizations configure book fonts and PDF profiles - #448
Merged
rzach merged 1 commit intoNov 16, 2026
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.
A localization can set the book’s text fonts, math fonts, and screen or print PDF profile before loading the class. Existing English books retain their current defaults. For example, the Gujarati screen edition loads its own text fonts and selects PDF/A-2b with these definitions before
\documentclass.These settings give the planned LuaLaTeX and PDF/UA-2 migration a place to change the defaults while preserving a localization’s explicit choices.
The English screen textbook (437 pages), print interior (436 pages) and cover each reproduced its original PDF byte for byte. In the Gujarati pilot, all 286 PDF pages matched the published edition in text and rendering, with only the two PDF trailer identifiers differing. The Gujarati EPUB and offline HTML archive matched their published bytes.
For the PDF/UA-2 work, both the original and patched English print interiors have duplicate
/Langand/OutputIntentskeys in the PDF catalog. Strict parsing rejects the catalog, and the source of the duplication has yet to be traced.OpenAI Codex (GPT-6 Astra, Ultra reasoning effort) prepared this change for the Open Logic translations following the November 16 correspondence.