-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
74 lines (56 loc) · 1.68 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# EPUB Content
1. OPS (xhtml arcticles)
2. OPF (packaging)
- .opf (manifest, items, metadata)
- .ncx (chapters)
3. OCF (container/zip)
- mimetype file
- container.xml (point to .opf file)
# Abstract Book Description
Book has:
- Unique ID
- Name
- Author
- List of Item
Item is:
- (FileName/Content/MediaType)
- Maybe Metadata
Metadata can be:
- ChapterMetadata
- Title
# Structure of the Book
+-------------------------------------+
| Book with Name/Title/Id |
| |
| |
|+----------------------------------+ |
|| Item 1 | |
|| | |
|| | |
|+----------------------------------+ |
| |
|+----------------------------------+ |
|| Item 2 | |
|| | |
|+----------------------------------+ |
| |
+-------------------------------------+
# Book Construction
1. Create Abstract Book and fill it with
content.
2. Serialize Abstract Book to file (zip)
But in step 2 there are following
hidden operations:
1. From the Book the following files are
created:
- OPF with proper data filled
- For each Item the file is Created
- NCX with chapters
2. The OCF is constructed with all files
above and OPF File set as Root item.
# Autogenerated Data
Following data are automatically generated from the
Abstract book:
- Identifier of Chapter
- Sequence number of Chapter according the order in
the list of items.