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@xxxxxxxxxx> --- 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