plugins Package

base Module

class ebooklib.plugins.base.BasePlugin[source]

Bases: object

after_read(book)[source]

Processing after save

after_write(book)[source]

Processing after save

before_read(book)[source]

Processing before save

before_write(book)[source]

Processing before save

html_after_read(book, chapter)[source]

Processing HTML before read.

html_before_write(book, chapter)[source]

Processing HTML before save.

item_after_read(book, item)[source]

Process general item after read.

item_before_write(book, item)[source]

Process general item before write.

booktype Module

class ebooklib.plugins.booktype.BooktypeFootnotes(booktype_book)[source]

Bases: ebooklib.plugins.base.BasePlugin

NAME = 'Booktype Footnotes'
html_before_write(book, chapter)[source]

Bases: ebooklib.plugins.base.BasePlugin

NAME = 'Booktype Links'
html_before_write(book, chapter)[source]

sourcecode Module

class ebooklib.plugins.sourcecode.SourceHighlighter[source]

Bases: ebooklib.plugins.base.BasePlugin

html_before_write(book, chapter)[source]

standard Module

class ebooklib.plugins.standard.SyntaxPlugin[source]

Bases: ebooklib.plugins.base.BasePlugin

NAME = 'Check HTML syntax'
html_before_write(book, chapter)[source]
ebooklib.plugins.standard.leave_only(item, tag_list)[source]

tidyhtml Module

class ebooklib.plugins.tidyhtml.TidyPlugin(extra={})[source]

Bases: ebooklib.plugins.base.BasePlugin

NAME = 'Tidy HTML'
OPTIONS = {'char-encoding': 'utf8', 'tidy-mark': 'no'}
html_after_read(book, chapter)[source]
html_before_write(book, chapter)[source]
ebooklib.plugins.tidyhtml.tidy_cleanup(content, **extra)[source]