@yanqirenshi/hefti 2.1.1 → 2.2.0
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 +84 -1
- package/examples/editions/rich_book/01_sample/001_front.json +17 -0
- package/examples/editions/rich_book/01_sample/002_s1.json +127 -0
- package/examples/editions/rich_book/01_sample/003_s2.json +25 -0
- package/examples/editions/rich_book/01_sample/index.json +53 -0
- package/examples/editions/rich_book/02_sample/001_front.json +17 -0
- package/examples/editions/rich_book/02_sample/002_s1.json +123 -0
- package/examples/editions/rich_book/02_sample/003_s2.json +25 -0
- package/examples/editions/rich_book/02_sample/index.json +46 -0
- package/examples/editions/rich_book/original/001_front.json +17 -0
- package/examples/editions/rich_book/original/002_s1.json +123 -0
- package/examples/editions/rich_book/original/003_s2.json +25 -0
- package/examples/editions/rich_book/original/index.json +45 -0
- package/examples/invalid/index/edition_base_empty.json +124 -0
- package/examples/invalid/index/edition_base_number.json +124 -0
- package/examples/invalid/index/edition_created_at_date_only.json +124 -0
- package/examples/invalid/index/edition_created_at_fraction.json +124 -0
- package/examples/invalid/index/edition_created_at_no_offset.json +124 -0
- package/examples/invalid/index/edition_created_at_no_seconds.json +124 -0
- package/examples/invalid/index/edition_created_at_number.json +124 -0
- package/examples/invalid/index/edition_created_at_space.json +124 -0
- package/examples/invalid/index/edition_editor_empty.json +124 -0
- package/examples/invalid/index/edition_editor_hyphens_only.json +124 -0
- package/examples/invalid/index/edition_editor_number.json +124 -0
- package/examples/invalid/index/edition_editor_underscore.json +124 -0
- package/examples/invalid/index/edition_editor_uppercase.json +124 -0
- package/examples/invalid/index/edition_name_empty.json +124 -0
- package/examples/invalid/index/edition_name_number.json +124 -0
- package/examples/invalid/index/edition_no_base.json +123 -0
- package/examples/invalid/index/edition_no_created_at.json +123 -0
- package/examples/invalid/index/edition_no_editor.json +123 -0
- package/examples/invalid/index/edition_no_name.json +123 -0
- package/examples/invalid/index/edition_no_retired_ids.json +121 -0
- package/examples/invalid/index/edition_retired_ids_duplicate.json +125 -0
- package/examples/invalid/index/edition_retired_ids_number_item.json +125 -0
- package/examples/invalid/index/edition_retired_ids_string.json +122 -0
- package/examples/invalid/index/edition_retired_notes_number_value.json +124 -0
- package/examples/invalid/index/edition_retired_notes_string.json +122 -0
- package/examples/invalid/index/edition_string.json +113 -0
- package/examples/invalid/part/caption--note_no_origin.json +73 -0
- package/examples/invalid/part/caption--note_number.json +80 -0
- package/examples/invalid/part/caption--origin_ids_string.json +77 -0
- package/examples/invalid/part/caption--origin_no_edition.json +78 -0
- package/examples/invalid/part/caption--origin_text_array.json +81 -0
- package/examples/invalid/part/figure--notes_key_leading_zero.json +84 -0
- package/examples/invalid/part/figure--notes_key_letter.json +84 -0
- package/examples/invalid/part/figure--notes_key_negative.json +84 -0
- package/examples/invalid/part/figure--notes_no_origin.json +75 -0
- package/examples/invalid/part/figure--notes_string.json +82 -0
- package/examples/invalid/part/figure--notes_value_number.json +84 -0
- package/examples/invalid/part/figure--origin_edition_empty.json +81 -0
- package/examples/invalid/part/figure--origin_ids_string.json +79 -0
- package/examples/invalid/part/figure--origin_no_edition.json +80 -0
- package/examples/invalid/part/figure--origin_no_ids.json +78 -0
- package/examples/invalid/part/figure--origin_string.json +73 -0
- package/examples/invalid/part/figure--origin_text_number_item.json +81 -0
- package/examples/invalid/part/figure--origin_text_string.json +79 -0
- package/examples/invalid/part/list--item_sentence_note_no_origin.json +93 -0
- package/examples/invalid/part/list--item_sentence_note_number.json +100 -0
- package/examples/invalid/part/list--item_sentence_origin_no_ids.json +96 -0
- package/examples/invalid/part/list--item_sentence_origin_text_array.json +101 -0
- package/examples/invalid/part/paragraph--sentence_note_no_origin.json +26 -0
- package/examples/invalid/part/paragraph--sentence_note_number.json +33 -0
- package/examples/invalid/part/paragraph--sentence_origin_edition_empty.json +32 -0
- package/examples/invalid/part/paragraph--sentence_origin_edition_number.json +32 -0
- package/examples/invalid/part/paragraph--sentence_origin_ids_number_item.json +32 -0
- package/examples/invalid/part/paragraph--sentence_origin_ids_string.json +30 -0
- package/examples/invalid/part/paragraph--sentence_origin_no_edition.json +31 -0
- package/examples/invalid/part/paragraph--sentence_origin_no_ids.json +29 -0
- package/examples/invalid/part/paragraph--sentence_origin_string.json +26 -0
- package/examples/invalid/part/paragraph--sentence_origin_text_array.json +34 -0
- package/examples/invalid/part/table--cell_note_no_origin.json +87 -0
- package/examples/invalid/part/table--cell_note_number.json +94 -0
- package/examples/invalid/part/table--cell_origin_ids_string.json +91 -0
- package/examples/invalid/part/table--cell_origin_no_edition.json +92 -0
- package/examples/invalid/part/table--cell_origin_text_array.json +95 -0
- package/index.d.ts +3 -0
- package/index.js +168 -4
- package/package.json +1 -1
- package/schema/structure-index.schema.json +52 -0
- package/schema/structure-part.schema.json +116 -4
- package/types.d.ts +99 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"title": "テストの本",
|
|
4
|
+
"source": {
|
|
5
|
+
"book": "book.json",
|
|
6
|
+
"sha256": "b9cf0e2d7620250d09d1c9124cf40f88999c0308f743f0560d2965da21a65555"
|
|
7
|
+
},
|
|
8
|
+
"split_chars": 1,
|
|
9
|
+
"pages": [
|
|
10
|
+
{
|
|
11
|
+
"id": "p0001_0",
|
|
12
|
+
"status": "ok",
|
|
13
|
+
"decorations": [
|
|
14
|
+
{
|
|
15
|
+
"type": "header",
|
|
16
|
+
"text": "柱:テストの本"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"type": "footer",
|
|
20
|
+
"text": "1"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"id": "p0002_0",
|
|
26
|
+
"status": "ok",
|
|
27
|
+
"decorations": [
|
|
28
|
+
{
|
|
29
|
+
"type": "footer",
|
|
30
|
+
"text": "2"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"files": [
|
|
36
|
+
{
|
|
37
|
+
"file": "001_front.json",
|
|
38
|
+
"id": null,
|
|
39
|
+
"chars": 21,
|
|
40
|
+
"json_chars": 273
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"file": "002_s1.json",
|
|
44
|
+
"id": "s1",
|
|
45
|
+
"chars": 51,
|
|
46
|
+
"json_chars": 1112
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"file": "003_s1.1.json",
|
|
50
|
+
"id": "s1.1",
|
|
51
|
+
"chars": 32,
|
|
52
|
+
"json_chars": 862
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"file": "004_s1.1.1.json",
|
|
56
|
+
"id": "s1.1.1",
|
|
57
|
+
"chars": 21,
|
|
58
|
+
"json_chars": 959
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"file": "005_s1.2.json",
|
|
62
|
+
"id": "s1.2",
|
|
63
|
+
"chars": 22,
|
|
64
|
+
"json_chars": 473
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"file": "006_s2.json",
|
|
68
|
+
"id": "s2",
|
|
69
|
+
"chars": 291,
|
|
70
|
+
"json_chars": 2008
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"toc": [
|
|
74
|
+
{
|
|
75
|
+
"id": "s1",
|
|
76
|
+
"level": 1,
|
|
77
|
+
"title": "第1章 はじめの章",
|
|
78
|
+
"file": "002_s1.json",
|
|
79
|
+
"children": [
|
|
80
|
+
{
|
|
81
|
+
"id": "s1.1",
|
|
82
|
+
"level": 2,
|
|
83
|
+
"title": "1.1 最初の節",
|
|
84
|
+
"file": "003_s1.1.json",
|
|
85
|
+
"children": [
|
|
86
|
+
{
|
|
87
|
+
"id": "s1.1.1",
|
|
88
|
+
"level": 3,
|
|
89
|
+
"title": "1.1.1 深い項",
|
|
90
|
+
"file": "004_s1.1.1.json",
|
|
91
|
+
"children": []
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"id": "s1.2",
|
|
97
|
+
"level": 2,
|
|
98
|
+
"title": "1.2 二つ目の節",
|
|
99
|
+
"file": "005_s1.2.json",
|
|
100
|
+
"children": []
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"id": "s2",
|
|
106
|
+
"level": 1,
|
|
107
|
+
"title": "第2章 子の無い大きな章",
|
|
108
|
+
"file": "006_s2.json",
|
|
109
|
+
"children": []
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"edition": {
|
|
113
|
+
"name": "01_fix",
|
|
114
|
+
"base": "original",
|
|
115
|
+
"editor": "ocr-fix",
|
|
116
|
+
"created_at": "2026-11-24T16:36:59+09:00",
|
|
117
|
+
"retired_ids": [
|
|
118
|
+
"p2.3"
|
|
119
|
+
],
|
|
120
|
+
"retired_notes": "重複のため消した"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"title": "テストの本",
|
|
4
|
+
"source": {
|
|
5
|
+
"book": "book.json",
|
|
6
|
+
"sha256": "b9cf0e2d7620250d09d1c9124cf40f88999c0308f743f0560d2965da21a65555"
|
|
7
|
+
},
|
|
8
|
+
"split_chars": 1,
|
|
9
|
+
"pages": [
|
|
10
|
+
{
|
|
11
|
+
"id": "p0001_0",
|
|
12
|
+
"status": "ok",
|
|
13
|
+
"decorations": [
|
|
14
|
+
{
|
|
15
|
+
"type": "header",
|
|
16
|
+
"text": "柱:テストの本"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"type": "footer",
|
|
20
|
+
"text": "1"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"id": "p0002_0",
|
|
26
|
+
"status": "ok",
|
|
27
|
+
"decorations": [
|
|
28
|
+
{
|
|
29
|
+
"type": "footer",
|
|
30
|
+
"text": "2"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"files": [
|
|
36
|
+
{
|
|
37
|
+
"file": "001_front.json",
|
|
38
|
+
"id": null,
|
|
39
|
+
"chars": 21,
|
|
40
|
+
"json_chars": 273
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"file": "002_s1.json",
|
|
44
|
+
"id": "s1",
|
|
45
|
+
"chars": 51,
|
|
46
|
+
"json_chars": 1112
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"file": "003_s1.1.json",
|
|
50
|
+
"id": "s1.1",
|
|
51
|
+
"chars": 32,
|
|
52
|
+
"json_chars": 862
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"file": "004_s1.1.1.json",
|
|
56
|
+
"id": "s1.1.1",
|
|
57
|
+
"chars": 21,
|
|
58
|
+
"json_chars": 959
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"file": "005_s1.2.json",
|
|
62
|
+
"id": "s1.2",
|
|
63
|
+
"chars": 22,
|
|
64
|
+
"json_chars": 473
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"file": "006_s2.json",
|
|
68
|
+
"id": "s2",
|
|
69
|
+
"chars": 291,
|
|
70
|
+
"json_chars": 2008
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"toc": [
|
|
74
|
+
{
|
|
75
|
+
"id": "s1",
|
|
76
|
+
"level": 1,
|
|
77
|
+
"title": "第1章 はじめの章",
|
|
78
|
+
"file": "002_s1.json",
|
|
79
|
+
"children": [
|
|
80
|
+
{
|
|
81
|
+
"id": "s1.1",
|
|
82
|
+
"level": 2,
|
|
83
|
+
"title": "1.1 最初の節",
|
|
84
|
+
"file": "003_s1.1.json",
|
|
85
|
+
"children": [
|
|
86
|
+
{
|
|
87
|
+
"id": "s1.1.1",
|
|
88
|
+
"level": 3,
|
|
89
|
+
"title": "1.1.1 深い項",
|
|
90
|
+
"file": "004_s1.1.1.json",
|
|
91
|
+
"children": []
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"id": "s1.2",
|
|
97
|
+
"level": 2,
|
|
98
|
+
"title": "1.2 二つ目の節",
|
|
99
|
+
"file": "005_s1.2.json",
|
|
100
|
+
"children": []
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"id": "s2",
|
|
106
|
+
"level": 1,
|
|
107
|
+
"title": "第2章 子の無い大きな章",
|
|
108
|
+
"file": "006_s2.json",
|
|
109
|
+
"children": []
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"edition": "01_fix"
|
|
113
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"file": "003_s1.1.json",
|
|
4
|
+
"id": "s1.1",
|
|
5
|
+
"ancestors": [
|
|
6
|
+
{
|
|
7
|
+
"id": "s1",
|
|
8
|
+
"level": 1,
|
|
9
|
+
"title": "第1章 はじめの章"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"body": [
|
|
13
|
+
{
|
|
14
|
+
"type": "section",
|
|
15
|
+
"id": "s1.1",
|
|
16
|
+
"level": 2,
|
|
17
|
+
"title": "1.1 最初の節",
|
|
18
|
+
"source": [
|
|
19
|
+
"p0001_0#6"
|
|
20
|
+
],
|
|
21
|
+
"children": [
|
|
22
|
+
{
|
|
23
|
+
"type": "paragraph",
|
|
24
|
+
"id": "p3",
|
|
25
|
+
"source": [
|
|
26
|
+
"p0001_0#7"
|
|
27
|
+
],
|
|
28
|
+
"sentences": [
|
|
29
|
+
{
|
|
30
|
+
"id": "p3.1",
|
|
31
|
+
"text": "節の段落。"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"id": "p3.2",
|
|
35
|
+
"text": "ここに文がある。"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"id": "p3.3",
|
|
39
|
+
"text": "もう一文。"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"type": "figure",
|
|
45
|
+
"id": "f1",
|
|
46
|
+
"src": "figures/zu1.png",
|
|
47
|
+
"text": [
|
|
48
|
+
"図の中の文字"
|
|
49
|
+
],
|
|
50
|
+
"source": [
|
|
51
|
+
"p0001_0#8"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"type": "caption",
|
|
56
|
+
"id": "c1",
|
|
57
|
+
"text": "図1 テストの図",
|
|
58
|
+
"source": [
|
|
59
|
+
"p0001_0#9"
|
|
60
|
+
],
|
|
61
|
+
"note": "直した"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"type": "section_ref",
|
|
65
|
+
"id": "s1.1.1",
|
|
66
|
+
"level": 3,
|
|
67
|
+
"title": "1.1.1 深い項",
|
|
68
|
+
"file": "004_s1.1.1.json"
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"file": "003_s1.1.json",
|
|
4
|
+
"id": "s1.1",
|
|
5
|
+
"ancestors": [
|
|
6
|
+
{
|
|
7
|
+
"id": "s1",
|
|
8
|
+
"level": 1,
|
|
9
|
+
"title": "第1章 はじめの章"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"body": [
|
|
13
|
+
{
|
|
14
|
+
"type": "section",
|
|
15
|
+
"id": "s1.1",
|
|
16
|
+
"level": 2,
|
|
17
|
+
"title": "1.1 最初の節",
|
|
18
|
+
"source": [
|
|
19
|
+
"p0001_0#6"
|
|
20
|
+
],
|
|
21
|
+
"children": [
|
|
22
|
+
{
|
|
23
|
+
"type": "paragraph",
|
|
24
|
+
"id": "p3",
|
|
25
|
+
"source": [
|
|
26
|
+
"p0001_0#7"
|
|
27
|
+
],
|
|
28
|
+
"sentences": [
|
|
29
|
+
{
|
|
30
|
+
"id": "p3.1",
|
|
31
|
+
"text": "節の段落。"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"id": "p3.2",
|
|
35
|
+
"text": "ここに文がある。"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"id": "p3.3",
|
|
39
|
+
"text": "もう一文。"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"type": "figure",
|
|
45
|
+
"id": "f1",
|
|
46
|
+
"src": "figures/zu1.png",
|
|
47
|
+
"text": [
|
|
48
|
+
"図の中の文字"
|
|
49
|
+
],
|
|
50
|
+
"source": [
|
|
51
|
+
"p0001_0#8"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"type": "caption",
|
|
56
|
+
"id": "c1",
|
|
57
|
+
"text": "図1 テストの図",
|
|
58
|
+
"source": [
|
|
59
|
+
"p0001_0#9"
|
|
60
|
+
],
|
|
61
|
+
"origin": {
|
|
62
|
+
"edition": "original",
|
|
63
|
+
"ids": [
|
|
64
|
+
"p1.1"
|
|
65
|
+
],
|
|
66
|
+
"text": "元の文。"
|
|
67
|
+
},
|
|
68
|
+
"note": 1
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"type": "section_ref",
|
|
72
|
+
"id": "s1.1.1",
|
|
73
|
+
"level": 3,
|
|
74
|
+
"title": "1.1.1 深い項",
|
|
75
|
+
"file": "004_s1.1.1.json"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"file": "003_s1.1.json",
|
|
4
|
+
"id": "s1.1",
|
|
5
|
+
"ancestors": [
|
|
6
|
+
{
|
|
7
|
+
"id": "s1",
|
|
8
|
+
"level": 1,
|
|
9
|
+
"title": "第1章 はじめの章"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"body": [
|
|
13
|
+
{
|
|
14
|
+
"type": "section",
|
|
15
|
+
"id": "s1.1",
|
|
16
|
+
"level": 2,
|
|
17
|
+
"title": "1.1 最初の節",
|
|
18
|
+
"source": [
|
|
19
|
+
"p0001_0#6"
|
|
20
|
+
],
|
|
21
|
+
"children": [
|
|
22
|
+
{
|
|
23
|
+
"type": "paragraph",
|
|
24
|
+
"id": "p3",
|
|
25
|
+
"source": [
|
|
26
|
+
"p0001_0#7"
|
|
27
|
+
],
|
|
28
|
+
"sentences": [
|
|
29
|
+
{
|
|
30
|
+
"id": "p3.1",
|
|
31
|
+
"text": "節の段落。"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"id": "p3.2",
|
|
35
|
+
"text": "ここに文がある。"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"id": "p3.3",
|
|
39
|
+
"text": "もう一文。"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"type": "figure",
|
|
45
|
+
"id": "f1",
|
|
46
|
+
"src": "figures/zu1.png",
|
|
47
|
+
"text": [
|
|
48
|
+
"図の中の文字"
|
|
49
|
+
],
|
|
50
|
+
"source": [
|
|
51
|
+
"p0001_0#8"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"type": "caption",
|
|
56
|
+
"id": "c1",
|
|
57
|
+
"text": "図1 テストの図",
|
|
58
|
+
"source": [
|
|
59
|
+
"p0001_0#9"
|
|
60
|
+
],
|
|
61
|
+
"origin": {
|
|
62
|
+
"edition": "original",
|
|
63
|
+
"ids": "p1.1",
|
|
64
|
+
"text": "元の文。"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"type": "section_ref",
|
|
69
|
+
"id": "s1.1.1",
|
|
70
|
+
"level": 3,
|
|
71
|
+
"title": "1.1.1 深い項",
|
|
72
|
+
"file": "004_s1.1.1.json"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"file": "003_s1.1.json",
|
|
4
|
+
"id": "s1.1",
|
|
5
|
+
"ancestors": [
|
|
6
|
+
{
|
|
7
|
+
"id": "s1",
|
|
8
|
+
"level": 1,
|
|
9
|
+
"title": "第1章 はじめの章"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"body": [
|
|
13
|
+
{
|
|
14
|
+
"type": "section",
|
|
15
|
+
"id": "s1.1",
|
|
16
|
+
"level": 2,
|
|
17
|
+
"title": "1.1 最初の節",
|
|
18
|
+
"source": [
|
|
19
|
+
"p0001_0#6"
|
|
20
|
+
],
|
|
21
|
+
"children": [
|
|
22
|
+
{
|
|
23
|
+
"type": "paragraph",
|
|
24
|
+
"id": "p3",
|
|
25
|
+
"source": [
|
|
26
|
+
"p0001_0#7"
|
|
27
|
+
],
|
|
28
|
+
"sentences": [
|
|
29
|
+
{
|
|
30
|
+
"id": "p3.1",
|
|
31
|
+
"text": "節の段落。"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"id": "p3.2",
|
|
35
|
+
"text": "ここに文がある。"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"id": "p3.3",
|
|
39
|
+
"text": "もう一文。"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"type": "figure",
|
|
45
|
+
"id": "f1",
|
|
46
|
+
"src": "figures/zu1.png",
|
|
47
|
+
"text": [
|
|
48
|
+
"図の中の文字"
|
|
49
|
+
],
|
|
50
|
+
"source": [
|
|
51
|
+
"p0001_0#8"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"type": "caption",
|
|
56
|
+
"id": "c1",
|
|
57
|
+
"text": "図1 テストの図",
|
|
58
|
+
"source": [
|
|
59
|
+
"p0001_0#9"
|
|
60
|
+
],
|
|
61
|
+
"origin": {
|
|
62
|
+
"ids": [
|
|
63
|
+
"p1.1"
|
|
64
|
+
],
|
|
65
|
+
"text": "元の文。"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"type": "section_ref",
|
|
70
|
+
"id": "s1.1.1",
|
|
71
|
+
"level": 3,
|
|
72
|
+
"title": "1.1.1 深い項",
|
|
73
|
+
"file": "004_s1.1.1.json"
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"file": "003_s1.1.json",
|
|
4
|
+
"id": "s1.1",
|
|
5
|
+
"ancestors": [
|
|
6
|
+
{
|
|
7
|
+
"id": "s1",
|
|
8
|
+
"level": 1,
|
|
9
|
+
"title": "第1章 はじめの章"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"body": [
|
|
13
|
+
{
|
|
14
|
+
"type": "section",
|
|
15
|
+
"id": "s1.1",
|
|
16
|
+
"level": 2,
|
|
17
|
+
"title": "1.1 最初の節",
|
|
18
|
+
"source": [
|
|
19
|
+
"p0001_0#6"
|
|
20
|
+
],
|
|
21
|
+
"children": [
|
|
22
|
+
{
|
|
23
|
+
"type": "paragraph",
|
|
24
|
+
"id": "p3",
|
|
25
|
+
"source": [
|
|
26
|
+
"p0001_0#7"
|
|
27
|
+
],
|
|
28
|
+
"sentences": [
|
|
29
|
+
{
|
|
30
|
+
"id": "p3.1",
|
|
31
|
+
"text": "節の段落。"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"id": "p3.2",
|
|
35
|
+
"text": "ここに文がある。"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"id": "p3.3",
|
|
39
|
+
"text": "もう一文。"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"type": "figure",
|
|
45
|
+
"id": "f1",
|
|
46
|
+
"src": "figures/zu1.png",
|
|
47
|
+
"text": [
|
|
48
|
+
"図の中の文字"
|
|
49
|
+
],
|
|
50
|
+
"source": [
|
|
51
|
+
"p0001_0#8"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"type": "caption",
|
|
56
|
+
"id": "c1",
|
|
57
|
+
"text": "図1 テストの図",
|
|
58
|
+
"source": [
|
|
59
|
+
"p0001_0#9"
|
|
60
|
+
],
|
|
61
|
+
"origin": {
|
|
62
|
+
"edition": "original",
|
|
63
|
+
"ids": [
|
|
64
|
+
"p1.1"
|
|
65
|
+
],
|
|
66
|
+
"text": [
|
|
67
|
+
"元の文。"
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"type": "section_ref",
|
|
73
|
+
"id": "s1.1.1",
|
|
74
|
+
"level": 3,
|
|
75
|
+
"title": "1.1.1 深い項",
|
|
76
|
+
"file": "004_s1.1.1.json"
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"file": "003_s1.1.json",
|
|
4
|
+
"id": "s1.1",
|
|
5
|
+
"ancestors": [
|
|
6
|
+
{
|
|
7
|
+
"id": "s1",
|
|
8
|
+
"level": 1,
|
|
9
|
+
"title": "第1章 はじめの章"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"body": [
|
|
13
|
+
{
|
|
14
|
+
"type": "section",
|
|
15
|
+
"id": "s1.1",
|
|
16
|
+
"level": 2,
|
|
17
|
+
"title": "1.1 最初の節",
|
|
18
|
+
"source": [
|
|
19
|
+
"p0001_0#6"
|
|
20
|
+
],
|
|
21
|
+
"children": [
|
|
22
|
+
{
|
|
23
|
+
"type": "paragraph",
|
|
24
|
+
"id": "p3",
|
|
25
|
+
"source": [
|
|
26
|
+
"p0001_0#7"
|
|
27
|
+
],
|
|
28
|
+
"sentences": [
|
|
29
|
+
{
|
|
30
|
+
"id": "p3.1",
|
|
31
|
+
"text": "節の段落。"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"id": "p3.2",
|
|
35
|
+
"text": "ここに文がある。"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"id": "p3.3",
|
|
39
|
+
"text": "もう一文。"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"type": "figure",
|
|
45
|
+
"id": "f1",
|
|
46
|
+
"src": "figures/zu1.png",
|
|
47
|
+
"text": [
|
|
48
|
+
"図の中の文字"
|
|
49
|
+
],
|
|
50
|
+
"source": [
|
|
51
|
+
"p0001_0#8"
|
|
52
|
+
],
|
|
53
|
+
"origin": {
|
|
54
|
+
"edition": "original",
|
|
55
|
+
"ids": [
|
|
56
|
+
"f1"
|
|
57
|
+
],
|
|
58
|
+
"text": [
|
|
59
|
+
"元の図の文字"
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"notes": {
|
|
63
|
+
"01": "欠けを補った"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"type": "caption",
|
|
68
|
+
"id": "c1",
|
|
69
|
+
"text": "図1 テストの図",
|
|
70
|
+
"source": [
|
|
71
|
+
"p0001_0#9"
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"type": "section_ref",
|
|
76
|
+
"id": "s1.1.1",
|
|
77
|
+
"level": 3,
|
|
78
|
+
"title": "1.1.1 深い項",
|
|
79
|
+
"file": "004_s1.1.1.json"
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|