epub-parser 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. data/.gitignore +4 -0
  2. data/MIT-LICENSE +7 -0
  3. data/README +7 -0
  4. data/doc/EPUB.html +143 -0
  5. data/doc/EPUB/Book.html +616 -0
  6. data/doc/EPUB/Constants.html +130 -0
  7. data/doc/EPUB/Constants/Type.html +118 -0
  8. data/doc/EPUB/ContentDocument.html +108 -0
  9. data/doc/EPUB/ContentDocument/Navigation.html +673 -0
  10. data/doc/EPUB/ContentDocument/Navigation/Nav.html +563 -0
  11. data/doc/EPUB/ContentDocument/Navigation/Nav/Ol.html +285 -0
  12. data/doc/EPUB/ContentDocument/Navigation/Nav/Ol/A.html +354 -0
  13. data/doc/EPUB/ContentDocument/Navigation/Nav/Ol/Span.html +354 -0
  14. data/doc/EPUB/OCF.html +135 -0
  15. data/doc/EPUB/OCF/Container.html +358 -0
  16. data/doc/EPUB/OCF/Container/Rootfile.html +257 -0
  17. data/doc/EPUB/OCF/Encryption.html +111 -0
  18. data/doc/EPUB/OCF/Manifest.html +111 -0
  19. data/doc/EPUB/OCF/Metadata.html +111 -0
  20. data/doc/EPUB/OCF/Rights.html +111 -0
  21. data/doc/EPUB/OCF/Signatures.html +111 -0
  22. data/doc/EPUB/Parser.html +448 -0
  23. data/doc/EPUB/Parser/ContentDocument.html +531 -0
  24. data/doc/EPUB/Parser/OCF.html +635 -0
  25. data/doc/EPUB/Parser/Publication.html +640 -0
  26. data/doc/EPUB/Publication.html +108 -0
  27. data/doc/EPUB/Publication/Package.html +751 -0
  28. data/doc/EPUB/Publication/Package/Bindings.html +267 -0
  29. data/doc/EPUB/Publication/Package/Bindings/MediaType.html +257 -0
  30. data/doc/EPUB/Publication/Package/Guide.html +111 -0
  31. data/doc/EPUB/Publication/Package/Manifest.html +578 -0
  32. data/doc/EPUB/Publication/Package/Manifest/Item.html +669 -0
  33. data/doc/EPUB/Publication/Package/Metadata.html +257 -0
  34. data/doc/EPUB/Publication/Package/Spine.html +755 -0
  35. data/doc/EPUB/Publication/Package/Spine/Itemref.html +558 -0
  36. data/doc/EPUB/Type.html +118 -0
  37. data/doc/_index.html +422 -0
  38. data/doc/class_list.html +47 -0
  39. data/doc/css/common.css +1 -0
  40. data/doc/css/full_list.css +55 -0
  41. data/doc/css/style.css +322 -0
  42. data/doc/file.README.html +76 -0
  43. data/doc/file_list.html +49 -0
  44. data/doc/frames.html +13 -0
  45. data/doc/index.html +76 -0
  46. data/doc/js/app.js +205 -0
  47. data/doc/js/full_list.js +167 -0
  48. data/doc/js/jquery.js +16 -0
  49. data/doc/method_list.html +902 -0
  50. data/doc/top-level-namespace.html +103 -0
  51. data/epub-parser.gemspec +2 -0
  52. data/lib/epub/constants.rb +20 -0
  53. data/lib/epub/parser.rb +1 -0
  54. data/lib/epub/parser/content_document.rb +4 -3
  55. data/lib/epub/parser/ocf.rb +2 -1
  56. data/lib/epub/parser/publication.rb +5 -5
  57. data/lib/epub/parser/version.rb +1 -1
  58. data/test/fixtures/book.epub +0 -0
  59. data/test/test_parser_content_document.rb +18 -0
  60. data/test/test_parser_ocf.rb +2 -2
  61. data/test/test_parser_publication.rb +21 -3
  62. metadata +87 -30
  63. data/lib/epub/type.rb +0 -7
  64. data/test/publication/package/test_bindings.rb +0 -15
  65. data/test/publication/package/test_guide.rb +0 -14
  66. data/test/publication/package/test_manifest.rb +0 -19
  67. data/test/publication/package/test_metadata.rb +0 -14
  68. data/test/publication/package/test_spine.rb +0 -15
