This repository was archived by the owner on May 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathschema.json
326 lines (326 loc) · 8.83 KB
/
schema.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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
{
"definitions": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "config",
"type": "object",
"title": "The Root Schema",
"required": [
"样式",
"对应关系",
"可选部分"
],
"properties": {
"样式": {
"$id": "#/properties/样式",
"type": "array",
"title": "The 样式 Schema",
"items": {
"$id": "#/properties/样式/items",
"type": "object",
"title": "The Items Schema",
"required": [
"名称",
"英文字体",
"中文字体",
"字体大小",
"对齐方式",
"录入大纲",
"大纲等级",
"加粗",
"斜体",
"下划线",
"删除线",
"首行缩进",
"段前分页",
"段前后空行"
],
"properties": {
"名称": {
"$id": "#/properties/样式/items/properties/名称",
"type": "string",
"title": "The 名称 Schema",
"default": "",
"examples": [
"heading 1"
],
"pattern": "^(.*)$"
},
"英文字体": {
"$id": "#/properties/样式/items/properties/英文字体",
"type": "string",
"title": "The 英文字体 Schema",
"default": "",
"examples": [
"Times New Roman"
],
"pattern": "^(.*)$"
},
"中文字体": {
"$id": "#/properties/样式/items/properties/中文字体",
"type": "string",
"title": "The 中文字体 Schema",
"default": "",
"examples": [
"黑体"
],
"pattern": "^(.*)$"
},
"字体大小": {
"$id": "#/properties/样式/items/properties/字体大小",
"type": "string",
"title": "The 字体大小 Schema",
"default": "",
"examples": [
"三号"
],
"pattern": "^(.*)$"
},
"对齐方式": {
"$id": "#/properties/样式/items/properties/对齐方式",
"type": "string",
"title": "The 对齐方式 Schema",
"default": "",
"examples": [
"居中"
],
"pattern": "^(.*)$"
},
"录入大纲": {
"$id": "#/properties/样式/items/properties/录入大纲",
"type": "boolean",
"title": "The 录入大纲 Schema",
"default": false,
"examples": [
false
]
},
"大纲等级": {
"$id": "#/properties/样式/items/properties/大纲等级",
"type": "integer",
"title": "The 大纲等级 Schema",
"default": 0,
"examples": [
0
]
},
"加粗": {
"$id": "#/properties/样式/items/properties/加粗",
"type": "boolean",
"title": "The 加粗 Schema",
"default": false,
"examples": [
false
]
},
"斜体": {
"$id": "#/properties/样式/items/properties/斜体",
"type": "boolean",
"title": "The 斜体 Schema",
"default": false,
"examples": [
false
]
},
"下划线": {
"$id": "#/properties/样式/items/properties/下划线",
"type": "boolean",
"title": "The 下划线 Schema",
"default": false,
"examples": [
false
]
},
"删除线": {
"$id": "#/properties/样式/items/properties/删除线",
"type": "boolean",
"title": "The 删除线 Schema",
"default": false,
"examples": [
false
]
},
"首行缩进": {
"$id": "#/properties/样式/items/properties/首行缩进",
"type": "number",
"title": "The 首行缩进 Schema",
"default": 0,
"examples": [
2
]
},
"段前分页": {
"$id": "#/properties/样式/items/properties/段前分页",
"type": "boolean",
"title": "The 段前分页 Schema",
"default": false,
"examples": [
true
]
},
"段前后空行": {
"$id": "#/properties/样式/items/properties/段前后空行",
"type": "number",
"title": "The 段前后空行 Schema",
"default": 0,
"examples": [
1
]
},
"行距": {
"$id": "#/properties/样式/items/properties/行距",
"type": "number",
"title": "The 行距 Schema",
"default": 0,
"examples": [
1.5
]
}
}
}
},
"对应关系": {
"$id": "#/properties/对应关系",
"type": "object",
"title": "The 对应关系 Schema",
"required": [
"正文",
"一级标题",
"二级标题",
"三级标题",
"代码段",
"引用"
],
"properties": {
"正文": {
"$id": "#/properties/对应关系/properties/正文",
"type": "string",
"title": "The 正文 Schema",
"default": "",
"examples": [
"BodyText"
],
"pattern": "^(.*)$"
},
"一级标题": {
"$id": "#/properties/对应关系/properties/一级标题",
"type": "string",
"title": "The 一级标题 Schema",
"default": "",
"examples": [
"heading 1"
],
"pattern": "^(.*)$"
},
"二级标题": {
"$id": "#/properties/对应关系/properties/二级标题",
"type": "string",
"title": "The 二级标题 Schema",
"default": "",
"examples": [
"heading 2"
],
"pattern": "^(.*)$"
},
"三级标题": {
"$id": "#/properties/对应关系/properties/三级标题",
"type": "string",
"title": "The 三级标题 Schema",
"default": "",
"examples": [
"heading 3"
],
"pattern": "^(.*)$"
},
"代码段": {
"$id": "#/properties/对应关系/properties/代码段",
"type": "string",
"title": "The 代码段 Schema",
"default": "",
"examples": [
"Code"
],
"pattern": "^(.*)$"
},
"引用": {
"$id": "#/properties/对应关系/properties/引用",
"type": "string",
"title": "The 引用 Schema",
"default": "",
"examples": [
"reference"
],
"pattern": "^(.*)$"
}
}
},
"可选部分": {
"$id": "#/properties/可选部分",
"type": "object",
"title": "The 可选部分 Schema",
"required": [
"封面",
"摘要",
"目录",
"页眉",
"页脚",
"延迟样式"
],
"properties": {
"封面": {
"$id": "#/properties/可选部分/properties/封面",
"type": "boolean",
"title": "The 封面 Schema",
"default": false,
"examples": [
true
]
},
"摘要": {
"$id": "#/properties/可选部分/properties/摘要",
"type": "boolean",
"title": "The 摘要 Schema",
"default": false,
"examples": [
true
]
},
"目录": {
"$id": "#/properties/可选部分/properties/目录",
"type": "boolean",
"title": "The 目录 Schema",
"default": false,
"examples": [
true
]
},
"页眉": {
"$id": "#/properties/可选部分/properties/页眉",
"type": "boolean",
"title": "The 页眉 Schema",
"default": false,
"examples": [
true
]
},
"页脚": {
"$id": "#/properties/可选部分/properties/页脚",
"type": "boolean",
"title": "The 页脚 Schema",
"default": false,
"examples": [
true
]
},
"延迟样式": {
"$id": "#/properties/可选部分/properties/延迟样式",
"type": "boolean",
"title": "The 延迟样式 Schema",
"default": false,
"examples": [
true
]
}
}
}
}
}