-
-
Notifications
You must be signed in to change notification settings - Fork 57
/
config.toml
99 lines (84 loc) · 2.73 KB
/
config.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
[defaults]
# name has no default, it is mandatory.
in_prod = true
html_only = false
sphinxopts = [
"-D latex_engine=xelatex",
"-D latex_elements.inputenc=",
"-D latex_elements.fontenc=",
]
[languages.en]
name = "English"
[languages.es]
name = "Spanish"
sphinxopts = [
'-D latex_engine=xelatex',
'-D latex_elements.inputenc=',
'-D latex_elements.fontenc=\\usepackage{fontspec}',
]
[languages.fr]
name = "French"
sphinxopts = [
'-D latex_engine=xelatex',
'-D latex_elements.inputenc=',
'-D latex_elements.fontenc=\\usepackage{fontspec}',
]
[languages.id]
name = "Indonesian"
in_prod = false
[languages.it]
name = "Italian"
in_prod = true
[languages.ja]
name = "Japanese"
sphinxopts = [
'-D latex_engine=lualatex',
'-D latex_elements.inputenc=',
'-D latex_elements.fontenc=',
'-D latex_docclass.manual=ltjsbook',
'-D latex_docclass.howto=ltjsarticle',
# supress polyglossia warnings
'-D latex_elements.polyglossia=',
'-D latex_elements.fontpkg=',
# preamble
# Render non-Japanese letters with luatex
# https://gist.github.com/zr-tex8r/e0931df922f38fbb67634f05dfdaf66b
# Workaround for the luatex-ja issue (Thanks to @jfbu)
# https://github.com/sphinx-doc/sphinx/issues/11179#issuecomment-1420715092
# https://osdn.net/projects/luatex-ja/ticket/47321
# subpress warning: (fancyhdr)Make it at least 16.4pt
'-D latex_elements.preamble=\\usepackage[noto-otf]{luatexja-preset}\\usepackage{newunicodechar}\\newunicodechar{^^^^212a}{K}\\makeatletter\\titleformat{\\subsubsection}{\\normalsize\\py@HeaderFamily}{\\py@TitleColor\\thesubsubsection}{0.5em}{\\py@TitleColor}\\titleformat{\\paragraph}{\\normalsize\\py@HeaderFamily}{\\py@TitleColor\\theparagraph}{0.5em}{\\py@TitleColor}\\titleformat{\\subparagraph}{\\normalsize\\py@HeaderFamily}{\\py@TitleColor\\thesubparagraph}{0.5em}{\\py@TitleColor}\\makeatother\\setlength{\\footskip}{16.4pt}'
]
[languages.ko]
name = "Korean"
sphinxopts = [
'-D latex_engine=xelatex',
'-D latex_elements.inputenc=',
'-D latex_elements.fontenc=',
'-D latex_elements.preamble=\\usepackage{kotex}\\setmainhangulfont{UnBatang}\\setsanshangulfont{UnDotum}\\setmonohangulfont{UnTaza}',
]
[languages.pl]
name = "Polish"
in_prod = false
[languages.pt_BR]
name = "Brazilian Portuguese"
[languages.tr]
name = "Turkish"
[languages.uk]
name = "Ukrainian"
in_prod = false
html_only = true
[languages.zh_CN]
name = "Simplified Chinese"
sphinxopts = [
'-D latex_engine=xelatex',
'-D latex_elements.inputenc=',
'-D latex_elements.fontenc=\\usepackage{xeCJK}',
]
[languages.zh_TW]
name = "Traditional Chinese"
sphinxopts = [
'-D latex_engine=xelatex',
'-D latex_elements.inputenc=',
'-D latex_elements.fontenc=\\usepackage{xeCJK}',
]