@@ -0,0 +1,118 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Module: EPUB::Type
8
+
9
+ &mdash; Documentation by YARD 0.7.4
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ relpath = '..';
19
+ if (relpath != '') relpath += '/';
20
+ </script>
21
+
22
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
25
+
26
+
27
+ </head>
28
+ <body>
29
+ <script type="text/javascript" charset="utf-8">
30
+ if (window.top.frames.main) document.body.className = 'frames';
31
+ </script>
32
+
33
+ <div id="header">
34
+ <div id="menu">
35
+
36
+ <a href="../_index.html">Index (T)</a> &raquo;
37
+ <span class='title'><span class='object_link'><a href="../EPUB.html" title="EPUB (module)">EPUB</a></span></span>
38
+ &raquo;
39
+ <span class="title">Type</span>
40
+
41
+
42
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
+ </div>
44
+
45
+ <div id="search">
46
+
47
+ <a id="class_list_link" href="#">Class List</a>
48
+
49
+ <a id="method_list_link" href="#">Method List</a>
50
+
51
+ <a id="file_list_link" href="#">File List</a>
52
+
53
+ </div>
54
+ <div class="clear"></div>
55
+ </div>
56
+
57
+ <iframe id="search_frame"></iframe>
58
+
59
+ <div id="content"><h1>Module: EPUB::Type
60
+
61
+
62
+
63
+ </h1>
64
+
65
+ <dl class="box">
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+ <dt class="r1 last">Defined in:</dt>
75
+ <dd class="r1 last">lib/epub/type.rb</dd>
76
+
77
+ </dl>
78
+ <div class="clear"></div>
79
+
80
+
81
+ <h2>Constant Summary</h2>
82
+
83
+ <dl class="constants">
84
+
85
+ <dt id="TOC-constant" class="">TOC =
86
+
87
+ </dt>
88
+ <dd><pre class="code"><span class='symbol'>:toc</span></pre></dd>
89
+
90
+ <dt id="PAGE_LIST-constant" class="">PAGE_LIST =
91
+
92
+ </dt>
93
+ <dd><pre class="code"><span class='symbol'>:page_list</span></pre></dd>
94
+
95
+ <dt id="LANDMARKS-constant" class="">LANDMARKS =
96
+
97
+ </dt>
98
+ <dd><pre class="code"><span class='symbol'>:landmarks</span></pre></dd>
99
+
100
+ </dl>
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+ </div>
110
+
111
+ <div id="footer">
112
+ Generated on Fri Dec 30 07:18:32 2011 by
113
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
114
+ 0.7.4 (ruby-1.9.3).
115
+ </div>
116
+
117
+ </body>
118
+ </html>
@@ -0,0 +1,422 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Documentation by YARD 0.7.4
8
+
9
+ </title>
10
+
11
+ <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
12
+
13
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <script type="text/javascript" charset="utf-8">
16
+ relpath = '';
17
+ if (relpath != '') relpath += '/';
18
+ </script>
19
+
20
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
21
+
22
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
23
+
24
+
25
+ </head>
26
+ <body>
27
+ <script type="text/javascript" charset="utf-8">
28
+ if (window.top.frames.main) document.body.className = 'frames';
29
+ </script>
30
+
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+
35
+ <span class="title"></span>
36
+
37
+
38
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
39
+ </div>
40
+
41
+ <div id="search">
42
+
43
+ <a id="class_list_link" href="#">Class List</a>
44
+
45
+ <a id="method_list_link" href="#">Method List</a>
46
+
47
+ <a id="file_list_link" href="#">File List</a>
48
+
49
+ </div>
50
+ <div class="clear"></div>
51
+ </div>
52
+
53
+ <iframe id="search_frame"></iframe>
54
+
55
+ <div id="content"><h1 class="noborder title">Documentation by YARD 0.7.4</h1>
56
+ <div id="listing">
57
+ <h1 class="alphaindex">Alphabetic Index</h1>
58
+
59
+ <h2>File Listing</h2>
60
+ <ul id="files">
61
+
62
+
63
+ <li class="r1"><a href="index.html" title="README">README</a></li>
64
+
65
+
66
+ </ul>
67
+
68
+ <div class="clear"></div>
69
+ <h2>Namespace Listing A-Z</h2>
70
+
71
+
72
+
73
+
74
+ <table>
75
+ <tr>
76
+ <td valign='top' width="33%">
77
+
78
+
79
+ <ul id="alpha_A" class="alpha">
80
+ <li class="letter">A</li>
81
+ <ul>
82
+
83
+ <li>
84
+ <span class='object_link'><a href="EPUB/ContentDocument/Navigation/Nav/Ol/A.html" title="EPUB::ContentDocument::Navigation::Nav::Ol::A (class)">A</a></span>
85
+
86
+ <small>(EPUB::ContentDocument::Navigation::Nav::Ol)</small>
87
+
88
+ </li>
89
+
90
+ </ul>
91
+ </ul>
92
+
93
+
94
+ <ul id="alpha_B" class="alpha">
95
+ <li class="letter">B</li>
96
+ <ul>
97
+
98
+ <li>
99
+ <span class='object_link'><a href="EPUB/Publication/Package/Bindings.html" title="EPUB::Publication::Package::Bindings (class)">Bindings</a></span>
100
+
101
+ <small>(EPUB::Publication::Package)</small>
102
+
103
+ </li>
104
+
105
+ <li>
106
+ <span class='object_link'><a href="EPUB/Book.html" title="EPUB::Book (class)">Book</a></span>
107
+
108
+ <small>(EPUB)</small>
109
+
110
+ </li>
111
+
112
+ </ul>
113
+ </ul>
114
+
115
+
116
+ <ul id="alpha_C" class="alpha">
117
+ <li class="letter">C</li>
118
+ <ul>
119
+
120
+ <li>
121
+ <span class='object_link'><a href="EPUB/Constants.html" title="EPUB::Constants (module)">Constants</a></span>
122
+
123
+ <small>(EPUB)</small>
124
+
125
+ </li>
126
+
127
+ <li>
128
+ <span class='object_link'><a href="EPUB/OCF/Container.html" title="EPUB::OCF::Container (class)">Container</a></span>
129
+
130
+ <small>(EPUB::OCF)</small>
131
+
132
+ </li>
133
+
134
+ <li>
135
+ <span class='object_link'><a href="EPUB/ContentDocument.html" title="EPUB::ContentDocument (module)">ContentDocument</a></span>
136
+
137
+ <small>(EPUB)</small>
138
+
139
+ </li>
140
+
141
+ <li>
142
+ <span class='object_link'><a href="EPUB/Parser/ContentDocument.html" title="EPUB::Parser::ContentDocument (class)">ContentDocument</a></span>
143
+
144
+ <small>(EPUB::Parser)</small>
145
+
146
+ </li>
147
+
148
+ </ul>
149
+ </ul>
150
+
151
+
152
+ <ul id="alpha_E" class="alpha">
153
+ <li class="letter">E</li>
154
+ <ul>
155
+
156
+ <li>
157
+ <span class='object_link'><a href="EPUB.html" title="EPUB (module)">EPUB</a></span>
158
+
159
+ </li>
160
+
161
+ <li>
162
+ <span class='object_link'><a href="EPUB/OCF/Encryption.html" title="EPUB::OCF::Encryption (class)">Encryption</a></span>
163
+
164
+ <small>(EPUB::OCF)</small>
165
+
166
+ </li>
167
+
168
+ </ul>
169
+ </ul>
170
+
171
+
172
+ <ul id="alpha_G" class="alpha">
173
+ <li class="letter">G</li>
174
+ <ul>
175
+
176
+ <li>
177
+ <span class='object_link'><a href="EPUB/Publication/Package/Guide.html" title="EPUB::Publication::Package::Guide (class)">Guide</a></span>
178
+
179
+ <small>(EPUB::Publication::Package)</small>
180
+
181
+ </li>
182
+
183
+ </ul>
184
+ </ul>
185
+
186
+
187
+ <ul id="alpha_I" class="alpha">
188
+ <li class="letter">I</li>
189
+ <ul>
190
+
191
+ <li>
192
+ <span class='object_link'><a href="EPUB/Publication/Package/Manifest/Item.html" title="EPUB::Publication::Package::Manifest::Item (class)">Item</a></span>
193
+
194
+ <small>(EPUB::Publication::Package::Manifest)</small>
195
+
196
+ </li>
197
+
198
+ <li>
199
+ <span class='object_link'><a href="EPUB/Publication/Package/Spine/Itemref.html" title="EPUB::Publication::Package::Spine::Itemref (class)">Itemref</a></span>
200
+
201
+ <small>(EPUB::Publication::Package::Spine)</small>
202
+
203
+ </li>
204
+
205
+ </ul>
206
+ </ul>
207
+
208
+
209
+ <ul id="alpha_M" class="alpha">
210
+ <li class="letter">M</li>
211
+ <ul>
212
+
213
+ <li>
214
+ <span class='object_link'><a href="EPUB/Publication/Package/Manifest.html" title="EPUB::Publication::Package::Manifest (class)">Manifest</a></span>
215
+
216
+ <small>(EPUB::Publication::Package)</small>
217
+
218
+ </li>
219
+
220
+ <li>
221
+ <span class='object_link'><a href="EPUB/OCF/Manifest.html" title="EPUB::OCF::Manifest (class)">Manifest</a></span>
222
+
223
+ <small>(EPUB::OCF)</small>
224
+
225
+ </li>
226
+
227
+ <li>
228
+ <span class='object_link'><a href="EPUB/Publication/Package/Bindings/MediaType.html" title="EPUB::Publication::Package::Bindings::MediaType (class)">MediaType</a></span>
229
+
230
+ <small>(EPUB::Publication::Package::Bindings)</small>
231
+
232
+ </li>
233
+
234
+ <li>
235
+ <span class='object_link'><a href="EPUB/OCF/Metadata.html" title="EPUB::OCF::Metadata (class)">Metadata</a></span>
236
+
237
+ <small>(EPUB::OCF)</small>
238
+
239
+ </li>
240
+
241
+ <li>
242
+ <span class='object_link'><a href="EPUB/Publication/Package/Metadata.html" title="EPUB::Publication::Package::Metadata (class)">Metadata</a></span>
243
+
244
+ <small>(EPUB::Publication::Package)</small>
245
+
246
+ </li>
247
+
248
+ </ul>
249
+ </ul>
250
+
251
+
252
+ </td><td valign='top' width="33%">
253
+
254
+
255
+ <ul id="alpha_N" class="alpha">
256
+ <li class="letter">N</li>
257
+ <ul>
258
+
259
+ <li>
260
+ <span class='object_link'><a href="EPUB/ContentDocument/Navigation/Nav.html" title="EPUB::ContentDocument::Navigation::Nav (class)">Nav</a></span>
261
+
262
+ <small>(EPUB::ContentDocument::Navigation)</small>
263
+
264
+ </li>
265
+
266
+ <li>
267
+ <span class='object_link'><a href="EPUB/ContentDocument/Navigation.html" title="EPUB::ContentDocument::Navigation (class)">Navigation</a></span>
268
+
269
+ <small>(EPUB::ContentDocument)</small>
270
+
271
+ </li>
272
+
273
+ </ul>
274
+ </ul>
275
+
276
+
277
+ <ul id="alpha_O" class="alpha">
278
+ <li class="letter">O</li>
279
+ <ul>
280
+
281
+ <li>
282
+ <span class='object_link'><a href="EPUB/OCF.html" title="EPUB::OCF (class)">OCF</a></span>
283
+
284
+ <small>(EPUB)</small>
285
+
286
+ </li>
287
+
288
+ <li>
289
+ <span class='object_link'><a href="EPUB/Parser/OCF.html" title="EPUB::Parser::OCF (class)">OCF</a></span>
290
+
291
+ <small>(EPUB::Parser)</small>
292
+
293
+ </li>
294
+
295
+ <li>
296
+ <span class='object_link'><a href="EPUB/ContentDocument/Navigation/Nav/Ol.html" title="EPUB::ContentDocument::Navigation::Nav::Ol (class)">Ol</a></span>
297
+
298
+ <small>(EPUB::ContentDocument::Navigation::Nav)</small>
299
+
300
+ </li>
301
+
302
+ </ul>
303
+ </ul>
304
+
305
+
306
+ <ul id="alpha_P" class="alpha">
307
+ <li class="letter">P</li>
308
+ <ul>
309
+
310
+ <li>
311
+ <span class='object_link'><a href="EPUB/Publication/Package.html" title="EPUB::Publication::Package (class)">Package</a></span>
312
+
313
+ <small>(EPUB::Publication)</small>
314
+
315
+ </li>
316
+
317
+ <li>
318
+ <span class='object_link'><a href="EPUB/Parser.html" title="EPUB::Parser (class)">Parser</a></span>
319
+
320
+ <small>(EPUB)</small>
321
+
322
+ </li>
323
+
324
+ <li>
325
+ <span class='object_link'><a href="EPUB/Publication.html" title="EPUB::Publication (module)">Publication</a></span>
326
+
327
+ <small>(EPUB)</small>
328
+
329
+ </li>
330
+
331
+ <li>
332
+ <span class='object_link'><a href="EPUB/Parser/Publication.html" title="EPUB::Parser::Publication (class)">Publication</a></span>
333
+
334
+ <small>(EPUB::Parser)</small>
335
+
336
+ </li>
337
+
338
+ </ul>
339
+ </ul>
340
+
341
+
342
+ <ul id="alpha_R" class="alpha">
343
+ <li class="letter">R</li>
344
+ <ul>
345
+
346
+ <li>
347
+ <span class='object_link'><a href="EPUB/OCF/Rights.html" title="EPUB::OCF::Rights (class)">Rights</a></span>
348
+
349
+ <small>(EPUB::OCF)</small>
350
+
351
+ </li>
352
+
353
+ <li>
354
+ <span class='object_link'><a href="EPUB/OCF/Container/Rootfile.html" title="EPUB::OCF::Container::Rootfile (class)">Rootfile</a></span>
355
+
356
+ <small>(EPUB::OCF::Container)</small>
357
+
358
+ </li>
359
+
360
+ </ul>
361
+ </ul>
362
+
363
+
364
+ <ul id="alpha_S" class="alpha">
365
+ <li class="letter">S</li>
366
+ <ul>
367
+
368
+ <li>
369
+ <span class='object_link'><a href="EPUB/OCF/Signatures.html" title="EPUB::OCF::Signatures (class)">Signatures</a></span>
370
+
371
+ <small>(EPUB::OCF)</small>
372
+
373
+ </li>
374
+
375
+ <li>
376
+ <span class='object_link'><a href="EPUB/ContentDocument/Navigation/Nav/Ol/Span.html" title="EPUB::ContentDocument::Navigation::Nav::Ol::Span (class)">Span</a></span>
377
+
378
+ <small>(EPUB::ContentDocument::Navigation::Nav::Ol)</small>
379
+
380
+ </li>
381
+
382
+ <li>
383
+ <span class='object_link'><a href="EPUB/Publication/Package/Spine.html" title="EPUB::Publication::Package::Spine (class)">Spine</a></span>
384
+
385
+ <small>(EPUB::Publication::Package)</small>
386
+
387
+ </li>
388
+
389
+ </ul>
390
+ </ul>
391
+
392
+
393
+ <ul id="alpha_T" class="alpha">
394
+ <li class="letter">T</li>
395
+ <ul>
396
+
397
+ <li>
398
+ <span class='object_link'><a href="EPUB/Constants/Type.html" title="EPUB::Constants::Type (module)">Type</a></span>
399
+
400
+ <small>(EPUB::Constants)</small>
401
+
402
+ </li>
403
+
404
+ </ul>
405
+ </ul>
406
+
407
+ </td>
408
+ </tr>
409
+ </table>
410
+
411
+ </div>
412
+
413
+ </div>
414
+
415
+ <div id="footer">
416
+ Generated on Fri Dec 30 08:49:44 2011 by
417
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
418
+ 0.7.4 (ruby-1.9.3).
419
+ </div>
420
+
421
+ </body>
422
+ </html>