Documentation
¶
Index ¶
Constants ¶
View Source
const FullScreenFixesCSS = `` /* 136-byte string literal not displayed */
View Source
const HyphenateCSS = `` /* 345-byte string literal not displayed */
View Source
const NoHyphenateCSS = `* {
-moz-hyphens: none !important;
-webkit-hyphens: none !important;
hyphens: none !important;
}`
Variables ¶
This section is empty.
Functions ¶
func UnpackEPUB ¶
UnpackEPUB unpacks an epub
Types ¶
type Converter ¶
type Converter struct {
PostDoc func(doc *goquery.Document) error // post-processing the parsed document
PostHTML func(h string) (string, error) // post-processing the resulting html string (after PostDoc)
ExtraCSS string // extra css to add
NoHyphenate bool // force disable hyphenation
Hyphenate bool // force enable hyphenation
InlineStyles bool // inline all stylesheets
FullScreenFixes bool // add css to fix FullScreenReading (probably not needed since 4.11.11911)
FindReplace map[string]string // find and replace on the html of all content files
Verbose bool // verbose output to stdout during conversion
}
func (*Converter) CleanFiles ¶
func (*Converter) ProcessHTML ¶
ProcessHTML processes a html file. filename is the full path to the file and is required if inlining styles.
Click to show internal directories.
Click to hide internal directories.