@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,45 +1,45 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 2,
|
|
3
|
-
"title": "テストの本",
|
|
4
|
-
"source": {"book": "book.json", "sha256": "7f347e4d64e748a7d704169abd0003f26c060b1aa68862006f9f151dd7f9954b"},
|
|
5
|
-
"split_chars": 12000,
|
|
6
|
-
"pages": [
|
|
7
|
-
{"id": "p0001_0", "status": "ok", "decorations": [{"type": "header", "text": "柱:テストの本"}, {"type": "footer", "text": "1"}]},
|
|
8
|
-
{
|
|
9
|
-
"id": "p0003_0",
|
|
10
|
-
"status": "ok",
|
|
11
|
-
"decorations": [
|
|
12
|
-
{"type": "header", "text": "柱:第1章"},
|
|
13
|
-
{"type": "footer", "text": "3"},
|
|
14
|
-
{"type": "index", "text": "索引用の印"}
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
{"id": "p0004_0", "status": "ocr_failed", "decorations": []},
|
|
18
|
-
{"id": "p0005_0", "status": "ok", "decorations": [{"type": "footer", "text": "5"}]}
|
|
19
|
-
],
|
|
20
|
-
"files": [
|
|
21
|
-
{"file": "001_front.json", "id": null, "chars": 18, "json_chars": 270},
|
|
22
|
-
{"file": "002_s1.json", "id": "s1", "chars": 155, "json_chars": 2765},
|
|
23
|
-
{"file": "003_s2.json", "id": "s2", "chars": 25, "json_chars": 385}
|
|
24
|
-
],
|
|
25
|
-
"toc": [
|
|
26
|
-
{
|
|
27
|
-
"id": "s1",
|
|
28
|
-
"level": 1,
|
|
29
|
-
"title": "第1章 はじめの章",
|
|
30
|
-
"file": "002_s1.json",
|
|
31
|
-
"children": [
|
|
32
|
-
{
|
|
33
|
-
"id": "s1.1",
|
|
34
|
-
"level": 2,
|
|
35
|
-
"title": "1.1 最初の節",
|
|
36
|
-
"file": "002_s1.json",
|
|
37
|
-
"children": [
|
|
38
|
-
{"id": "s1.1.1", "level": 3, "title": "1.1.1 さらに深い項", "file": "002_s1.json", "children": []}
|
|
39
|
-
]
|
|
40
|
-
}
|
|
41
|
-
]
|
|
42
|
-
},
|
|
43
|
-
{"id": "s2", "level": 1, "title": "第2章 次の章", "file": "003_s2.json", "children": []}
|
|
44
|
-
]
|
|
45
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"title": "テストの本",
|
|
4
|
+
"source": {"book": "book.json", "sha256": "7f347e4d64e748a7d704169abd0003f26c060b1aa68862006f9f151dd7f9954b"},
|
|
5
|
+
"split_chars": 12000,
|
|
6
|
+
"pages": [
|
|
7
|
+
{"id": "p0001_0", "status": "ok", "decorations": [{"type": "header", "text": "柱:テストの本"}, {"type": "footer", "text": "1"}]},
|
|
8
|
+
{
|
|
9
|
+
"id": "p0003_0",
|
|
10
|
+
"status": "ok",
|
|
11
|
+
"decorations": [
|
|
12
|
+
{"type": "header", "text": "柱:第1章"},
|
|
13
|
+
{"type": "footer", "text": "3"},
|
|
14
|
+
{"type": "index", "text": "索引用の印"}
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{"id": "p0004_0", "status": "ocr_failed", "decorations": []},
|
|
18
|
+
{"id": "p0005_0", "status": "ok", "decorations": [{"type": "footer", "text": "5"}]}
|
|
19
|
+
],
|
|
20
|
+
"files": [
|
|
21
|
+
{"file": "001_front.json", "id": null, "chars": 18, "json_chars": 270},
|
|
22
|
+
{"file": "002_s1.json", "id": "s1", "chars": 155, "json_chars": 2765},
|
|
23
|
+
{"file": "003_s2.json", "id": "s2", "chars": 25, "json_chars": 385}
|
|
24
|
+
],
|
|
25
|
+
"toc": [
|
|
26
|
+
{
|
|
27
|
+
"id": "s1",
|
|
28
|
+
"level": 1,
|
|
29
|
+
"title": "第1章 はじめの章",
|
|
30
|
+
"file": "002_s1.json",
|
|
31
|
+
"children": [
|
|
32
|
+
{
|
|
33
|
+
"id": "s1.1",
|
|
34
|
+
"level": 2,
|
|
35
|
+
"title": "1.1 最初の節",
|
|
36
|
+
"file": "002_s1.json",
|
|
37
|
+
"children": [
|
|
38
|
+
{"id": "s1.1.1", "level": 3, "title": "1.1.1 さらに深い項", "file": "002_s1.json", "children": []}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
{"id": "s2", "level": 1, "title": "第2章 次の章", "file": "003_s2.json", "children": []}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 2,
|
|
3
|
-
"file": "001_front.json",
|
|
4
|
-
"id": null,
|
|
5
|
-
"ancestors": [],
|
|
6
|
-
"body": [
|
|
7
|
-
{
|
|
8
|
-
"type": "paragraph",
|
|
9
|
-
"id": "p1",
|
|
10
|
-
"source": ["p0001_0#1"],
|
|
11
|
-
"sentences": [
|
|
12
|
-
{"id": "p1.1", "text": "まえおきの段落。"},
|
|
13
|
-
{"id": "p1.2", "text": "見出しより前にある。"}
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"file": "001_front.json",
|
|
4
|
+
"id": null,
|
|
5
|
+
"ancestors": [],
|
|
6
|
+
"body": [
|
|
7
|
+
{
|
|
8
|
+
"type": "paragraph",
|
|
9
|
+
"id": "p1",
|
|
10
|
+
"source": ["p0001_0#1"],
|
|
11
|
+
"sentences": [
|
|
12
|
+
{"id": "p1.1", "text": "まえおきの段落。"},
|
|
13
|
+
{"id": "p1.2", "text": "見出しより前にある。"}
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 2,
|
|
3
|
-
"file": "002_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#2"],
|
|
13
|
-
"children": [
|
|
14
|
-
{
|
|
15
|
-
"type": "paragraph",
|
|
16
|
-
"id": "p2",
|
|
17
|
-
"source": ["p0001_0#3"],
|
|
18
|
-
"sentences": [
|
|
19
|
-
{"id": "p2.1", "text": "章の最初の段落。"},
|
|
20
|
-
{"id": "p2.2", "text": "二つ目の文!"},
|
|
21
|
-
{"id": "p2.3", "text": "三つ目の文?"}
|
|
22
|
-
]
|
|
23
|
-
},
|
|
24
|
-
{"type": "section_ref", "id": "s1.1", "level": 2, "title": "1.1 最初の節", "file": "003_s1.1.json"}
|
|
25
|
-
]
|
|
26
|
-
}
|
|
27
|
-
]
|
|
28
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"file": "002_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#2"],
|
|
13
|
+
"children": [
|
|
14
|
+
{
|
|
15
|
+
"type": "paragraph",
|
|
16
|
+
"id": "p2",
|
|
17
|
+
"source": ["p0001_0#3"],
|
|
18
|
+
"sentences": [
|
|
19
|
+
{"id": "p2.1", "text": "章の最初の段落。"},
|
|
20
|
+
{"id": "p2.2", "text": "二つ目の文!"},
|
|
21
|
+
{"id": "p2.3", "text": "三つ目の文?"}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{"type": "section_ref", "id": "s1.1", "level": 2, "title": "1.1 最初の節", "file": "003_s1.1.json"}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 2,
|
|
3
|
-
"file": "003_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": "1.1 最初の節",
|
|
14
|
-
"source": ["p0001_0#4"],
|
|
15
|
-
"children": [
|
|
16
|
-
{
|
|
17
|
-
"type": "paragraph",
|
|
18
|
-
"id": "p3",
|
|
19
|
-
"source": ["p0001_0#5", "p0003_0#1"],
|
|
20
|
-
"sentences": [
|
|
21
|
-
{"id": "p3.1", "text": "彼は「行こう。もう時間だ。」と言った。"},
|
|
22
|
-
{"id": "p3.2", "text": "そして段落はページの終わりで文の途中のまま次のページへ続いて、ここで終わる。"}
|
|
23
|
-
]
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"type": "list",
|
|
27
|
-
"id": "l1",
|
|
28
|
-
"source": ["p0003_0#2", "p0003_0#3", "p0003_0#4"],
|
|
29
|
-
"items": [
|
|
30
|
-
{
|
|
31
|
-
"id": "l1.1",
|
|
32
|
-
"source": ["p0003_0#2"],
|
|
33
|
-
"sentences": [
|
|
34
|
-
{"id": "l1.1.1", "text": "箇条書きの一つ目。"}
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"id": "l1.2",
|
|
39
|
-
"source": ["p0003_0#3"],
|
|
40
|
-
"sentences": [
|
|
41
|
-
{"id": "l1.2.1", "text": "箇条書きの二つ目。"},
|
|
42
|
-
{"id": "l1.2.2", "text": "補足の文。"}
|
|
43
|
-
]
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"id": "l1.3",
|
|
47
|
-
"source": ["p0003_0#4"],
|
|
48
|
-
"sentences": [
|
|
49
|
-
{"id": "l1.3.1", "text": "箇条書きの三つ目"}
|
|
50
|
-
]
|
|
51
|
-
}
|
|
52
|
-
]
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"type": "figure",
|
|
56
|
-
"id": "f1",
|
|
57
|
-
"src": "figures/p0003_0_0.png",
|
|
58
|
-
"text": ["図の中の文字"],
|
|
59
|
-
"source": ["p0003_0#5"]
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"type": "caption",
|
|
63
|
-
"id": "c1",
|
|
64
|
-
"text": "図1 テストの図",
|
|
65
|
-
"source": ["p0003_0#6"]
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"type": "table",
|
|
69
|
-
"id": "t1",
|
|
70
|
-
"n_row": 2,
|
|
71
|
-
"n_col": 2,
|
|
72
|
-
"cells": [
|
|
73
|
-
{"row": 0, "col": 0, "row_span": 1, "col_span": 1, "text": "見出しA"},
|
|
74
|
-
{"row": 0, "col": 1, "row_span": 1, "col_span": 1, "text": "見出しB"},
|
|
75
|
-
{"row": 1, "col": 0, "row_span": 1, "col_span": 1, "text": "値1"},
|
|
76
|
-
{"row": 1, "col": 1, "row_span": 1, "col_span": 1, "text": "値2"}
|
|
77
|
-
],
|
|
78
|
-
"source": ["p0003_0#7"]
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"type": "caption",
|
|
82
|
-
"id": "c2",
|
|
83
|
-
"text": "表1 テストの表",
|
|
84
|
-
"source": ["p0003_0#8"]
|
|
85
|
-
},
|
|
86
|
-
{"type": "section_ref", "id": "s1.1.1", "level": 3, "title": "1.1.1 さらに深い項", "file": "004_s1.1.1.json"}
|
|
87
|
-
]
|
|
88
|
-
}
|
|
89
|
-
]
|
|
90
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"file": "003_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": "1.1 最初の節",
|
|
14
|
+
"source": ["p0001_0#4"],
|
|
15
|
+
"children": [
|
|
16
|
+
{
|
|
17
|
+
"type": "paragraph",
|
|
18
|
+
"id": "p3",
|
|
19
|
+
"source": ["p0001_0#5", "p0003_0#1"],
|
|
20
|
+
"sentences": [
|
|
21
|
+
{"id": "p3.1", "text": "彼は「行こう。もう時間だ。」と言った。"},
|
|
22
|
+
{"id": "p3.2", "text": "そして段落はページの終わりで文の途中のまま次のページへ続いて、ここで終わる。"}
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "list",
|
|
27
|
+
"id": "l1",
|
|
28
|
+
"source": ["p0003_0#2", "p0003_0#3", "p0003_0#4"],
|
|
29
|
+
"items": [
|
|
30
|
+
{
|
|
31
|
+
"id": "l1.1",
|
|
32
|
+
"source": ["p0003_0#2"],
|
|
33
|
+
"sentences": [
|
|
34
|
+
{"id": "l1.1.1", "text": "箇条書きの一つ目。"}
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"id": "l1.2",
|
|
39
|
+
"source": ["p0003_0#3"],
|
|
40
|
+
"sentences": [
|
|
41
|
+
{"id": "l1.2.1", "text": "箇条書きの二つ目。"},
|
|
42
|
+
{"id": "l1.2.2", "text": "補足の文。"}
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"id": "l1.3",
|
|
47
|
+
"source": ["p0003_0#4"],
|
|
48
|
+
"sentences": [
|
|
49
|
+
{"id": "l1.3.1", "text": "箇条書きの三つ目"}
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"type": "figure",
|
|
56
|
+
"id": "f1",
|
|
57
|
+
"src": "figures/p0003_0_0.png",
|
|
58
|
+
"text": ["図の中の文字"],
|
|
59
|
+
"source": ["p0003_0#5"]
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"type": "caption",
|
|
63
|
+
"id": "c1",
|
|
64
|
+
"text": "図1 テストの図",
|
|
65
|
+
"source": ["p0003_0#6"]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"type": "table",
|
|
69
|
+
"id": "t1",
|
|
70
|
+
"n_row": 2,
|
|
71
|
+
"n_col": 2,
|
|
72
|
+
"cells": [
|
|
73
|
+
{"row": 0, "col": 0, "row_span": 1, "col_span": 1, "text": "見出しA"},
|
|
74
|
+
{"row": 0, "col": 1, "row_span": 1, "col_span": 1, "text": "見出しB"},
|
|
75
|
+
{"row": 1, "col": 0, "row_span": 1, "col_span": 1, "text": "値1"},
|
|
76
|
+
{"row": 1, "col": 1, "row_span": 1, "col_span": 1, "text": "値2"}
|
|
77
|
+
],
|
|
78
|
+
"source": ["p0003_0#7"]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"type": "caption",
|
|
82
|
+
"id": "c2",
|
|
83
|
+
"text": "表1 テストの表",
|
|
84
|
+
"source": ["p0003_0#8"]
|
|
85
|
+
},
|
|
86
|
+
{"type": "section_ref", "id": "s1.1.1", "level": 3, "title": "1.1.1 さらに深い項", "file": "004_s1.1.1.json"}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 2,
|
|
3
|
-
"file": "004_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": "1.1 最初の節"}
|
|
8
|
-
],
|
|
9
|
-
"body": [
|
|
10
|
-
{
|
|
11
|
-
"type": "section",
|
|
12
|
-
"id": "s1.1.1",
|
|
13
|
-
"level": 3,
|
|
14
|
-
"title": "1.1.1 さらに深い項",
|
|
15
|
-
"source": ["p0005_0#0"],
|
|
16
|
-
"children": [
|
|
17
|
-
{
|
|
18
|
-
"type": "paragraph",
|
|
19
|
-
"id": "p4",
|
|
20
|
-
"source": ["p0005_0#1"],
|
|
21
|
-
"sentences": [
|
|
22
|
-
{"id": "p4.1", "text": "深い項の段落。"}
|
|
23
|
-
]
|
|
24
|
-
}
|
|
25
|
-
]
|
|
26
|
-
}
|
|
27
|
-
]
|
|
28
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"file": "004_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": "1.1 最初の節"}
|
|
8
|
+
],
|
|
9
|
+
"body": [
|
|
10
|
+
{
|
|
11
|
+
"type": "section",
|
|
12
|
+
"id": "s1.1.1",
|
|
13
|
+
"level": 3,
|
|
14
|
+
"title": "1.1.1 さらに深い項",
|
|
15
|
+
"source": ["p0005_0#0"],
|
|
16
|
+
"children": [
|
|
17
|
+
{
|
|
18
|
+
"type": "paragraph",
|
|
19
|
+
"id": "p4",
|
|
20
|
+
"source": ["p0005_0#1"],
|
|
21
|
+
"sentences": [
|
|
22
|
+
{"id": "p4.1", "text": "深い項の段落。"}
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 2,
|
|
3
|
-
"file": "005_s2.json",
|
|
4
|
-
"id": "s2",
|
|
5
|
-
"ancestors": [],
|
|
6
|
-
"body": [
|
|
7
|
-
{
|
|
8
|
-
"type": "section",
|
|
9
|
-
"id": "s2",
|
|
10
|
-
"level": 1,
|
|
11
|
-
"title": "第2章 次の章",
|
|
12
|
-
"source": ["p0005_0#2"],
|
|
13
|
-
"children": [
|
|
14
|
-
{
|
|
15
|
-
"type": "paragraph",
|
|
16
|
-
"id": "p5",
|
|
17
|
-
"source": ["p0005_0#3"],
|
|
18
|
-
"sentences": [
|
|
19
|
-
{"id": "p5.1", "text": "最後の段落は文末の記号が無いまま終わる"}
|
|
20
|
-
]
|
|
21
|
-
}
|
|
22
|
-
]
|
|
23
|
-
}
|
|
24
|
-
]
|
|
25
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"file": "005_s2.json",
|
|
4
|
+
"id": "s2",
|
|
5
|
+
"ancestors": [],
|
|
6
|
+
"body": [
|
|
7
|
+
{
|
|
8
|
+
"type": "section",
|
|
9
|
+
"id": "s2",
|
|
10
|
+
"level": 1,
|
|
11
|
+
"title": "第2章 次の章",
|
|
12
|
+
"source": ["p0005_0#2"],
|
|
13
|
+
"children": [
|
|
14
|
+
{
|
|
15
|
+
"type": "paragraph",
|
|
16
|
+
"id": "p5",
|
|
17
|
+
"source": ["p0005_0#3"],
|
|
18
|
+
"sentences": [
|
|
19
|
+
{"id": "p5.1", "text": "最後の段落は文末の記号が無いまま終わる"}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 2,
|
|
3
|
-
"title": "テストの本",
|
|
4
|
-
"source": {"book": "book.json", "sha256": "7f347e4d64e748a7d704169abd0003f26c060b1aa68862006f9f151dd7f9954b"},
|
|
5
|
-
"split_chars": 300,
|
|
6
|
-
"pages": [
|
|
7
|
-
{"id": "p0001_0", "status": "ok", "decorations": [{"type": "header", "text": "柱:テストの本"}, {"type": "footer", "text": "1"}]},
|
|
8
|
-
{
|
|
9
|
-
"id": "p0003_0",
|
|
10
|
-
"status": "ok",
|
|
11
|
-
"decorations": [
|
|
12
|
-
{"type": "header", "text": "柱:第1章"},
|
|
13
|
-
{"type": "footer", "text": "3"},
|
|
14
|
-
{"type": "index", "text": "索引用の印"}
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
{"id": "p0004_0", "status": "ocr_failed", "decorations": []},
|
|
18
|
-
{"id": "p0005_0", "status": "ok", "decorations": [{"type": "footer", "text": "5"}]}
|
|
19
|
-
],
|
|
20
|
-
"files": [
|
|
21
|
-
{"file": "001_front.json", "id": null, "chars": 18, "json_chars": 270},
|
|
22
|
-
{"file": "002_s1.json", "id": "s1", "chars": 28, "json_chars": 557},
|
|
23
|
-
{"file": "003_s1.1.json", "id": "s1.1", "chars": 109, "json_chars": 2039},
|
|
24
|
-
{"file": "004_s1.1.1.json", "id": "s1.1.1", "chars": 18, "json_chars": 492},
|
|
25
|
-
{"file": "005_s2.json", "id": "s2", "chars": 25, "json_chars": 385}
|
|
26
|
-
],
|
|
27
|
-
"toc": [
|
|
28
|
-
{
|
|
29
|
-
"id": "s1",
|
|
30
|
-
"level": 1,
|
|
31
|
-
"title": "第1章 はじめの章",
|
|
32
|
-
"file": "002_s1.json",
|
|
33
|
-
"children": [
|
|
34
|
-
{
|
|
35
|
-
"id": "s1.1",
|
|
36
|
-
"level": 2,
|
|
37
|
-
"title": "1.1 最初の節",
|
|
38
|
-
"file": "003_s1.1.json",
|
|
39
|
-
"children": [
|
|
40
|
-
{"id": "s1.1.1", "level": 3, "title": "1.1.1 さらに深い項", "file": "004_s1.1.1.json", "children": []}
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
]
|
|
44
|
-
},
|
|
45
|
-
{"id": "s2", "level": 1, "title": "第2章 次の章", "file": "005_s2.json", "children": []}
|
|
46
|
-
]
|
|
47
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"title": "テストの本",
|
|
4
|
+
"source": {"book": "book.json", "sha256": "7f347e4d64e748a7d704169abd0003f26c060b1aa68862006f9f151dd7f9954b"},
|
|
5
|
+
"split_chars": 300,
|
|
6
|
+
"pages": [
|
|
7
|
+
{"id": "p0001_0", "status": "ok", "decorations": [{"type": "header", "text": "柱:テストの本"}, {"type": "footer", "text": "1"}]},
|
|
8
|
+
{
|
|
9
|
+
"id": "p0003_0",
|
|
10
|
+
"status": "ok",
|
|
11
|
+
"decorations": [
|
|
12
|
+
{"type": "header", "text": "柱:第1章"},
|
|
13
|
+
{"type": "footer", "text": "3"},
|
|
14
|
+
{"type": "index", "text": "索引用の印"}
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{"id": "p0004_0", "status": "ocr_failed", "decorations": []},
|
|
18
|
+
{"id": "p0005_0", "status": "ok", "decorations": [{"type": "footer", "text": "5"}]}
|
|
19
|
+
],
|
|
20
|
+
"files": [
|
|
21
|
+
{"file": "001_front.json", "id": null, "chars": 18, "json_chars": 270},
|
|
22
|
+
{"file": "002_s1.json", "id": "s1", "chars": 28, "json_chars": 557},
|
|
23
|
+
{"file": "003_s1.1.json", "id": "s1.1", "chars": 109, "json_chars": 2039},
|
|
24
|
+
{"file": "004_s1.1.1.json", "id": "s1.1.1", "chars": 18, "json_chars": 492},
|
|
25
|
+
{"file": "005_s2.json", "id": "s2", "chars": 25, "json_chars": 385}
|
|
26
|
+
],
|
|
27
|
+
"toc": [
|
|
28
|
+
{
|
|
29
|
+
"id": "s1",
|
|
30
|
+
"level": 1,
|
|
31
|
+
"title": "第1章 はじめの章",
|
|
32
|
+
"file": "002_s1.json",
|
|
33
|
+
"children": [
|
|
34
|
+
{
|
|
35
|
+
"id": "s1.1",
|
|
36
|
+
"level": 2,
|
|
37
|
+
"title": "1.1 最初の節",
|
|
38
|
+
"file": "003_s1.1.json",
|
|
39
|
+
"children": [
|
|
40
|
+
{"id": "s1.1.1", "level": 3, "title": "1.1.1 さらに深い項", "file": "004_s1.1.1.json", "children": []}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{"id": "s2", "level": 1, "title": "第2章 次の章", "file": "005_s2.json", "children": []}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 2,
|
|
3
|
-
"file": "001_front.json",
|
|
4
|
-
"id": null,
|
|
5
|
-
"ancestors": [],
|
|
6
|
-
"body": [
|
|
7
|
-
{
|
|
8
|
-
"type": "paragraph",
|
|
9
|
-
"id": "p1",
|
|
10
|
-
"source": ["p0001_0#1"],
|
|
11
|
-
"sentences": [
|
|
12
|
-
{"id": "p1.1", "text": "まえおきの段落。"},
|
|
13
|
-
{"id": "p1.2", "text": "見出しより前の本文である。"}
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"file": "001_front.json",
|
|
4
|
+
"id": null,
|
|
5
|
+
"ancestors": [],
|
|
6
|
+
"body": [
|
|
7
|
+
{
|
|
8
|
+
"type": "paragraph",
|
|
9
|
+
"id": "p1",
|
|
10
|
+
"source": ["p0001_0#1"],
|
|
11
|
+
"sentences": [
|
|
12
|
+
{"id": "p1.1", "text": "まえおきの段落。"},
|
|
13
|
+
{"id": "p1.2", "text": "見出しより前の本文である。"}
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|