@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.
Files changed (116) hide show
  1. package/README.md +84 -1
  2. package/examples/editions/rich_book/01_sample/001_front.json +17 -0
  3. package/examples/editions/rich_book/01_sample/002_s1.json +127 -0
  4. package/examples/editions/rich_book/01_sample/003_s2.json +25 -0
  5. package/examples/editions/rich_book/01_sample/index.json +53 -0
  6. package/examples/editions/rich_book/02_sample/001_front.json +17 -0
  7. package/examples/editions/rich_book/02_sample/002_s1.json +123 -0
  8. package/examples/editions/rich_book/02_sample/003_s2.json +25 -0
  9. package/examples/editions/rich_book/02_sample/index.json +46 -0
  10. package/examples/editions/rich_book/original/001_front.json +17 -0
  11. package/examples/editions/rich_book/original/002_s1.json +123 -0
  12. package/examples/editions/rich_book/original/003_s2.json +25 -0
  13. package/examples/editions/rich_book/original/index.json +45 -0
  14. package/examples/invalid/index/edition_base_empty.json +124 -0
  15. package/examples/invalid/index/edition_base_number.json +124 -0
  16. package/examples/invalid/index/edition_created_at_date_only.json +124 -0
  17. package/examples/invalid/index/edition_created_at_fraction.json +124 -0
  18. package/examples/invalid/index/edition_created_at_no_offset.json +124 -0
  19. package/examples/invalid/index/edition_created_at_no_seconds.json +124 -0
  20. package/examples/invalid/index/edition_created_at_number.json +124 -0
  21. package/examples/invalid/index/edition_created_at_space.json +124 -0
  22. package/examples/invalid/index/edition_editor_empty.json +124 -0
  23. package/examples/invalid/index/edition_editor_hyphens_only.json +124 -0
  24. package/examples/invalid/index/edition_editor_number.json +124 -0
  25. package/examples/invalid/index/edition_editor_underscore.json +124 -0
  26. package/examples/invalid/index/edition_editor_uppercase.json +124 -0
  27. package/examples/invalid/index/edition_name_empty.json +124 -0
  28. package/examples/invalid/index/edition_name_number.json +124 -0
  29. package/examples/invalid/index/edition_no_base.json +123 -0
  30. package/examples/invalid/index/edition_no_created_at.json +123 -0
  31. package/examples/invalid/index/edition_no_editor.json +123 -0
  32. package/examples/invalid/index/edition_no_name.json +123 -0
  33. package/examples/invalid/index/edition_no_retired_ids.json +121 -0
  34. package/examples/invalid/index/edition_retired_ids_duplicate.json +125 -0
  35. package/examples/invalid/index/edition_retired_ids_number_item.json +125 -0
  36. package/examples/invalid/index/edition_retired_ids_string.json +122 -0
  37. package/examples/invalid/index/edition_retired_notes_number_value.json +124 -0
  38. package/examples/invalid/index/edition_retired_notes_string.json +122 -0
  39. package/examples/invalid/index/edition_string.json +113 -0
  40. package/examples/invalid/part/caption--note_no_origin.json +73 -0
  41. package/examples/invalid/part/caption--note_number.json +80 -0
  42. package/examples/invalid/part/caption--origin_ids_string.json +77 -0
  43. package/examples/invalid/part/caption--origin_no_edition.json +78 -0
  44. package/examples/invalid/part/caption--origin_text_array.json +81 -0
  45. package/examples/invalid/part/figure--notes_key_leading_zero.json +84 -0
  46. package/examples/invalid/part/figure--notes_key_letter.json +84 -0
  47. package/examples/invalid/part/figure--notes_key_negative.json +84 -0
  48. package/examples/invalid/part/figure--notes_no_origin.json +75 -0
  49. package/examples/invalid/part/figure--notes_string.json +82 -0
  50. package/examples/invalid/part/figure--notes_value_number.json +84 -0
  51. package/examples/invalid/part/figure--origin_edition_empty.json +81 -0
  52. package/examples/invalid/part/figure--origin_ids_string.json +79 -0
  53. package/examples/invalid/part/figure--origin_no_edition.json +80 -0
  54. package/examples/invalid/part/figure--origin_no_ids.json +78 -0
  55. package/examples/invalid/part/figure--origin_string.json +73 -0
  56. package/examples/invalid/part/figure--origin_text_number_item.json +81 -0
  57. package/examples/invalid/part/figure--origin_text_string.json +79 -0
  58. package/examples/invalid/part/list--item_sentence_note_no_origin.json +93 -0
  59. package/examples/invalid/part/list--item_sentence_note_number.json +100 -0
  60. package/examples/invalid/part/list--item_sentence_origin_no_ids.json +96 -0
  61. package/examples/invalid/part/list--item_sentence_origin_text_array.json +101 -0
  62. package/examples/invalid/part/paragraph--sentence_note_no_origin.json +26 -0
  63. package/examples/invalid/part/paragraph--sentence_note_number.json +33 -0
  64. package/examples/invalid/part/paragraph--sentence_origin_edition_empty.json +32 -0
  65. package/examples/invalid/part/paragraph--sentence_origin_edition_number.json +32 -0
  66. package/examples/invalid/part/paragraph--sentence_origin_ids_number_item.json +32 -0
  67. package/examples/invalid/part/paragraph--sentence_origin_ids_string.json +30 -0
  68. package/examples/invalid/part/paragraph--sentence_origin_no_edition.json +31 -0
  69. package/examples/invalid/part/paragraph--sentence_origin_no_ids.json +29 -0
  70. package/examples/invalid/part/paragraph--sentence_origin_string.json +26 -0
  71. package/examples/invalid/part/paragraph--sentence_origin_text_array.json +34 -0
  72. package/examples/invalid/part/table--cell_note_no_origin.json +87 -0
  73. package/examples/invalid/part/table--cell_note_number.json +94 -0
  74. package/examples/invalid/part/table--cell_origin_ids_string.json +91 -0
  75. package/examples/invalid/part/table--cell_origin_no_edition.json +92 -0
  76. package/examples/invalid/part/table--cell_origin_text_array.json +95 -0
  77. package/examples/valid/big_table_book/001_s1.json +27 -27
  78. package/examples/valid/big_table_book/002_s1.1.json +216 -216
  79. package/examples/valid/big_table_book/003_s1.2.json +27 -27
  80. package/examples/valid/big_table_book/004_s2.json +25 -25
  81. package/examples/valid/big_table_book/index.json +28 -28
  82. package/examples/valid/deep_book/001_s1.json +27 -27
  83. package/examples/valid/deep_book/002_s1.1.json +29 -29
  84. package/examples/valid/deep_book/003_s1.1.1.json +30 -30
  85. package/examples/valid/deep_book/004_s1.1.1.1.json +31 -31
  86. package/examples/valid/deep_book/005_s1.1.1.1.1.json +32 -32
  87. package/examples/valid/deep_book/006_s1.1.1.1.1.1.json +33 -33
  88. package/examples/valid/deep_book/007_s1.1.1.1.1.1.1.json +33 -33
  89. package/examples/valid/deep_book/index.json +69 -69
  90. package/examples/valid/empty_book/index.json +9 -9
  91. package/examples/valid/merged_table_book/001_s1.json +38 -38
  92. package/examples/valid/merged_table_book/index.json +15 -15
  93. package/examples/valid/no_heading_book/001_front.json +39 -39
  94. package/examples/valid/no_heading_book/index.json +14 -14
  95. package/examples/valid/rich_book/002_s1.json +123 -123
  96. package/examples/valid/rich_book/003_s2.json +25 -25
  97. package/examples/valid/rich_book/index.json +45 -45
  98. package/examples/valid/rich_split_book/001_front.json +17 -17
  99. package/examples/valid/rich_split_book/002_s1.json +28 -28
  100. package/examples/valid/rich_split_book/003_s1.1.json +90 -90
  101. package/examples/valid/rich_split_book/004_s1.1.1.json +28 -28
  102. package/examples/valid/rich_split_book/005_s2.json +25 -25
  103. package/examples/valid/rich_split_book/index.json +47 -47
  104. package/examples/valid/sized_book/001_front.json +17 -17
  105. package/examples/valid/sized_book/002_s1.json +51 -51
  106. package/examples/valid/sized_book/003_s1.1.json +43 -43
  107. package/examples/valid/sized_book/004_s1.1.1.json +42 -42
  108. package/examples/valid/sized_book/005_s1.2.json +28 -28
  109. package/examples/valid/sized_book/006_s2.json +64 -64
  110. package/examples/valid/sized_book/index.json +39 -39
  111. package/index.d.ts +3 -0
  112. package/index.js +168 -4
  113. package/package.json +3 -2
  114. package/schema/structure-index.schema.json +52 -0
  115. package/schema/structure-part.schema.json +116 -4
  116. package/types.d.ts +99 -0
