GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fixed #123 - Remove unused test files · 06linux/ebooklib@eb2f0e3

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • samples/06_parse
    • README.md
    • parse.py
  • tests
    • epub_booktype.py
    • epub_create.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎samples/06_parse/README.md‎

Copy file name to clipboard
+8Lines changed: 8 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Plugins
2+
=======
3+
4+
How to parse EPUB fule.
5+
6+
## Start
7+
8+
python parse.py my-book.epub
Collapse file

‎tests/epub_parse.py‎ ‎samples/06_parse/parse.py‎tests/epub_parse.py renamed to samples/06_parse/parse.py

Copy file name to clipboardExpand all lines: samples/06_parse/parse.py
+3-9Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,8 @@
1010
debug(book.spine)
1111
debug(book.toc)
1212

13-
#for it in book.items:
14-
# debug( it.get_type())
15-
1613
for x in book.get_items_of_type(ebooklib.ITEM_IMAGE):
17-
debug( x)
18-
19-
from ebooklib.plugins import standard, tidyhtml
20-
21-
opts = {'plugins': [standard.SyntaxPlugin(), tidyhtml.TidyPlugin()]}
14+
debug(x)
2215

23-
epub.write_epub('test.epub', book, opts)
16+
for x in book.get_items_of_type(ebooklib.ITEM_DOCUMENT):
17+
debug(x)
Collapse file

‎tests/epub_booktype.py‎

Copy file name to clipboardExpand all lines: tests/epub_booktype.py
-221Lines changed: 0 additions & 221 deletions
This file was deleted.
Collapse file

‎tests/epub_create.py‎

Copy file name to clipboardExpand all lines: tests/epub_create.py
-92Lines changed: 0 additions & 92 deletions
This file was deleted.

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.