[PATCH 3/3] tools/docs: sphinx-build-wrapper: warn about broken PDF fonts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux