epub-metadata-2.3.2: Library for parsing and manipulating ePub files and OPF package data

Safe HaskellNone

Codec.Epub.IO

Description

Functions for doing some disk IO with ePub documents

Synopsis

Documentation

opfContentsFromZipSource

Arguments

:: (MonadError String m, MonadIO m) 
=> FilePath

path to ePub zip file

-> m (FilePath, String)

path and contents of the OPF Package Document

Get the contents of the OPF Package Document from an ePub file

opfContentsFromBSSource

Arguments

:: (MonadError String m, MonadIO m) 
=> ByteString

contents of the zip file

-> m (FilePath, String)

path and contents of the OPF Package Document

Get the contents of the OPF Package Document from a ByteString

opfContentsFromDirSource

Arguments

:: (MonadError String m, MonadIO m) 
=> FilePath

directory path

-> m (FilePath, String)

path and contents of the OPF Package Document

Get the contents of the OPF Package Document from an ePub file

removeIllegalStartChars :: String -> StringSource

An evil hack to remove *ILLEGAL* characters before the XML | declaration. Why do people write software that does this? | Can't they follow directions?

removeEncoding :: String -> StringSource

An evil hack to remove encoding from the document

removeDoctype :: String -> StringSource

An evil hack to remove any ... from the document