@yanqirenshi/hefti 2.0.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +165 -2
- package/examples/valid/big_table_book/001_s1.json +27 -27
- package/examples/valid/big_table_book/002_s1.1.json +216 -216
- package/examples/valid/big_table_book/003_s1.2.json +27 -27
- package/examples/valid/big_table_book/004_s2.json +25 -25
- package/examples/valid/big_table_book/index.json +28 -28
- package/examples/valid/deep_book/001_s1.json +27 -27
- package/examples/valid/deep_book/002_s1.1.json +29 -29
- package/examples/valid/deep_book/003_s1.1.1.json +30 -30
- package/examples/valid/deep_book/004_s1.1.1.1.json +31 -31
- package/examples/valid/deep_book/005_s1.1.1.1.1.json +32 -32
- package/examples/valid/deep_book/006_s1.1.1.1.1.1.json +33 -33
- package/examples/valid/deep_book/007_s1.1.1.1.1.1.1.json +33 -33
- package/examples/valid/deep_book/index.json +69 -69
- package/examples/valid/empty_book/index.json +9 -9
- package/examples/valid/merged_table_book/001_s1.json +38 -38
- package/examples/valid/merged_table_book/index.json +15 -15
- package/examples/valid/no_heading_book/001_front.json +39 -39
- package/examples/valid/no_heading_book/index.json +14 -14
- package/examples/valid/rich_book/001_front.json +17 -17
- package/examples/valid/rich_book/002_s1.json +123 -123
- package/examples/valid/rich_book/003_s2.json +25 -25
- package/examples/valid/rich_book/index.json +45 -45
- package/examples/valid/rich_split_book/001_front.json +17 -17
- package/examples/valid/rich_split_book/002_s1.json +28 -28
- package/examples/valid/rich_split_book/003_s1.1.json +90 -90
- package/examples/valid/rich_split_book/004_s1.1.1.json +28 -28
- package/examples/valid/rich_split_book/005_s2.json +25 -25
- package/examples/valid/rich_split_book/index.json +47 -47
- package/examples/valid/sized_book/001_front.json +17 -17
- package/examples/valid/sized_book/002_s1.json +51 -51
- package/examples/valid/sized_book/003_s1.1.json +43 -43
- package/examples/valid/sized_book/004_s1.1.1.json +42 -42
- package/examples/valid/sized_book/005_s1.2.json +28 -28
- package/examples/valid/sized_book/006_s2.json +64 -64
- package/examples/valid/sized_book/index.json +39 -39
- package/index.d.ts +26 -0
- package/index.js +2 -2
- package/package.json +22 -7
- package/schema/structure-index.schema.json +1 -1
- package/schema/structure-part.schema.json +1 -1
- package/types.d.ts +420 -0
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 2,
|
|
3
|
-
"title": "テストの本",
|
|
4
|
-
"source": {"book": "book.json", "sha256": "c2c43ca9a72815c0bf4e5373ff5b620308cb216c803601e39a12d06bc1e55718"},
|
|
5
|
-
"split_chars": 12000,
|
|
6
|
-
"pages": [
|
|
7
|
-
{"id": "p0001_0", "status": "ok", "decorations": []}
|
|
8
|
-
],
|
|
9
|
-
"files": [
|
|
10
|
-
{"file": "001_s1.json", "id": "s1", "chars": 9, "json_chars": 572},
|
|
11
|
-
{"file": "002_s1.1.json", "id": "s1.1", "chars": 14, "json_chars": 14128},
|
|
12
|
-
{"file": "003_s1.2.json", "id": "s1.2", "chars": 9, "json_chars": 424},
|
|
13
|
-
{"file": "004_s2.json", "id": "s2", "chars": 9, "json_chars": 369}
|
|
14
|
-
],
|
|
15
|
-
"toc": [
|
|
16
|
-
{
|
|
17
|
-
"id": "s1",
|
|
18
|
-
"level": 1,
|
|
19
|
-
"title": "第1章 表の章",
|
|
20
|
-
"file": "001_s1.json",
|
|
21
|
-
"children": [
|
|
22
|
-
{"id": "s1.1", "level": 2, "title": "1.1 大きな表の節", "file": "002_s1.1.json", "children": []},
|
|
23
|
-
{"id": "s1.2", "level": 2, "title": "1.2 短い節", "file": "003_s1.2.json", "children": []}
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
{"id": "s2", "level": 1, "title": "第2章 次の章", "file": "004_s2.json", "children": []}
|
|
27
|
-
]
|
|
28
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"title": "テストの本",
|
|
4
|
+
"source": {"book": "book.json", "sha256": "c2c43ca9a72815c0bf4e5373ff5b620308cb216c803601e39a12d06bc1e55718"},
|
|
5
|
+
"split_chars": 12000,
|
|
6
|
+
"pages": [
|
|
7
|
+
{"id": "p0001_0", "status": "ok", "decorations": []}
|
|
8
|
+
],
|
|
9
|
+
"files": [
|
|
10
|
+
{"file": "001_s1.json", "id": "s1", "chars": 9, "json_chars": 572},
|
|
11
|
+
{"file": "002_s1.1.json", "id": "s1.1", "chars": 14, "json_chars": 14128},
|
|
12
|
+
{"file": "003_s1.2.json", "id": "s1.2", "chars": 9, "json_chars": 424},
|
|
13
|
+
{"file": "004_s2.json", "id": "s2", "chars": 9, "json_chars": 369}
|
|
14
|
+
],
|
|
15
|
+
"toc": [
|
|
16
|
+
{
|
|
17
|
+
"id": "s1",
|
|
18
|
+
"level": 1,
|
|
19
|
+
"title": "第1章 表の章",
|
|
20
|
+
"file": "001_s1.json",
|
|
21
|
+
"children": [
|
|
22
|
+
{"id": "s1.1", "level": 2, "title": "1.1 大きな表の節", "file": "002_s1.1.json", "children": []},
|
|
23
|
+
{"id": "s1.2", "level": 2, "title": "1.2 短い節", "file": "003_s1.2.json", "children": []}
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
{"id": "s2", "level": 1, "title": "第2章 次の章", "file": "004_s2.json", "children": []}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 2,
|
|
3
|
-
"file": "001_s1.json",
|
|
4
|
-
"id": "s1",
|
|
5
|
-
"ancestors": [],
|
|
6
|
-
"body": [
|
|
7
|
-
{
|
|
8
|
-
"type": "section",
|
|
9
|
-
"id": "s1",
|
|
10
|
-
"level": 1,
|
|
11
|
-
"title": "深さ1の見出し",
|
|
12
|
-
"source": ["p0001_0#0"],
|
|
13
|
-
"children": [
|
|
14
|
-
{
|
|
15
|
-
"type": "paragraph",
|
|
16
|
-
"id": "p1",
|
|
17
|
-
"source": ["p0001_0#1"],
|
|
18
|
-
"sentences": [
|
|
19
|
-
{"id": "p1.1", "text": "深さ1の段落。"},
|
|
20
|
-
{"id": "p1.2", "text": "二文目。"}
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
|
-
{"type": "section_ref", "id": "s1.1", "level": 2, "title": "深さ2の見出し", "file": "002_s1.1.json"}
|
|
24
|
-
]
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"file": "001_s1.json",
|
|
4
|
+
"id": "s1",
|
|
5
|
+
"ancestors": [],
|
|
6
|
+
"body": [
|
|
7
|
+
{
|
|
8
|
+
"type": "section",
|
|
9
|
+
"id": "s1",
|
|
10
|
+
"level": 1,
|
|
11
|
+
"title": "深さ1の見出し",
|
|
12
|
+
"source": ["p0001_0#0"],
|
|
13
|
+
"children": [
|
|
14
|
+
{
|
|
15
|
+
"type": "paragraph",
|
|
16
|
+
"id": "p1",
|
|
17
|
+
"source": ["p0001_0#1"],
|
|
18
|
+
"sentences": [
|
|
19
|
+
{"id": "p1.1", "text": "深さ1の段落。"},
|
|
20
|
+
{"id": "p1.2", "text": "二文目。"}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{"type": "section_ref", "id": "s1.1", "level": 2, "title": "深さ2の見出し", "file": "002_s1.1.json"}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 2,
|
|
3
|
-
"file": "002_s1.1.json",
|
|
4
|
-
"id": "s1.1",
|
|
5
|
-
"ancestors": [
|
|
6
|
-
{"id": "s1", "level": 1, "title": "深さ1の見出し"}
|
|
7
|
-
],
|
|
8
|
-
"body": [
|
|
9
|
-
{
|
|
10
|
-
"type": "section",
|
|
11
|
-
"id": "s1.1",
|
|
12
|
-
"level": 2,
|
|
13
|
-
"title": "深さ2の見出し",
|
|
14
|
-
"source": ["p0001_0#2"],
|
|
15
|
-
"children": [
|
|
16
|
-
{
|
|
17
|
-
"type": "paragraph",
|
|
18
|
-
"id": "p2",
|
|
19
|
-
"source": ["p0001_0#3"],
|
|
20
|
-
"sentences": [
|
|
21
|
-
{"id": "p2.1", "text": "深さ2の段落。"},
|
|
22
|
-
{"id": "p2.2", "text": "二文目。"}
|
|
23
|
-
]
|
|
24
|
-
},
|
|
25
|
-
{"type": "section_ref", "id": "s1.1.1", "level": 3, "title": "深さ3の見出し", "file": "003_s1.1.1.json"}
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
]
|
|
29
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"file": "002_s1.1.json",
|
|
4
|
+
"id": "s1.1",
|
|
5
|
+
"ancestors": [
|
|
6
|
+
{"id": "s1", "level": 1, "title": "深さ1の見出し"}
|
|
7
|
+
],
|
|
8
|
+
"body": [
|
|
9
|
+
{
|
|
10
|
+
"type": "section",
|
|
11
|
+
"id": "s1.1",
|
|
12
|
+
"level": 2,
|
|
13
|
+
"title": "深さ2の見出し",
|
|
14
|
+
"source": ["p0001_0#2"],
|
|
15
|
+
"children": [
|
|
16
|
+
{
|
|
17
|
+
"type": "paragraph",
|
|
18
|
+
"id": "p2",
|
|
19
|
+
"source": ["p0001_0#3"],
|
|
20
|
+
"sentences": [
|
|
21
|
+
{"id": "p2.1", "text": "深さ2の段落。"},
|
|
22
|
+
{"id": "p2.2", "text": "二文目。"}
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
{"type": "section_ref", "id": "s1.1.1", "level": 3, "title": "深さ3の見出し", "file": "003_s1.1.1.json"}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 2,
|
|
3
|
-
"file": "003_s1.1.1.json",
|
|
4
|
-
"id": "s1.1.1",
|
|
5
|
-
"ancestors": [
|
|
6
|
-
{"id": "s1", "level": 1, "title": "深さ1の見出し"},
|
|
7
|
-
{"id": "s1.1", "level": 2, "title": "深さ2の見出し"}
|
|
8
|
-
],
|
|
9
|
-
"body": [
|
|
10
|
-
{
|
|
11
|
-
"type": "section",
|
|
12
|
-
"id": "s1.1.1",
|
|
13
|
-
"level": 3,
|
|
14
|
-
"title": "深さ3の見出し",
|
|
15
|
-
"source": ["p0001_0#4"],
|
|
16
|
-
"children": [
|
|
17
|
-
{
|
|
18
|
-
"type": "paragraph",
|
|
19
|
-
"id": "p3",
|
|
20
|
-
"source": ["p0001_0#5"],
|
|
21
|
-
"sentences": [
|
|
22
|
-
{"id": "p3.1", "text": "深さ3の段落。"},
|
|
23
|
-
{"id": "p3.2", "text": "二文目。"}
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
{"type": "section_ref", "id": "s1.1.1.1", "level": 4, "title": "深さ4の見出し", "file": "004_s1.1.1.1.json"}
|
|
27
|
-
]
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"file": "003_s1.1.1.json",
|
|
4
|
+
"id": "s1.1.1",
|
|
5
|
+
"ancestors": [
|
|
6
|
+
{"id": "s1", "level": 1, "title": "深さ1の見出し"},
|
|
7
|
+
{"id": "s1.1", "level": 2, "title": "深さ2の見出し"}
|
|
8
|
+
],
|
|
9
|
+
"body": [
|
|
10
|
+
{
|
|
11
|
+
"type": "section",
|
|
12
|
+
"id": "s1.1.1",
|
|
13
|
+
"level": 3,
|
|
14
|
+
"title": "深さ3の見出し",
|
|
15
|
+
"source": ["p0001_0#4"],
|
|
16
|
+
"children": [
|
|
17
|
+
{
|
|
18
|
+
"type": "paragraph",
|
|
19
|
+
"id": "p3",
|
|
20
|
+
"source": ["p0001_0#5"],
|
|
21
|
+
"sentences": [
|
|
22
|
+
{"id": "p3.1", "text": "深さ3の段落。"},
|
|
23
|
+
{"id": "p3.2", "text": "二文目。"}
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
{"type": "section_ref", "id": "s1.1.1.1", "level": 4, "title": "深さ4の見出し", "file": "004_s1.1.1.1.json"}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 2,
|
|
3
|
-
"file": "004_s1.1.1.1.json",
|
|
4
|
-
"id": "s1.1.1.1",
|
|
5
|
-
"ancestors": [
|
|
6
|
-
{"id": "s1", "level": 1, "title": "深さ1の見出し"},
|
|
7
|
-
{"id": "s1.1", "level": 2, "title": "深さ2の見出し"},
|
|
8
|
-
{"id": "s1.1.1", "level": 3, "title": "深さ3の見出し"}
|
|
9
|
-
],
|
|
10
|
-
"body": [
|
|
11
|
-
{
|
|
12
|
-
"type": "section",
|
|
13
|
-
"id": "s1.1.1.1",
|
|
14
|
-
"level": 4,
|
|
15
|
-
"title": "深さ4の見出し",
|
|
16
|
-
"source": ["p0001_0#6"],
|
|
17
|
-
"children": [
|
|
18
|
-
{
|
|
19
|
-
"type": "paragraph",
|
|
20
|
-
"id": "p4",
|
|
21
|
-
"source": ["p0001_0#7"],
|
|
22
|
-
"sentences": [
|
|
23
|
-
{"id": "p4.1", "text": "深さ4の段落。"},
|
|
24
|
-
{"id": "p4.2", "text": "二文目。"}
|
|
25
|
-
]
|
|
26
|
-
},
|
|
27
|
-
{"type": "section_ref", "id": "s1.1.1.1.1", "level": 5, "title": "深さ5の見出し", "file": "005_s1.1.1.1.1.json"}
|
|
28
|
-
]
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"file": "004_s1.1.1.1.json",
|
|
4
|
+
"id": "s1.1.1.1",
|
|
5
|
+
"ancestors": [
|
|
6
|
+
{"id": "s1", "level": 1, "title": "深さ1の見出し"},
|
|
7
|
+
{"id": "s1.1", "level": 2, "title": "深さ2の見出し"},
|
|
8
|
+
{"id": "s1.1.1", "level": 3, "title": "深さ3の見出し"}
|
|
9
|
+
],
|
|
10
|
+
"body": [
|
|
11
|
+
{
|
|
12
|
+
"type": "section",
|
|
13
|
+
"id": "s1.1.1.1",
|
|
14
|
+
"level": 4,
|
|
15
|
+
"title": "深さ4の見出し",
|
|
16
|
+
"source": ["p0001_0#6"],
|
|
17
|
+
"children": [
|
|
18
|
+
{
|
|
19
|
+
"type": "paragraph",
|
|
20
|
+
"id": "p4",
|
|
21
|
+
"source": ["p0001_0#7"],
|
|
22
|
+
"sentences": [
|
|
23
|
+
{"id": "p4.1", "text": "深さ4の段落。"},
|
|
24
|
+
{"id": "p4.2", "text": "二文目。"}
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
{"type": "section_ref", "id": "s1.1.1.1.1", "level": 5, "title": "深さ5の見出し", "file": "005_s1.1.1.1.1.json"}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 2,
|
|
3
|
-
"file": "005_s1.1.1.1.1.json",
|
|
4
|
-
"id": "s1.1.1.1.1",
|
|
5
|
-
"ancestors": [
|
|
6
|
-
{"id": "s1", "level": 1, "title": "深さ1の見出し"},
|
|
7
|
-
{"id": "s1.1", "level": 2, "title": "深さ2の見出し"},
|
|
8
|
-
{"id": "s1.1.1", "level": 3, "title": "深さ3の見出し"},
|
|
9
|
-
{"id": "s1.1.1.1", "level": 4, "title": "深さ4の見出し"}
|
|
10
|
-
],
|
|
11
|
-
"body": [
|
|
12
|
-
{
|
|
13
|
-
"type": "section",
|
|
14
|
-
"id": "s1.1.1.1.1",
|
|
15
|
-
"level": 5,
|
|
16
|
-
"title": "深さ5の見出し",
|
|
17
|
-
"source": ["p0001_0#8"],
|
|
18
|
-
"children": [
|
|
19
|
-
{
|
|
20
|
-
"type": "paragraph",
|
|
21
|
-
"id": "p5",
|
|
22
|
-
"source": ["p0001_0#9"],
|
|
23
|
-
"sentences": [
|
|
24
|
-
{"id": "p5.1", "text": "深さ5の段落。"},
|
|
25
|
-
{"id": "p5.2", "text": "二文目。"}
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
|
-
{"type": "section_ref", "id": "s1.1.1.1.1.1", "level": 6, "title": "深さ6の見出し", "file": "006_s1.1.1.1.1.1.json"}
|
|
29
|
-
]
|
|
30
|
-
}
|
|
31
|
-
]
|
|
32
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"file": "005_s1.1.1.1.1.json",
|
|
4
|
+
"id": "s1.1.1.1.1",
|
|
5
|
+
"ancestors": [
|
|
6
|
+
{"id": "s1", "level": 1, "title": "深さ1の見出し"},
|
|
7
|
+
{"id": "s1.1", "level": 2, "title": "深さ2の見出し"},
|
|
8
|
+
{"id": "s1.1.1", "level": 3, "title": "深さ3の見出し"},
|
|
9
|
+
{"id": "s1.1.1.1", "level": 4, "title": "深さ4の見出し"}
|
|
10
|
+
],
|
|
11
|
+
"body": [
|
|
12
|
+
{
|
|
13
|
+
"type": "section",
|
|
14
|
+
"id": "s1.1.1.1.1",
|
|
15
|
+
"level": 5,
|
|
16
|
+
"title": "深さ5の見出し",
|
|
17
|
+
"source": ["p0001_0#8"],
|
|
18
|
+
"children": [
|
|
19
|
+
{
|
|
20
|
+
"type": "paragraph",
|
|
21
|
+
"id": "p5",
|
|
22
|
+
"source": ["p0001_0#9"],
|
|
23
|
+
"sentences": [
|
|
24
|
+
{"id": "p5.1", "text": "深さ5の段落。"},
|
|
25
|
+
{"id": "p5.2", "text": "二文目。"}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{"type": "section_ref", "id": "s1.1.1.1.1.1", "level": 6, "title": "深さ6の見出し", "file": "006_s1.1.1.1.1.1.json"}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 2,
|
|
3
|
-
"file": "006_s1.1.1.1.1.1.json",
|
|
4
|
-
"id": "s1.1.1.1.1.1",
|
|
5
|
-
"ancestors": [
|
|
6
|
-
{"id": "s1", "level": 1, "title": "深さ1の見出し"},
|
|
7
|
-
{"id": "s1.1", "level": 2, "title": "深さ2の見出し"},
|
|
8
|
-
{"id": "s1.1.1", "level": 3, "title": "深さ3の見出し"},
|
|
9
|
-
{"id": "s1.1.1.1", "level": 4, "title": "深さ4の見出し"},
|
|
10
|
-
{"id": "s1.1.1.1.1", "level": 5, "title": "深さ5の見出し"}
|
|
11
|
-
],
|
|
12
|
-
"body": [
|
|
13
|
-
{
|
|
14
|
-
"type": "section",
|
|
15
|
-
"id": "s1.1.1.1.1.1",
|
|
16
|
-
"level": 6,
|
|
17
|
-
"title": "深さ6の見出し",
|
|
18
|
-
"source": ["p0001_0#10"],
|
|
19
|
-
"children": [
|
|
20
|
-
{
|
|
21
|
-
"type": "paragraph",
|
|
22
|
-
"id": "p6",
|
|
23
|
-
"source": ["p0001_0#11"],
|
|
24
|
-
"sentences": [
|
|
25
|
-
{"id": "p6.1", "text": "深さ6の段落。"},
|
|
26
|
-
{"id": "p6.2", "text": "二文目。"}
|
|
27
|
-
]
|
|
28
|
-
},
|
|
29
|
-
{"type": "section_ref", "id": "s1.1.1.1.1.1.1", "level": 7, "title": "深さ7の見出し", "file": "007_s1.1.1.1.1.1.1.json"}
|
|
30
|
-
]
|
|
31
|
-
}
|
|
32
|
-
]
|
|
33
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"file": "006_s1.1.1.1.1.1.json",
|
|
4
|
+
"id": "s1.1.1.1.1.1",
|
|
5
|
+
"ancestors": [
|
|
6
|
+
{"id": "s1", "level": 1, "title": "深さ1の見出し"},
|
|
7
|
+
{"id": "s1.1", "level": 2, "title": "深さ2の見出し"},
|
|
8
|
+
{"id": "s1.1.1", "level": 3, "title": "深さ3の見出し"},
|
|
9
|
+
{"id": "s1.1.1.1", "level": 4, "title": "深さ4の見出し"},
|
|
10
|
+
{"id": "s1.1.1.1.1", "level": 5, "title": "深さ5の見出し"}
|
|
11
|
+
],
|
|
12
|
+
"body": [
|
|
13
|
+
{
|
|
14
|
+
"type": "section",
|
|
15
|
+
"id": "s1.1.1.1.1.1",
|
|
16
|
+
"level": 6,
|
|
17
|
+
"title": "深さ6の見出し",
|
|
18
|
+
"source": ["p0001_0#10"],
|
|
19
|
+
"children": [
|
|
20
|
+
{
|
|
21
|
+
"type": "paragraph",
|
|
22
|
+
"id": "p6",
|
|
23
|
+
"source": ["p0001_0#11"],
|
|
24
|
+
"sentences": [
|
|
25
|
+
{"id": "p6.1", "text": "深さ6の段落。"},
|
|
26
|
+
{"id": "p6.2", "text": "二文目。"}
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{"type": "section_ref", "id": "s1.1.1.1.1.1.1", "level": 7, "title": "深さ7の見出し", "file": "007_s1.1.1.1.1.1.1.json"}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 2,
|
|
3
|
-
"file": "007_s1.1.1.1.1.1.1.json",
|
|
4
|
-
"id": "s1.1.1.1.1.1.1",
|
|
5
|
-
"ancestors": [
|
|
6
|
-
{"id": "s1", "level": 1, "title": "深さ1の見出し"},
|
|
7
|
-
{"id": "s1.1", "level": 2, "title": "深さ2の見出し"},
|
|
8
|
-
{"id": "s1.1.1", "level": 3, "title": "深さ3の見出し"},
|
|
9
|
-
{"id": "s1.1.1.1", "level": 4, "title": "深さ4の見出し"},
|
|
10
|
-
{"id": "s1.1.1.1.1", "level": 5, "title": "深さ5の見出し"},
|
|
11
|
-
{"id": "s1.1.1.1.1.1", "level": 6, "title": "深さ6の見出し"}
|
|
12
|
-
],
|
|
13
|
-
"body": [
|
|
14
|
-
{
|
|
15
|
-
"type": "section",
|
|
16
|
-
"id": "s1.1.1.1.1.1.1",
|
|
17
|
-
"level": 7,
|
|
18
|
-
"title": "深さ7の見出し",
|
|
19
|
-
"source": ["p0001_0#12"],
|
|
20
|
-
"children": [
|
|
21
|
-
{
|
|
22
|
-
"type": "paragraph",
|
|
23
|
-
"id": "p7",
|
|
24
|
-
"source": ["p0001_0#13"],
|
|
25
|
-
"sentences": [
|
|
26
|
-
{"id": "p7.1", "text": "深さ7の段落。"},
|
|
27
|
-
{"id": "p7.2", "text": "二文目。"}
|
|
28
|
-
]
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
}
|
|
32
|
-
]
|
|
33
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"file": "007_s1.1.1.1.1.1.1.json",
|
|
4
|
+
"id": "s1.1.1.1.1.1.1",
|
|
5
|
+
"ancestors": [
|
|
6
|
+
{"id": "s1", "level": 1, "title": "深さ1の見出し"},
|
|
7
|
+
{"id": "s1.1", "level": 2, "title": "深さ2の見出し"},
|
|
8
|
+
{"id": "s1.1.1", "level": 3, "title": "深さ3の見出し"},
|
|
9
|
+
{"id": "s1.1.1.1", "level": 4, "title": "深さ4の見出し"},
|
|
10
|
+
{"id": "s1.1.1.1.1", "level": 5, "title": "深さ5の見出し"},
|
|
11
|
+
{"id": "s1.1.1.1.1.1", "level": 6, "title": "深さ6の見出し"}
|
|
12
|
+
],
|
|
13
|
+
"body": [
|
|
14
|
+
{
|
|
15
|
+
"type": "section",
|
|
16
|
+
"id": "s1.1.1.1.1.1.1",
|
|
17
|
+
"level": 7,
|
|
18
|
+
"title": "深さ7の見出し",
|
|
19
|
+
"source": ["p0001_0#12"],
|
|
20
|
+
"children": [
|
|
21
|
+
{
|
|
22
|
+
"type": "paragraph",
|
|
23
|
+
"id": "p7",
|
|
24
|
+
"source": ["p0001_0#13"],
|
|
25
|
+
"sentences": [
|
|
26
|
+
{"id": "p7.1", "text": "深さ7の段落。"},
|
|
27
|
+
{"id": "p7.2", "text": "二文目。"}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 2,
|
|
3
|
-
"title": "テストの本",
|
|
4
|
-
"source": {"book": "book.json", "sha256": "ba5731cae333947bc017170186c26c9e2e0cfebfcf0f94f4746488c7a0516a84"},
|
|
5
|
-
"split_chars": 300,
|
|
6
|
-
"pages": [
|
|
7
|
-
{"id": "p0001_0", "status": "ok", "decorations": []}
|
|
8
|
-
],
|
|
9
|
-
"files": [
|
|
10
|
-
{"file": "001_s1.json", "id": "s1", "chars": 18, "json_chars": 511},
|
|
11
|
-
{"file": "002_s1.1.json", "id": "s1.1", "chars": 18, "json_chars": 570},
|
|
12
|
-
{"file": "003_s1.1.1.json", "id": "s1.1.1", "chars": 18, "json_chars": 630},
|
|
13
|
-
{"file": "004_s1.1.1.1.json", "id": "s1.1.1.1", "chars": 18, "json_chars": 692},
|
|
14
|
-
{"file": "005_s1.1.1.1.1.json", "id": "s1.1.1.1.1", "chars": 18, "json_chars": 756},
|
|
15
|
-
{"file": "006_s1.1.1.1.1.1.json", "id": "s1.1.1.1.1.1", "chars": 18, "json_chars": 824},
|
|
16
|
-
{"file": "007_s1.1.1.1.1.1.1.json", "id": "s1.1.1.1.1.1.1", "chars": 18, "json_chars": 768}
|
|
17
|
-
],
|
|
18
|
-
"toc": [
|
|
19
|
-
{
|
|
20
|
-
"id": "s1",
|
|
21
|
-
"level": 1,
|
|
22
|
-
"title": "深さ1の見出し",
|
|
23
|
-
"file": "001_s1.json",
|
|
24
|
-
"children": [
|
|
25
|
-
{
|
|
26
|
-
"id": "s1.1",
|
|
27
|
-
"level": 2,
|
|
28
|
-
"title": "深さ2の見出し",
|
|
29
|
-
"file": "002_s1.1.json",
|
|
30
|
-
"children": [
|
|
31
|
-
{
|
|
32
|
-
"id": "s1.1.1",
|
|
33
|
-
"level": 3,
|
|
34
|
-
"title": "深さ3の見出し",
|
|
35
|
-
"file": "003_s1.1.1.json",
|
|
36
|
-
"children": [
|
|
37
|
-
{
|
|
38
|
-
"id": "s1.1.1.1",
|
|
39
|
-
"level": 4,
|
|
40
|
-
"title": "深さ4の見出し",
|
|
41
|
-
"file": "004_s1.1.1.1.json",
|
|
42
|
-
"children": [
|
|
43
|
-
{
|
|
44
|
-
"id": "s1.1.1.1.1",
|
|
45
|
-
"level": 5,
|
|
46
|
-
"title": "深さ5の見出し",
|
|
47
|
-
"file": "005_s1.1.1.1.1.json",
|
|
48
|
-
"children": [
|
|
49
|
-
{
|
|
50
|
-
"id": "s1.1.1.1.1.1",
|
|
51
|
-
"level": 6,
|
|
52
|
-
"title": "深さ6の見出し",
|
|
53
|
-
"file": "006_s1.1.1.1.1.1.json",
|
|
54
|
-
"children": [
|
|
55
|
-
{"id": "s1.1.1.1.1.1.1", "level": 7, "title": "深さ7の見出し", "file": "007_s1.1.1.1.1.1.1.json", "children": []}
|
|
56
|
-
]
|
|
57
|
-
}
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
]
|
|
63
|
-
}
|
|
64
|
-
]
|
|
65
|
-
}
|
|
66
|
-
]
|
|
67
|
-
}
|
|
68
|
-
]
|
|
69
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"title": "テストの本",
|
|
4
|
+
"source": {"book": "book.json", "sha256": "ba5731cae333947bc017170186c26c9e2e0cfebfcf0f94f4746488c7a0516a84"},
|
|
5
|
+
"split_chars": 300,
|
|
6
|
+
"pages": [
|
|
7
|
+
{"id": "p0001_0", "status": "ok", "decorations": []}
|
|
8
|
+
],
|
|
9
|
+
"files": [
|
|
10
|
+
{"file": "001_s1.json", "id": "s1", "chars": 18, "json_chars": 511},
|
|
11
|
+
{"file": "002_s1.1.json", "id": "s1.1", "chars": 18, "json_chars": 570},
|
|
12
|
+
{"file": "003_s1.1.1.json", "id": "s1.1.1", "chars": 18, "json_chars": 630},
|
|
13
|
+
{"file": "004_s1.1.1.1.json", "id": "s1.1.1.1", "chars": 18, "json_chars": 692},
|
|
14
|
+
{"file": "005_s1.1.1.1.1.json", "id": "s1.1.1.1.1", "chars": 18, "json_chars": 756},
|
|
15
|
+
{"file": "006_s1.1.1.1.1.1.json", "id": "s1.1.1.1.1.1", "chars": 18, "json_chars": 824},
|
|
16
|
+
{"file": "007_s1.1.1.1.1.1.1.json", "id": "s1.1.1.1.1.1.1", "chars": 18, "json_chars": 768}
|
|
17
|
+
],
|
|
18
|
+
"toc": [
|
|
19
|
+
{
|
|
20
|
+
"id": "s1",
|
|
21
|
+
"level": 1,
|
|
22
|
+
"title": "深さ1の見出し",
|
|
23
|
+
"file": "001_s1.json",
|
|
24
|
+
"children": [
|
|
25
|
+
{
|
|
26
|
+
"id": "s1.1",
|
|
27
|
+
"level": 2,
|
|
28
|
+
"title": "深さ2の見出し",
|
|
29
|
+
"file": "002_s1.1.json",
|
|
30
|
+
"children": [
|
|
31
|
+
{
|
|
32
|
+
"id": "s1.1.1",
|
|
33
|
+
"level": 3,
|
|
34
|
+
"title": "深さ3の見出し",
|
|
35
|
+
"file": "003_s1.1.1.json",
|
|
36
|
+
"children": [
|
|
37
|
+
{
|
|
38
|
+
"id": "s1.1.1.1",
|
|
39
|
+
"level": 4,
|
|
40
|
+
"title": "深さ4の見出し",
|
|
41
|
+
"file": "004_s1.1.1.1.json",
|
|
42
|
+
"children": [
|
|
43
|
+
{
|
|
44
|
+
"id": "s1.1.1.1.1",
|
|
45
|
+
"level": 5,
|
|
46
|
+
"title": "深さ5の見出し",
|
|
47
|
+
"file": "005_s1.1.1.1.1.json",
|
|
48
|
+
"children": [
|
|
49
|
+
{
|
|
50
|
+
"id": "s1.1.1.1.1.1",
|
|
51
|
+
"level": 6,
|
|
52
|
+
"title": "深さ6の見出し",
|
|
53
|
+
"file": "006_s1.1.1.1.1.1.json",
|
|
54
|
+
"children": [
|
|
55
|
+
{"id": "s1.1.1.1.1.1.1", "level": 7, "title": "深さ7の見出し", "file": "007_s1.1.1.1.1.1.1.json", "children": []}
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
}
|