@yanqirenshi/hefti 2.1.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/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/package.json +3 -2
|
@@ -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
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 2,
|
|
3
|
-
"title": "テストの本",
|
|
4
|
-
"source": {"book": "book.json", "sha256": "86a4535ef9b985c3bc766f529c72cc67ba286de05517e7cf9216165511053656"},
|
|
5
|
-
"split_chars": 12000,
|
|
6
|
-
"pages": [],
|
|
7
|
-
"files": [],
|
|
8
|
-
"toc": []
|
|
9
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"title": "テストの本",
|
|
4
|
+
"source": {"book": "book.json", "sha256": "86a4535ef9b985c3bc766f529c72cc67ba286de05517e7cf9216165511053656"},
|
|
5
|
+
"split_chars": 12000,
|
|
6
|
+
"pages": [],
|
|
7
|
+
"files": [],
|
|
8
|
+
"toc": []
|
|
9
|
+
}
|
|
@@ -1,38 +1,38 @@
|
|
|
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": "table",
|
|
16
|
-
"id": "t1",
|
|
17
|
-
"n_row": 2,
|
|
18
|
-
"n_col": 3,
|
|
19
|
-
"cells": [
|
|
20
|
-
{"row": 0, "col": 0, "row_span": 2, "col_span": 1, "text": "縦"},
|
|
21
|
-
{"row": 0, "col": 1, "row_span": 1, "col_span": 2, "text": "横"},
|
|
22
|
-
{"row": 1, "col": 1, "row_span": 1, "col_span": 1, "text": "a"},
|
|
23
|
-
{"row": 1, "col": 2, "row_span": 1, "col_span": 1, "text": "b"}
|
|
24
|
-
],
|
|
25
|
-
"source": ["p0001_0#1"]
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"type": "paragraph",
|
|
29
|
-
"id": "p1",
|
|
30
|
-
"source": ["p0001_0#2"],
|
|
31
|
-
"sentences": [
|
|
32
|
-
{"id": "p1.1", "text": "表の後。"}
|
|
33
|
-
]
|
|
34
|
-
}
|
|
35
|
-
]
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
}
|
|
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": "table",
|
|
16
|
+
"id": "t1",
|
|
17
|
+
"n_row": 2,
|
|
18
|
+
"n_col": 3,
|
|
19
|
+
"cells": [
|
|
20
|
+
{"row": 0, "col": 0, "row_span": 2, "col_span": 1, "text": "縦"},
|
|
21
|
+
{"row": 0, "col": 1, "row_span": 1, "col_span": 2, "text": "横"},
|
|
22
|
+
{"row": 1, "col": 1, "row_span": 1, "col_span": 1, "text": "a"},
|
|
23
|
+
{"row": 1, "col": 2, "row_span": 1, "col_span": 1, "text": "b"}
|
|
24
|
+
],
|
|
25
|
+
"source": ["p0001_0#1"]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"type": "paragraph",
|
|
29
|
+
"id": "p1",
|
|
30
|
+
"source": ["p0001_0#2"],
|
|
31
|
+
"sentences": [
|
|
32
|
+
{"id": "p1.1", "text": "表の後。"}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 2,
|
|
3
|
-
"title": "テストの本",
|
|
4
|
-
"source": {"book": "book.json", "sha256": "aa9215fc27f90f3452312ddde700f7fe2b4bed914298ad3628a513da66e356f7"},
|
|
5
|
-
"split_chars": 12000,
|
|
6
|
-
"pages": [
|
|
7
|
-
{"id": "p0001_0", "status": "ok", "decorations": []}
|
|
8
|
-
],
|
|
9
|
-
"files": [
|
|
10
|
-
{"file": "001_s1.json", "id": "s1", "chars": 8, "json_chars": 790}
|
|
11
|
-
],
|
|
12
|
-
"toc": [
|
|
13
|
-
{"id": "s1", "level": 1, "title": "第1章 表", "file": "001_s1.json", "children": []}
|
|
14
|
-
]
|
|
15
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"title": "テストの本",
|
|
4
|
+
"source": {"book": "book.json", "sha256": "aa9215fc27f90f3452312ddde700f7fe2b4bed914298ad3628a513da66e356f7"},
|
|
5
|
+
"split_chars": 12000,
|
|
6
|
+
"pages": [
|
|
7
|
+
{"id": "p0001_0", "status": "ok", "decorations": []}
|
|
8
|
+
],
|
|
9
|
+
"files": [
|
|
10
|
+
{"file": "001_s1.json", "id": "s1", "chars": 8, "json_chars": 790}
|
|
11
|
+
],
|
|
12
|
+
"toc": [
|
|
13
|
+
{"id": "s1", "level": 1, "title": "第1章 表", "file": "001_s1.json", "children": []}
|
|
14
|
+
]
|
|
15
|
+
}
|
|
@@ -1,39 +1,39 @@
|
|
|
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#0"],
|
|
11
|
-
"sentences": [
|
|
12
|
-
{"id": "p1.1", "text": "一つ目の段落。"},
|
|
13
|
-
{"id": "p1.2", "text": "二文目。"}
|
|
14
|
-
]
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"type": "list",
|
|
18
|
-
"id": "l1",
|
|
19
|
-
"source": ["p0001_0#1"],
|
|
20
|
-
"items": [
|
|
21
|
-
{
|
|
22
|
-
"id": "l1.1",
|
|
23
|
-
"source": ["p0001_0#1"],
|
|
24
|
-
"sentences": [
|
|
25
|
-
{"id": "l1.1.1", "text": "項目。"}
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"type": "paragraph",
|
|
32
|
-
"id": "p2",
|
|
33
|
-
"source": ["p0002_0#0"],
|
|
34
|
-
"sentences": [
|
|
35
|
-
{"id": "p2.1", "text": "別のページの段落。"}
|
|
36
|
-
]
|
|
37
|
-
}
|
|
38
|
-
]
|
|
39
|
-
}
|
|
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#0"],
|
|
11
|
+
"sentences": [
|
|
12
|
+
{"id": "p1.1", "text": "一つ目の段落。"},
|
|
13
|
+
{"id": "p1.2", "text": "二文目。"}
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"type": "list",
|
|
18
|
+
"id": "l1",
|
|
19
|
+
"source": ["p0001_0#1"],
|
|
20
|
+
"items": [
|
|
21
|
+
{
|
|
22
|
+
"id": "l1.1",
|
|
23
|
+
"source": ["p0001_0#1"],
|
|
24
|
+
"sentences": [
|
|
25
|
+
{"id": "l1.1.1", "text": "項目。"}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"type": "paragraph",
|
|
32
|
+
"id": "p2",
|
|
33
|
+
"source": ["p0002_0#0"],
|
|
34
|
+
"sentences": [
|
|
35
|
+
{"id": "p2.1", "text": "別のページの段落。"}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 2,
|
|
3
|
-
"title": "テストの本",
|
|
4
|
-
"source": {"book": "book.json", "sha256": "fb11afa0d0568baabd831a45bd64d8e96780157a0a2b61a3cd299a4c802cad6a"},
|
|
5
|
-
"split_chars": 12000,
|
|
6
|
-
"pages": [
|
|
7
|
-
{"id": "p0001_0", "status": "ok", "decorations": []},
|
|
8
|
-
{"id": "p0002_0", "status": "ok", "decorations": []}
|
|
9
|
-
],
|
|
10
|
-
"files": [
|
|
11
|
-
{"file": "001_front.json", "id": null, "chars": 23, "json_chars": 618}
|
|
12
|
-
],
|
|
13
|
-
"toc": []
|
|
14
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"title": "テストの本",
|
|
4
|
+
"source": {"book": "book.json", "sha256": "fb11afa0d0568baabd831a45bd64d8e96780157a0a2b61a3cd299a4c802cad6a"},
|
|
5
|
+
"split_chars": 12000,
|
|
6
|
+
"pages": [
|
|
7
|
+
{"id": "p0001_0", "status": "ok", "decorations": []},
|
|
8
|
+
{"id": "p0002_0", "status": "ok", "decorations": []}
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{"file": "001_front.json", "id": null, "chars": 23, "json_chars": 618}
|
|
12
|
+
],
|
|
13
|
+
"toc": []
|
|
14
|
+
}
|
|
@@ -1,123 +1,123 @@
|
|
|
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
|
-
{
|
|
25
|
-
"type": "section",
|
|
26
|
-
"id": "s1.1",
|
|
27
|
-
"level": 2,
|
|
28
|
-
"title": "1.1 最初の節",
|
|
29
|
-
"source": ["p0001_0#4"],
|
|
30
|
-
"children": [
|
|
31
|
-
{
|
|
32
|
-
"type": "paragraph",
|
|
33
|
-
"id": "p3",
|
|
34
|
-
"source": ["p0001_0#5", "p0003_0#1"],
|
|
35
|
-
"sentences": [
|
|
36
|
-
{"id": "p3.1", "text": "彼は「行こう。もう時間だ。」と言った。"},
|
|
37
|
-
{"id": "p3.2", "text": "そして段落はページの終わりで文の途中のまま次のページへ続いて、ここで終わる。"}
|
|
38
|
-
]
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"type": "list",
|
|
42
|
-
"id": "l1",
|
|
43
|
-
"source": ["p0003_0#2", "p0003_0#3", "p0003_0#4"],
|
|
44
|
-
"items": [
|
|
45
|
-
{
|
|
46
|
-
"id": "l1.1",
|
|
47
|
-
"source": ["p0003_0#2"],
|
|
48
|
-
"sentences": [
|
|
49
|
-
{"id": "l1.1.1", "text": "箇条書きの一つ目。"}
|
|
50
|
-
]
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"id": "l1.2",
|
|
54
|
-
"source": ["p0003_0#3"],
|
|
55
|
-
"sentences": [
|
|
56
|
-
{"id": "l1.2.1", "text": "箇条書きの二つ目。"},
|
|
57
|
-
{"id": "l1.2.2", "text": "補足の文。"}
|
|
58
|
-
]
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"id": "l1.3",
|
|
62
|
-
"source": ["p0003_0#4"],
|
|
63
|
-
"sentences": [
|
|
64
|
-
{"id": "l1.3.1", "text": "箇条書きの三つ目"}
|
|
65
|
-
]
|
|
66
|
-
}
|
|
67
|
-
]
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"type": "figure",
|
|
71
|
-
"id": "f1",
|
|
72
|
-
"src": "figures/p0003_0_0.png",
|
|
73
|
-
"text": ["図の中の文字"],
|
|
74
|
-
"source": ["p0003_0#5"]
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"type": "caption",
|
|
78
|
-
"id": "c1",
|
|
79
|
-
"text": "図1 テストの図",
|
|
80
|
-
"source": ["p0003_0#6"]
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"type": "table",
|
|
84
|
-
"id": "t1",
|
|
85
|
-
"n_row": 2,
|
|
86
|
-
"n_col": 2,
|
|
87
|
-
"cells": [
|
|
88
|
-
{"row": 0, "col": 0, "row_span": 1, "col_span": 1, "text": "見出しA"},
|
|
89
|
-
{"row": 0, "col": 1, "row_span": 1, "col_span": 1, "text": "見出しB"},
|
|
90
|
-
{"row": 1, "col": 0, "row_span": 1, "col_span": 1, "text": "値1"},
|
|
91
|
-
{"row": 1, "col": 1, "row_span": 1, "col_span": 1, "text": "値2"}
|
|
92
|
-
],
|
|
93
|
-
"source": ["p0003_0#7"]
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"type": "caption",
|
|
97
|
-
"id": "c2",
|
|
98
|
-
"text": "表1 テストの表",
|
|
99
|
-
"source": ["p0003_0#8"]
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"type": "section",
|
|
103
|
-
"id": "s1.1.1",
|
|
104
|
-
"level": 3,
|
|
105
|
-
"title": "1.1.1 さらに深い項",
|
|
106
|
-
"source": ["p0005_0#0"],
|
|
107
|
-
"children": [
|
|
108
|
-
{
|
|
109
|
-
"type": "paragraph",
|
|
110
|
-
"id": "p4",
|
|
111
|
-
"source": ["p0005_0#1"],
|
|
112
|
-
"sentences": [
|
|
113
|
-
{"id": "p4.1", "text": "深い項の段落。"}
|
|
114
|
-
]
|
|
115
|
-
}
|
|
116
|
-
]
|
|
117
|
-
}
|
|
118
|
-
]
|
|
119
|
-
}
|
|
120
|
-
]
|
|
121
|
-
}
|
|
122
|
-
]
|
|
123
|
-
}
|
|
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
|
+
{
|
|
25
|
+
"type": "section",
|
|
26
|
+
"id": "s1.1",
|
|
27
|
+
"level": 2,
|
|
28
|
+
"title": "1.1 最初の節",
|
|
29
|
+
"source": ["p0001_0#4"],
|
|
30
|
+
"children": [
|
|
31
|
+
{
|
|
32
|
+
"type": "paragraph",
|
|
33
|
+
"id": "p3",
|
|
34
|
+
"source": ["p0001_0#5", "p0003_0#1"],
|
|
35
|
+
"sentences": [
|
|
36
|
+
{"id": "p3.1", "text": "彼は「行こう。もう時間だ。」と言った。"},
|
|
37
|
+
{"id": "p3.2", "text": "そして段落はページの終わりで文の途中のまま次のページへ続いて、ここで終わる。"}
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"type": "list",
|
|
42
|
+
"id": "l1",
|
|
43
|
+
"source": ["p0003_0#2", "p0003_0#3", "p0003_0#4"],
|
|
44
|
+
"items": [
|
|
45
|
+
{
|
|
46
|
+
"id": "l1.1",
|
|
47
|
+
"source": ["p0003_0#2"],
|
|
48
|
+
"sentences": [
|
|
49
|
+
{"id": "l1.1.1", "text": "箇条書きの一つ目。"}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"id": "l1.2",
|
|
54
|
+
"source": ["p0003_0#3"],
|
|
55
|
+
"sentences": [
|
|
56
|
+
{"id": "l1.2.1", "text": "箇条書きの二つ目。"},
|
|
57
|
+
{"id": "l1.2.2", "text": "補足の文。"}
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"id": "l1.3",
|
|
62
|
+
"source": ["p0003_0#4"],
|
|
63
|
+
"sentences": [
|
|
64
|
+
{"id": "l1.3.1", "text": "箇条書きの三つ目"}
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"type": "figure",
|
|
71
|
+
"id": "f1",
|
|
72
|
+
"src": "figures/p0003_0_0.png",
|
|
73
|
+
"text": ["図の中の文字"],
|
|
74
|
+
"source": ["p0003_0#5"]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"type": "caption",
|
|
78
|
+
"id": "c1",
|
|
79
|
+
"text": "図1 テストの図",
|
|
80
|
+
"source": ["p0003_0#6"]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"type": "table",
|
|
84
|
+
"id": "t1",
|
|
85
|
+
"n_row": 2,
|
|
86
|
+
"n_col": 2,
|
|
87
|
+
"cells": [
|
|
88
|
+
{"row": 0, "col": 0, "row_span": 1, "col_span": 1, "text": "見出しA"},
|
|
89
|
+
{"row": 0, "col": 1, "row_span": 1, "col_span": 1, "text": "見出しB"},
|
|
90
|
+
{"row": 1, "col": 0, "row_span": 1, "col_span": 1, "text": "値1"},
|
|
91
|
+
{"row": 1, "col": 1, "row_span": 1, "col_span": 1, "text": "値2"}
|
|
92
|
+
],
|
|
93
|
+
"source": ["p0003_0#7"]
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"type": "caption",
|
|
97
|
+
"id": "c2",
|
|
98
|
+
"text": "表1 テストの表",
|
|
99
|
+
"source": ["p0003_0#8"]
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"type": "section",
|
|
103
|
+
"id": "s1.1.1",
|
|
104
|
+
"level": 3,
|
|
105
|
+
"title": "1.1.1 さらに深い項",
|
|
106
|
+
"source": ["p0005_0#0"],
|
|
107
|
+
"children": [
|
|
108
|
+
{
|
|
109
|
+
"type": "paragraph",
|
|
110
|
+
"id": "p4",
|
|
111
|
+
"source": ["p0005_0#1"],
|
|
112
|
+
"sentences": [
|
|
113
|
+
{"id": "p4.1", "text": "深い項の段落。"}
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
}
|