Safe Haskell | None |
---|
Functions for doing some disk IO with ePub documents
- opfContentsFromZip :: (MonadError String m, MonadIO m) => FilePath -> m (FilePath, String)
- opfContentsFromBS :: (MonadError String m, MonadIO m) => ByteString -> m (FilePath, String)
- opfContentsFromDir :: (MonadError String m, MonadIO m) => FilePath -> m (FilePath, String)
- removeEncoding :: String -> String
- removeDoctype :: String -> String
Documentation
:: (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
:: (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
:: (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
removeEncoding :: String -> StringSource
An evil hack to remove encoding from the document
removeDoctype :: String -> StringSource
An evil hack to remove any ... from the document