Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ec33098

Browse files
authored
Fix japanese doc build error (#144)
* ad hoc fix for PDF build error for Japanese doc Use kotex package as the error claims that tex failed to process Korean character. * enable PDF build for Japanese doc
1 parent 1813f8c commit ec33098

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build_docs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ class Language:
229229
"-D latex_engine=platex",
230230
"-D latex_elements.inputenc=",
231231
"-D latex_elements.fontenc=",
232+
# See https://github.com/python/python-docs-ja/issues/35
233+
r"-D latex_elements.preamble=\\usepackage{kotex}",
232234
)
233235

234236
XELATEX_WITH_FONTSPEC = (
@@ -257,7 +259,7 @@ class Language:
257259
Language("fr", "fr", "French", True, XELATEX_WITH_FONTSPEC),
258260
Language("id", "id", "Indonesian", False, XELATEX_DEFAULT),
259261
Language("it", "it", "Italian", False, XELATEX_DEFAULT),
260-
Language("ja", "ja", "Japanese", True, PLATEX_DEFAULT, html_only=True), # See https://github.com/python/python-docs-ja/issues/35
262+
Language("ja", "ja", "Japanese", True, PLATEX_DEFAULT),
261263
Language("ko", "ko", "Korean", True, XELATEX_FOR_KOREAN),
262264
Language("pl", "pl", "Polish", False, XELATEX_DEFAULT),
263265
Language("pt-br", "pt_BR", "Brazilian Portuguese", True, XELATEX_DEFAULT),

0 commit comments

Comments
 (0)