PDF: Font-Fallback für Emoji und Sonderzeichen - 2070 Missing-character-Faelle behoben
This commit is contained in:
parent
9b461426fc
commit
abc7a5693f
8 changed files with 198 additions and 1 deletions
|
|
@ -1194,6 +1194,21 @@ def baue_pdf() -> None:
|
|||
print(f"PDF wurde nicht erzeugt - LaTeX-Protokoll in "
|
||||
f"{BUILD_BASISNAME}.log pruefen.")
|
||||
|
||||
# Bewachung des Sonderzeichen-Fallbacks: xelatex verschweigt fehlende
|
||||
# Glyphen im Druckbild (nur "Missing character" im Protokoll). Der Filter
|
||||
# pandoc/emoji_fallback.lua deckt die bekannten Zeichen ab; taucht hier
|
||||
# eine Zahl auf, kennt Times New Roman ein Zeichen, das der Filter noch
|
||||
# nicht umschaltet - Zeichenliste im Filter ergaenzen.
|
||||
protokoll = os.path.join(BASIS, BUILD_BASISNAME + ".log")
|
||||
if os.path.exists(protokoll):
|
||||
with open(protokoll, encoding="utf-8", errors="replace") as datei:
|
||||
fehlend = sum(1 for zeile in datei if "Missing character" in zeile)
|
||||
if fehlend:
|
||||
print(f" WARNUNG: {fehlend} fehlende Zeichen im LaTeX-Protokoll "
|
||||
f"(pandoc/emoji_fallback.lua erweitern)")
|
||||
else:
|
||||
print(" Kein fehlendes Zeichen - Font-Fallback deckt alles ab.")
|
||||
|
||||
for endung in (".tex", ".aux", ".log", ".out", ".toc", ".idx", ".ind", ".ilg"):
|
||||
pfad = os.path.join(BASIS, BUILD_BASISNAME + endung)
|
||||
if os.path.exists(pfad) and endung != ".log":
|
||||
|
|
|
|||
Loading…
Reference in a new issue