@@ -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
+ "origin": {
54
+ "edition": "original",
55
+ "text": [
56
+ "元の図の文字"
57
+ ]
58
+ }
59
+ },
60
+ {
61
+ "type": "caption",
62
+ "id": "c1",
63
+ "text": "図1 テストの図",
64
+ "source": [
65
+ "p0001_0#9"
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,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
+ "origin": "original"
54
+ },
55
+ {
56
+ "type": "caption",
57
+ "id": "c1",
58
+ "text": "図1 テストの図",
59
+ "source": [
60
+ "p0001_0#9"
61
+ ]
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,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
+ "origin": {
54
+ "edition": "original",
55
+ "ids": [
56
+ "f1"
57
+ ],
58
+ "text": [
59
+ 1
60
+ ]
61
+ }
62
+ },
63
+ {
64
+ "type": "caption",
65
+ "id": "c1",
66
+ "text": "図1 テストの図",
67
+ "source": [
68
+ "p0001_0#9"
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,79 @@
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
+ "type": "caption",
63
+ "id": "c1",
64
+ "text": "図1 テストの図",
65
+ "source": [
66
+ "p0001_0#9"
67
+ ]
68
+ },
69
+ {
70
+ "type": "section_ref",
71
+ "id": "s1.1.1",
72
+ "level": 3,
73
+ "title": "1.1.1 深い項",
74
+ "file": "004_s1.1.1.json"
75
+ }
76
+ ]
77
+ }
78
+ ]
79
+ }
@@ -0,0 +1,93 @@
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": [
13
+ "p0001_0#2"
14
+ ],
15
+ "children": [
16
+ {
17
+ "type": "paragraph",
18
+ "id": "p2",
19
+ "source": [
20
+ "p0001_0#3"
21
+ ],
22
+ "sentences": [
23
+ {
24
+ "id": "p2.1",
25
+ "text": "章の直下の段落。"
26
+ },
27
+ {
28
+ "id": "p2.2",
29
+ "text": "一つ目の文。"
30
+ },
31
+ {
32
+ "id": "p2.3",
33
+ "text": "二つ目の文。"
34
+ }
35
+ ]
36
+ },
37
+ {
38
+ "type": "list",
39
+ "id": "l1",
40
+ "source": [
41
+ "p0001_0#4",
42
+ "p0001_0#5"
43
+ ],
44
+ "items": [
45
+ {
46
+ "id": "l1.1",
47
+ "source": [
48
+ "p0001_0#4"
49
+ ],
50
+ "sentences": [
51
+ {
52
+ "id": "l1.1.1",
53
+ "text": "箇条書きの一つ目。",
54
+ "note": "直した"
55
+ }
56
+ ]
57
+ },
58
+ {
59
+ "id": "l1.2",
60
+ "source": [
61
+ "p0001_0#5"
62
+ ],
63
+ "sentences": [
64
+ {
65
+ "id": "l1.2.1",
66
+ "text": "箇条書きの二つ目。"
67
+ },
68
+ {
69
+ "id": "l1.2.2",
70
+ "text": "補足の文。"
71
+ }
72
+ ]
73
+ }
74
+ ]
75
+ },
76
+ {
77
+ "type": "section_ref",
78
+ "id": "s1.1",
79
+ "level": 2,
80
+ "title": "1.1 最初の節",
81
+ "file": "003_s1.1.json"
82
+ },
83
+ {
84
+ "type": "section_ref",
85
+ "id": "s1.2",
86
+ "level": 2,
87
+ "title": "1.2 二つ目の節",
88
+ "file": "005_s1.2.json"
89
+ }
90
+ ]
91
+ }
92
+ ]
93
+ }
@@ -0,0 +1,100 @@
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": [
13
+ "p0001_0#2"
14
+ ],
15
+ "children": [
16
+ {
17
+ "type": "paragraph",
18
+ "id": "p2",
19
+ "source": [
20
+ "p0001_0#3"
21
+ ],
22
+ "sentences": [
23
+ {
24
+ "id": "p2.1",
25
+ "text": "章の直下の段落。"
26
+ },
27
+ {
28
+ "id": "p2.2",
29
+ "text": "一つ目の文。"
30
+ },
31
+ {
32
+ "id": "p2.3",
33
+ "text": "二つ目の文。"
34
+ }
35
+ ]
36
+ },
37
+ {
38
+ "type": "list",
39
+ "id": "l1",
40
+ "source": [
41
+ "p0001_0#4",
42
+ "p0001_0#5"
43
+ ],
44
+ "items": [
45
+ {
46
+ "id": "l1.1",
47
+ "source": [
48
+ "p0001_0#4"
49
+ ],
50
+ "sentences": [
51
+ {
52
+ "id": "l1.1.1",
53
+ "text": "箇条書きの一つ目。",
54
+ "origin": {
55
+ "edition": "original",
56
+ "ids": [
57
+ "p1.1"
58
+ ],
59
+ "text": "元の文。"
60
+ },
61
+ "note": 1
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "id": "l1.2",
67
+ "source": [
68
+ "p0001_0#5"
69
+ ],
70
+ "sentences": [
71
+ {
72
+ "id": "l1.2.1",
73
+ "text": "箇条書きの二つ目。"
74
+ },
75
+ {
76
+ "id": "l1.2.2",
77
+ "text": "補足の文。"
78
+ }
79
+ ]
80
+ }
81
+ ]
82
+ },
83
+ {
84
+ "type": "section_ref",
85
+ "id": "s1.1",
86
+ "level": 2,
87
+ "title": "1.1 最初の節",
88
+ "file": "003_s1.1.json"
89
+ },
90
+ {
91
+ "type": "section_ref",
92
+ "id": "s1.2",
93
+ "level": 2,
94
+ "title": "1.2 二つ目の節",
95
+ "file": "005_s1.2.json"
96
+ }
97
+ ]
98
+ }
99
+ ]
100
+ }
@@ -0,0 +1,96 @@
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": [
13
+ "p0001_0#2"
14
+ ],
15
+ "children": [
16
+ {
17
+ "type": "paragraph",
18
+ "id": "p2",
19
+ "source": [
20
+ "p0001_0#3"
21
+ ],
22
+ "sentences": [
23
+ {
24
+ "id": "p2.1",
25
+ "text": "章の直下の段落。"
26
+ },
27
+ {
28
+ "id": "p2.2",
29
+ "text": "一つ目の文。"
30
+ },
31
+ {
32
+ "id": "p2.3",
33
+ "text": "二つ目の文。"
34
+ }
35
+ ]
36
+ },
37
+ {
38
+ "type": "list",
39
+ "id": "l1",
40
+ "source": [
41
+ "p0001_0#4",
42
+ "p0001_0#5"
43
+ ],
44
+ "items": [
45
+ {
46
+ "id": "l1.1",
47
+ "source": [
48
+ "p0001_0#4"
49
+ ],
50
+ "sentences": [
51
+ {
52
+ "id": "l1.1.1",
53
+ "text": "箇条書きの一つ目。",
54
+ "origin": {
55
+ "edition": "original",
56
+ "text": "元の文。"
57
+ }
58
+ }
59
+ ]
60
+ },
61
+ {
62
+ "id": "l1.2",
63
+ "source": [
64
+ "p0001_0#5"
65
+ ],
66
+ "sentences": [
67
+ {
68
+ "id": "l1.2.1",
69
+ "text": "箇条書きの二つ目。"
70
+ },
71
+ {
72
+ "id": "l1.2.2",
73
+ "text": "補足の文。"
74
+ }
75
+ ]
76
+ }
77
+ ]
78
+ },
79
+ {
80
+ "type": "section_ref",
81
+ "id": "s1.1",
82
+ "level": 2,
83
+ "title": "1.1 最初の節",
84
+ "file": "003_s1.1.json"
85
+ },
86
+ {
87
+ "type": "section_ref",
88
+ "id": "s1.2",
89
+ "level": 2,
90
+ "title": "1.2 二つ目の節",
91
+ "file": "005_s1.2.json"
92
+ }
93
+ ]
94
+ }
95
+ ]
96
+ }
@@ -0,0 +1,101 @@
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": [
13
+ "p0001_0#2"
14
+ ],
15
+ "children": [
16
+ {
17
+ "type": "paragraph",
18
+ "id": "p2",
19
+ "source": [
20
+ "p0001_0#3"
21
+ ],
22
+ "sentences": [
23
+ {
24
+ "id": "p2.1",
25
+ "text": "章の直下の段落。"
26
+ },
27
+ {
28
+ "id": "p2.2",
29
+ "text": "一つ目の文。"
30
+ },
31
+ {
32
+ "id": "p2.3",
33
+ "text": "二つ目の文。"
34
+ }
35
+ ]
36
+ },
37
+ {
38
+ "type": "list",
39
+ "id": "l1",
40
+ "source": [
41
+ "p0001_0#4",
42
+ "p0001_0#5"
43
+ ],
44
+ "items": [
45
+ {
46
+ "id": "l1.1",
47
+ "source": [
48
+ "p0001_0#4"
49
+ ],
50
+ "sentences": [
51
+ {
52
+ "id": "l1.1.1",
53
+ "text": "箇条書きの一つ目。",
54
+ "origin": {
55
+ "edition": "original",
56
+ "ids": [
57
+ "p1.1"
58
+ ],
59
+ "text": [
60
+ "元の文。"
61
+ ]
62
+ }
63
+ }
64
+ ]
65
+ },
66
+ {
67
+ "id": "l1.2",
68
+ "source": [
69
+ "p0001_0#5"
70
+ ],
71
+ "sentences": [
72
+ {
73
+ "id": "l1.2.1",
74
+ "text": "箇条書きの二つ目。"
75
+ },
76
+ {
77
+ "id": "l1.2.2",
78
+ "text": "補足の文。"
79
+ }
80
+ ]
81
+ }
82
+ ]
83
+ },
84
+ {
85
+ "type": "section_ref",
86
+ "id": "s1.1",
87
+ "level": 2,
88
+ "title": "1.1 最初の節",
89
+ "file": "003_s1.1.json"
90
+ },
91
+ {
92
+ "type": "section_ref",
93
+ "id": "s1.2",
94
+ "level": 2,
95
+ "title": "1.2 二つ目の節",
96
+ "file": "005_s1.2.json"
97
+ }
98
+ ]
99
+ }
100
+ ]
101
+ }