@yanqirenshi/hefti 2.1.0 → 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/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/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 +3 -0
- package/index.js +168 -4
- package/package.json +3 -2
- 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,26 @@
|
|
|
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": [
|
|
11
|
+
"p0001_0#1"
|
|
12
|
+
],
|
|
13
|
+
"sentences": [
|
|
14
|
+
{
|
|
15
|
+
"id": "p1.1",
|
|
16
|
+
"text": "まえおきの段落。",
|
|
17
|
+
"note": "直した"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"id": "p1.2",
|
|
21
|
+
"text": "見出しより前の本文である。"
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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": [
|
|
11
|
+
"p0001_0#1"
|
|
12
|
+
],
|
|
13
|
+
"sentences": [
|
|
14
|
+
{
|
|
15
|
+
"id": "p1.1",
|
|
16
|
+
"text": "まえおきの段落。",
|
|
17
|
+
"origin": {
|
|
18
|
+
"edition": "original",
|
|
19
|
+
"ids": [
|
|
20
|
+
"p1.1"
|
|
21
|
+
],
|
|
22
|
+
"text": "元の文。"
|
|
23
|
+
},
|
|
24
|
+
"note": 1
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"id": "p1.2",
|
|
28
|
+
"text": "見出しより前の本文である。"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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": [
|
|
11
|
+
"p0001_0#1"
|
|
12
|
+
],
|
|
13
|
+
"sentences": [
|
|
14
|
+
{
|
|
15
|
+
"id": "p1.1",
|
|
16
|
+
"text": "まえおきの段落。",
|
|
17
|
+
"origin": {
|
|
18
|
+
"edition": "",
|
|
19
|
+
"ids": [
|
|
20
|
+
"p1.1"
|
|
21
|
+
],
|
|
22
|
+
"text": "元の文。"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"id": "p1.2",
|
|
27
|
+
"text": "見出しより前の本文である。"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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": [
|
|
11
|
+
"p0001_0#1"
|
|
12
|
+
],
|
|
13
|
+
"sentences": [
|
|
14
|
+
{
|
|
15
|
+
"id": "p1.1",
|
|
16
|
+
"text": "まえおきの段落。",
|
|
17
|
+
"origin": {
|
|
18
|
+
"edition": 1,
|
|
19
|
+
"ids": [
|
|
20
|
+
"p1.1"
|
|
21
|
+
],
|
|
22
|
+
"text": "元の文。"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"id": "p1.2",
|
|
27
|
+
"text": "見出しより前の本文である。"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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": [
|
|
11
|
+
"p0001_0#1"
|
|
12
|
+
],
|
|
13
|
+
"sentences": [
|
|
14
|
+
{
|
|
15
|
+
"id": "p1.1",
|
|
16
|
+
"text": "まえおきの段落。",
|
|
17
|
+
"origin": {
|
|
18
|
+
"edition": "original",
|
|
19
|
+
"ids": [
|
|
20
|
+
1
|
|
21
|
+
],
|
|
22
|
+
"text": "元の文。"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"id": "p1.2",
|
|
27
|
+
"text": "見出しより前の本文である。"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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": [
|
|
11
|
+
"p0001_0#1"
|
|
12
|
+
],
|
|
13
|
+
"sentences": [
|
|
14
|
+
{
|
|
15
|
+
"id": "p1.1",
|
|
16
|
+
"text": "まえおきの段落。",
|
|
17
|
+
"origin": {
|
|
18
|
+
"edition": "original",
|
|
19
|
+
"ids": "p1.1",
|
|
20
|
+
"text": "元の文。"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"id": "p1.2",
|
|
25
|
+
"text": "見出しより前の本文である。"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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": [
|
|
11
|
+
"p0001_0#1"
|
|
12
|
+
],
|
|
13
|
+
"sentences": [
|
|
14
|
+
{
|
|
15
|
+
"id": "p1.1",
|
|
16
|
+
"text": "まえおきの段落。",
|
|
17
|
+
"origin": {
|
|
18
|
+
"ids": [
|
|
19
|
+
"p1.1"
|
|
20
|
+
],
|
|
21
|
+
"text": "元の文。"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"id": "p1.2",
|
|
26
|
+
"text": "見出しより前の本文である。"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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": [
|
|
11
|
+
"p0001_0#1"
|
|
12
|
+
],
|
|
13
|
+
"sentences": [
|
|
14
|
+
{
|
|
15
|
+
"id": "p1.1",
|
|
16
|
+
"text": "まえおきの段落。",
|
|
17
|
+
"origin": {
|
|
18
|
+
"edition": "original",
|
|
19
|
+
"text": "元の文。"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": "p1.2",
|
|
24
|
+
"text": "見出しより前の本文である。"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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": [
|
|
11
|
+
"p0001_0#1"
|
|
12
|
+
],
|
|
13
|
+
"sentences": [
|
|
14
|
+
{
|
|
15
|
+
"id": "p1.1",
|
|
16
|
+
"text": "まえおきの段落。",
|
|
17
|
+
"origin": "original"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"id": "p1.2",
|
|
21
|
+
"text": "見出しより前の本文である。"
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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": [
|
|
11
|
+
"p0001_0#1"
|
|
12
|
+
],
|
|
13
|
+
"sentences": [
|
|
14
|
+
{
|
|
15
|
+
"id": "p1.1",
|
|
16
|
+
"text": "まえおきの段落。",
|
|
17
|
+
"origin": {
|
|
18
|
+
"edition": "original",
|
|
19
|
+
"ids": [
|
|
20
|
+
"p1.1"
|
|
21
|
+
],
|
|
22
|
+
"text": [
|
|
23
|
+
"元の文。"
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "p1.2",
|
|
29
|
+
"text": "見出しより前の本文である。"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"file": "004_s1.1.1.json",
|
|
4
|
+
"id": "s1.1.1",
|
|
5
|
+
"ancestors": [
|
|
6
|
+
{
|
|
7
|
+
"id": "s1",
|
|
8
|
+
"level": 1,
|
|
9
|
+
"title": "第1章 はじめの章"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"id": "s1.1",
|
|
13
|
+
"level": 2,
|
|
14
|
+
"title": "1.1 最初の節"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"body": [
|
|
18
|
+
{
|
|
19
|
+
"type": "section",
|
|
20
|
+
"id": "s1.1.1",
|
|
21
|
+
"level": 3,
|
|
22
|
+
"title": "1.1.1 深い項",
|
|
23
|
+
"source": [
|
|
24
|
+
"p0002_0#0"
|
|
25
|
+
],
|
|
26
|
+
"children": [
|
|
27
|
+
{
|
|
28
|
+
"type": "paragraph",
|
|
29
|
+
"id": "p4",
|
|
30
|
+
"source": [
|
|
31
|
+
"p0002_0#1"
|
|
32
|
+
],
|
|
33
|
+
"sentences": [
|
|
34
|
+
{
|
|
35
|
+
"id": "p4.1",
|
|
36
|
+
"text": "項の段落。"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": "p4.2",
|
|
40
|
+
"text": "深いところの文。"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"type": "table",
|
|
46
|
+
"id": "t1",
|
|
47
|
+
"n_row": 2,
|
|
48
|
+
"n_col": 2,
|
|
49
|
+
"cells": [
|
|
50
|
+
{
|
|
51
|
+
"row": 0,
|
|
52
|
+
"col": 0,
|
|
53
|
+
"row_span": 1,
|
|
54
|
+
"col_span": 1,
|
|
55
|
+
"text": "見出しA",
|
|
56
|
+
"note": "直した"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"row": 0,
|
|
60
|
+
"col": 1,
|
|
61
|
+
"row_span": 1,
|
|
62
|
+
"col_span": 1,
|
|
63
|
+
"text": "見出しB"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"row": 1,
|
|
67
|
+
"col": 0,
|
|
68
|
+
"row_span": 1,
|
|
69
|
+
"col_span": 1,
|
|
70
|
+
"text": "値1"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"row": 1,
|
|
74
|
+
"col": 1,
|
|
75
|
+
"row_span": 1,
|
|
76
|
+
"col_span": 1,
|
|
77
|
+
"text": "値2"
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"source": [
|
|
81
|
+
"p0002_0#2"
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"file": "004_s1.1.1.json",
|
|
4
|
+
"id": "s1.1.1",
|
|
5
|
+
"ancestors": [
|
|
6
|
+
{
|
|
7
|
+
"id": "s1",
|
|
8
|
+
"level": 1,
|
|
9
|
+
"title": "第1章 はじめの章"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"id": "s1.1",
|
|
13
|
+
"level": 2,
|
|
14
|
+
"title": "1.1 最初の節"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"body": [
|
|
18
|
+
{
|
|
19
|
+
"type": "section",
|
|
20
|
+
"id": "s1.1.1",
|
|
21
|
+
"level": 3,
|
|
22
|
+
"title": "1.1.1 深い項",
|
|
23
|
+
"source": [
|
|
24
|
+
"p0002_0#0"
|
|
25
|
+
],
|
|
26
|
+
"children": [
|
|
27
|
+
{
|
|
28
|
+
"type": "paragraph",
|
|
29
|
+
"id": "p4",
|
|
30
|
+
"source": [
|
|
31
|
+
"p0002_0#1"
|
|
32
|
+
],
|
|
33
|
+
"sentences": [
|
|
34
|
+
{
|
|
35
|
+
"id": "p4.1",
|
|
36
|
+
"text": "項の段落。"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": "p4.2",
|
|
40
|
+
"text": "深いところの文。"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"type": "table",
|
|
46
|
+
"id": "t1",
|
|
47
|
+
"n_row": 2,
|
|
48
|
+
"n_col": 2,
|
|
49
|
+
"cells": [
|
|
50
|
+
{
|
|
51
|
+
"row": 0,
|
|
52
|
+
"col": 0,
|
|
53
|
+
"row_span": 1,
|
|
54
|
+
"col_span": 1,
|
|
55
|
+
"text": "見出しA",
|
|
56
|
+
"origin": {
|
|
57
|
+
"edition": "original",
|
|
58
|
+
"ids": [
|
|
59
|
+
"p1.1"
|
|
60
|
+
],
|
|
61
|
+
"text": "元の文。"
|
|
62
|
+
},
|
|
63
|
+
"note": 1
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"row": 0,
|
|
67
|
+
"col": 1,
|
|
68
|
+
"row_span": 1,
|
|
69
|
+
"col_span": 1,
|
|
70
|
+
"text": "見出しB"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"row": 1,
|
|
74
|
+
"col": 0,
|
|
75
|
+
"row_span": 1,
|
|
76
|
+
"col_span": 1,
|
|
77
|
+
"text": "値1"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"row": 1,
|
|
81
|
+
"col": 1,
|
|
82
|
+
"row_span": 1,
|
|
83
|
+
"col_span": 1,
|
|
84
|
+
"text": "値2"
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"source": [
|
|
88
|
+
"p0002_0#2"
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"file": "004_s1.1.1.json",
|
|
4
|
+
"id": "s1.1.1",
|
|
5
|
+
"ancestors": [
|
|
6
|
+
{
|
|
7
|
+
"id": "s1",
|
|
8
|
+
"level": 1,
|
|
9
|
+
"title": "第1章 はじめの章"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"id": "s1.1",
|
|
13
|
+
"level": 2,
|
|
14
|
+
"title": "1.1 最初の節"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"body": [
|
|
18
|
+
{
|
|
19
|
+
"type": "section",
|
|
20
|
+
"id": "s1.1.1",
|
|
21
|
+
"level": 3,
|
|
22
|
+
"title": "1.1.1 深い項",
|
|
23
|
+
"source": [
|
|
24
|
+
"p0002_0#0"
|
|
25
|
+
],
|
|
26
|
+
"children": [
|
|
27
|
+
{
|
|
28
|
+
"type": "paragraph",
|
|
29
|
+
"id": "p4",
|
|
30
|
+
"source": [
|
|
31
|
+
"p0002_0#1"
|
|
32
|
+
],
|
|
33
|
+
"sentences": [
|
|
34
|
+
{
|
|
35
|
+
"id": "p4.1",
|
|
36
|
+
"text": "項の段落。"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": "p4.2",
|
|
40
|
+
"text": "深いところの文。"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"type": "table",
|
|
46
|
+
"id": "t1",
|
|
47
|
+
"n_row": 2,
|
|
48
|
+
"n_col": 2,
|
|
49
|
+
"cells": [
|
|
50
|
+
{
|
|
51
|
+
"row": 0,
|
|
52
|
+
"col": 0,
|
|
53
|
+
"row_span": 1,
|
|
54
|
+
"col_span": 1,
|
|
55
|
+
"text": "見出しA",
|
|
56
|
+
"origin": {
|
|
57
|
+
"edition": "original",
|
|
58
|
+
"ids": "p1.1",
|
|
59
|
+
"text": "元の文。"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"row": 0,
|
|
64
|
+
"col": 1,
|
|
65
|
+
"row_span": 1,
|
|
66
|
+
"col_span": 1,
|
|
67
|
+
"text": "見出しB"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"row": 1,
|
|
71
|
+
"col": 0,
|
|
72
|
+
"row_span": 1,
|
|
73
|
+
"col_span": 1,
|
|
74
|
+
"text": "値1"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"row": 1,
|
|
78
|
+
"col": 1,
|
|
79
|
+
"row_span": 1,
|
|
80
|
+
"col_span": 1,
|
|
81
|
+
"text": "値2"
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"source": [
|
|
85
|
+
"p0002_0#2"
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"file": "004_s1.1.1.json",
|
|
4
|
+
"id": "s1.1.1",
|
|
5
|
+
"ancestors": [
|
|
6
|
+
{
|
|
7
|
+
"id": "s1",
|
|
8
|
+
"level": 1,
|
|
9
|
+
"title": "第1章 はじめの章"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"id": "s1.1",
|
|
13
|
+
"level": 2,
|
|
14
|
+
"title": "1.1 最初の節"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"body": [
|
|
18
|
+
{
|
|
19
|
+
"type": "section",
|
|
20
|
+
"id": "s1.1.1",
|
|
21
|
+
"level": 3,
|
|
22
|
+
"title": "1.1.1 深い項",
|
|
23
|
+
"source": [
|
|
24
|
+
"p0002_0#0"
|
|
25
|
+
],
|
|
26
|
+
"children": [
|
|
27
|
+
{
|
|
28
|
+
"type": "paragraph",
|
|
29
|
+
"id": "p4",
|
|
30
|
+
"source": [
|
|
31
|
+
"p0002_0#1"
|
|
32
|
+
],
|
|
33
|
+
"sentences": [
|
|
34
|
+
{
|
|
35
|
+
"id": "p4.1",
|
|
36
|
+
"text": "項の段落。"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": "p4.2",
|
|
40
|
+
"text": "深いところの文。"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"type": "table",
|
|
46
|
+
"id": "t1",
|
|
47
|
+
"n_row": 2,
|
|
48
|
+
"n_col": 2,
|
|
49
|
+
"cells": [
|
|
50
|
+
{
|
|
51
|
+
"row": 0,
|
|
52
|
+
"col": 0,
|
|
53
|
+
"row_span": 1,
|
|
54
|
+
"col_span": 1,
|
|
55
|
+
"text": "見出しA",
|
|
56
|
+
"origin": {
|
|
57
|
+
"ids": [
|
|
58
|
+
"p1.1"
|
|
59
|
+
],
|
|
60
|
+
"text": "元の文。"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"row": 0,
|
|
65
|
+
"col": 1,
|
|
66
|
+
"row_span": 1,
|
|
67
|
+
"col_span": 1,
|
|
68
|
+
"text": "見出しB"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"row": 1,
|
|
72
|
+
"col": 0,
|
|
73
|
+
"row_span": 1,
|
|
74
|
+
"col_span": 1,
|
|
75
|
+
"text": "値1"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"row": 1,
|
|
79
|
+
"col": 1,
|
|
80
|
+
"row_span": 1,
|
|
81
|
+
"col_span": 1,
|
|
82
|
+
"text": "値2"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"source": [
|
|
86
|
+
"p0002_0#2"
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
}
|