[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0e7b63016b5493b21c011fe66639b770b2b8f25e.1757685692.git.mchehab+huawei@kernel.org>
Date: Fri, 12 Sep 2025 16:27:22 +0200
From: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>
To: Jonathan Corbet <corbet@....net>,
Linux Doc Mailing List <linux-doc@...r.kernel.org>
Cc: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>,
Akira Yokosawa <akiyks@...il.com>,
linux-kernel@...r.kernel.org
Subject: [PATCH 3/3] tools/docs: sphinx-build-wrapper: warn about broken PDF fonts
Depending on the latex install environment, translations can
be broken because of CJK variable fonts. Add a warning in
the end.
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>
---
tools/docs/sphinx-build-wrapper | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/tools/docs/sphinx-build-wrapper b/tools/docs/sphinx-build-wrapper
index c47f723391b9..d40fc25071c6 100755
--- a/tools/docs/sphinx-build-wrapper
+++ b/tools/docs/sphinx-build-wrapper
@@ -54,10 +54,11 @@ import subprocess
import sys
from concurrent import futures
-
-from lib.python_version import PythonVersion
from glob import glob
+from lib.python_version import PythonVersion
+from lib.latex_fonts import LatexFontChecker
+
LIB_DIR = "../../scripts/lib"
SRC_DIR = os.path.dirname(os.path.realpath(__file__))
@@ -476,6 +477,10 @@ class SphinxBuilder:
print()
if build_failed:
+ msg = LatexFontChecker().check()
+ if msg:
+ print(msg)
+
sys.exit("PDF build failed: not all PDF files were created.")
else:
print("All PDF files were built.")
--
2.50.1
Powered by blists - more mailing lists