-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsrc.json
156 lines (143 loc) · 5.04 KB
/
src.json
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
{
"pubinfo": {
"_author": "publication.jsonに追加される著者情報です。",
"author": "ayhy",
"_name": "publication.jsonに追加される本の表題です。デフォルトテーマではページ番号横に記載されます。(=scss上のenv-pub(title))",
"name": "文体操舵記録"
},
"__note": "ファイルパスはsrc.jsonから観た相対パスまたはフルパスで指定します。変換後のファイルはsrc.jsonと同じディレクトリに生成されます。",
"pandoc": {
"path": "",
"_path_": "pandocがインストールされている場合は不要です。ポータブル版のみpathを通してください。",
"general_config": [
"--strip-comments",
"--section-divs",
"--read=markdown+fenced_divs+bracketed_spans+hard_line_breaks+definition_lists+pandoc_title_block+header_attributes",
"--write=html5",
"--standalone"
],
"lua-filter": [
"./utils/convert_exchar.lua",
"./utils/elongate_dash.lua",
"./utils/convert_ruby.lua"
]
},
"frontmatter": {
"_front_": "本文前要素(前付)全般を生成します。",
"srcdir": "source",
"__dir_": "元ファイルのあるディレクトリを指定します。このjsonファイルから見た相対パスまたはフルパスで指定します。",
"_titlepage_": "前付け(frontmatter)の、目次前のページ(表題、献辞など)を生成します。outputを空欄にすると生成しません。",
"titlepage": {
"title": "表題",
"src": "__frontmatter1.txt",
"output": "00titlepage.html"
},
"_toc_": "目次を本文指定ファイルから指定の階層深さで生成し、指定があればsrc_append、src_prependで指定した内容を前後に付け足します。outputが空欄だと生成しません。section_depthで見出しの深さを指定できます。",
"toc": {
"title": "目次",
"toc-template": "./utils/template-for-markdown-nobody.txt",
"src_prepend": "__toc_before.txt",
"src_append": "__toc_after.txt",
"section_depth": 2,
"output": "01toc.html"
},
"_halftitle_": "前付けのうち、目次後のページ要素(中扉)を生成します。outputを空欄にすると生成しません。",
"halftitle": {
"title": "中扉",
"src": "__frontmatter2.txt",
"output": "02halftitle.html"
}
},
"body": {
"__body_": "本文要素の設定を行います。ここで指定したファイル群を参照して目次が自動生成されます。",
"srcdir": "source",
"__dir_": "元ファイルのあるディレクトリを指定します。このjsonファイルから見た相対パスまたはフルパスで指定します。",
"__file_": "元テキストが複数ある場合は順番に指定します。outputの指定を省くと同名のhtmlファイルをこのjsonファイルと同じディレクトリに出力します。",
"file": [{
"src": "ch1.txt",
"output": "03ch1.html",
"title": "",
"_title": "htmlのタイトルを指定できます。これを指定しない場合、または空白の場合は元ファイルの一番最初の見出しを使用します。"
},
{
"src": "ch2.txt",
"output": "03ch2.html"
},
{
"src": "ch3.txt",
"output": "03ch3.html"
},
{
"src": "ch4.txt",
"output": "03ch4.html"
},
{
"src": "ch5.txt",
"output": "03ch5.html"
},
{
"src": "ch6.txt",
"output": "03ch6.html"
},
{
"src": "ch7.txt",
"output": "03ch7.html"
},
{
"src": "ch8.txt",
"output": "03ch8.html"
},
{
"src": "ch9.txt",
"output": "03ch9.html"
},
{
"src": "ch10.txt",
"output": "03ch10.html"
}
]
},
"backmatter": {
"__backmatter__": "後扉要素(奥付、後書きなど)の元になるファイルを設定します。outputを空欄にすると生成しません。",
"srcdir": "source",
"__dir_": "元ファイルのあるディレクトリを指定します。このjsonファイルから見た相対パスまたはフルパスで指定します。",
"title": "奥付",
"src": "__backmatter.txt",
"output": "99_backmatter.html"
},
"font": [{
"__": "link-rel方式で読み込む外部フォントはexternalfont.txtに記載して読み込みます。",
"path": "./fonts/externalfont.txt",
"arg": "--include-in-header="
},
{
"__": "ttfファイル形式をローカルに置く形の外部フォントはlocalfont.cssで@font-faceを設定して読み込みます。",
"path": "./fonts/localfont.css",
"arg": "--css="
}
],
"style": {
"titlepage": [
"./theme_shinsho/theme_common.css",
"./utils/dash_vertical.css"
],
"toc": [
"./theme_shinsho/theme_common.css",
"./theme_shinsho/make_multi_column.css",
"./utils/dash_vertical.css"
],
"halftitle": [
"./theme_shinsho/theme_common.css",
"./utils/dash_vertical.css"
],
"body": [
"./theme_shinsho/theme_common.css",
"./theme_shinsho/make_multi_column.css",
"./utils/dash_vertical.css"
],
"backmatter": [
"./theme_shinsho/theme_common.css",
"./utils/dash_vertical.css"
]
}
}