-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Hoodle file parser -- -- Text parser for hoodle xml file @package hoodle-parser @version 0.3 module Text.Hoodle.Parse.Zlib -- | check if gzip or not checkIfBinary :: FilePath -> IO Bool -- | attoparsec implementation of hoodle parser v0.2.2 module Text.Hoodle.Parse.Attoparsec.V0_2_2 skipSpaces :: Parser () trim_starting_space :: Parser () langle :: Parser Char rangle :: Parser Char xmlheader :: Parser ByteString headercontentWorker :: ByteString -> Parser ByteString headercontent :: Parser ByteString data StrokeWidth SingleWidth :: Double -> StrokeWidth VarWidth :: [Double] -> StrokeWidth data XmlStroke XmlStroke :: ByteString -> ByteString -> StrokeWidth -> [Pair Double Double] -> XmlStroke xstrk_tool :: XmlStroke -> ByteString xstrk_color :: XmlStroke -> ByteString xstrk_width :: XmlStroke -> StrokeWidth xstrk_xydata :: XmlStroke -> [Pair Double Double] xmlstroketagopen :: Parser XmlStroke strokewidth :: Parser StrokeWidth xmlstroketagclose :: Parser () xmlstroke :: Parser XmlStroke onestroke :: Parser Stroke mkXYZ :: [Pair Double Double] -> [Double] -> [(Double, Double, Double)] img :: Parser Item svg_header :: Parser ((Double, Double), Dimension) svg_footer :: Parser () textCDATA :: Parser ByteString commandCDATA :: Parser ByteString renderCDATA :: Parser ByteString svg_obj :: Parser Item link_header :: Parser (ByteString, ByteString, Maybe ByteString, ByteString, (Double, Double), Dimension) link_footer :: Parser () link :: Parser Item trim :: Parser () checkHoodleVersion :: Parser ByteString hoodle :: Parser Hoodle page :: Parser Page layer :: Parser Layer title :: Parser ByteString titleheader :: Parser ByteString titleclose :: Parser ByteString revision :: Parser Revision embeddedpdf :: Parser (ByteString) hoodleheader :: Parser (ByteString, ByteString) hoodleheaderstart :: Parser ByteString hoodleversion :: Parser ByteString hoodleid :: Parser ByteString hoodleheaderend :: Parser Char hoodleclose :: Parser ByteString pageheader :: Parser Dimension pageheaderstart :: Parser ByteString pageheaderend :: Parser Char pageclose :: Parser ByteString layerheader :: Parser ByteString layerclose :: Parser ByteString background :: Parser Background alphabet :: Parser ByteString alphanumsharp :: Parser ByteString -- | need to be reimplemented parseFileName :: Parser ByteString backgroundheader :: Parser ByteString backgroundclose :: Parser ByteString -- | attoparsec implementation of hoodle parser module Text.Hoodle.Parse.Attoparsec.V0_1_1 skipSpaces :: Parser () trim_starting_space :: Parser () langle :: Parser Char rangle :: Parser Char xmlheader :: Parser ByteString headercontentWorker :: ByteString -> Parser ByteString headercontent :: Parser ByteString data StrokeWidth SingleWidth :: Double -> StrokeWidth VarWidth :: [Double] -> StrokeWidth data XmlStroke XmlStroke :: ByteString -> ByteString -> StrokeWidth -> [Pair Double Double] -> XmlStroke xstrk_tool :: XmlStroke -> ByteString xstrk_color :: XmlStroke -> ByteString xstrk_width :: XmlStroke -> StrokeWidth xstrk_xydata :: XmlStroke -> [Pair Double Double] xmlstroketagopen :: Parser XmlStroke strokewidth :: Parser StrokeWidth xmlstroketagclose :: Parser () xmlstroke :: Parser XmlStroke onestroke :: Parser Item mkXYZ :: [Pair Double Double] -> [Double] -> [(Double, Double, Double)] img :: Parser Item svg_header :: Parser ((Double, Double), Dimension) svg_footer :: Parser () svg_text :: Parser ByteString svg_command :: Parser ByteString svg_render :: Parser ByteString svg_obj :: Parser Item trim :: Parser () hoodle :: Parser Hoodle page :: Parser Page layer :: Parser Layer title :: Parser ByteString titleheader :: Parser ByteString titleclose :: Parser ByteString preview :: Parser () previewheader :: Parser ByteString previewclose :: Parser ByteString hoodleheader :: Parser ByteString hoodleheaderstart :: Parser ByteString hoodleheaderend :: Parser Char hoodleclose :: Parser ByteString pageheader :: Parser Dimension pageheaderstart :: Parser ByteString pageheaderend :: Parser Char pageclose :: Parser ByteString layerheader :: Parser ByteString layerclose :: Parser ByteString background :: Parser Background alphabet :: Parser ByteString alphanumsharp :: Parser ByteString -- | need to be reimplemented parseFileName :: Parser ByteString backgroundheader :: Parser ByteString backgroundclose :: Parser ByteString -- | attoparsec implementation of hoodle parser module Text.Hoodle.Parse.Attoparsec skipSpaces :: Parser () trim_starting_space :: Parser () langle :: Parser Char rangle :: Parser Char xmlheader :: Parser ByteString headercontentWorker :: ByteString -> Parser ByteString headercontent :: Parser ByteString data StrokeWidth SingleWidth :: Double -> StrokeWidth VarWidth :: [Double] -> StrokeWidth data XmlStroke XmlStroke :: ByteString -> ByteString -> StrokeWidth -> [Pair Double Double] -> XmlStroke xstrk_tool :: XmlStroke -> ByteString xstrk_color :: XmlStroke -> ByteString xstrk_width :: XmlStroke -> StrokeWidth xstrk_xydata :: XmlStroke -> [Pair Double Double] xmlstroketagopen :: Parser XmlStroke strokewidth :: Parser StrokeWidth xmlstroketagclose :: Parser () xmlstroke :: Parser XmlStroke onestroke :: Parser Stroke mkXYZ :: [Pair Double Double] -> [Double] -> [(Double, Double, Double)] img :: Parser Item svg_header :: Parser ((Double, Double), Dimension) svg_footer :: Parser () textCDATA :: Parser ByteString commandCDATA :: Parser ByteString renderCDATA :: Parser ByteString getCDATA :: Parser ByteString svg_obj :: Parser Item link_header :: Parser (ByteString, ByteString, Maybe ByteString, ByteString, Maybe ByteString, (Double, Double), Dimension) link_footer :: Parser () link :: Parser Item anchor :: Parser Item trim :: Parser () checkHoodleVersion :: Parser ByteString hoodle :: Parser Hoodle page :: Parser Page layer :: Parser Layer title :: Parser ByteString titleheader :: Parser ByteString titleclose :: Parser ByteString revision :: Parser Revision embeddedpdf :: Parser (ByteString) embeddedtext :: Parser (Text) hoodleheader :: Parser (ByteString, ByteString) hoodleheaderstart :: Parser ByteString hoodleversion :: Parser ByteString hoodleid :: Parser ByteString hoodleheaderend :: Parser Char hoodleclose :: Parser ByteString pageheader :: Parser Dimension pageheaderstart :: Parser ByteString pageheaderend :: Parser Char pageclose :: Parser ByteString layerheader :: Parser ByteString layerclose :: Parser ByteString background :: Parser Background alphabet :: Parser ByteString alphanumsharp :: Parser ByteString -- | need to be reimplemented parseFileName :: Parser ByteString backgroundheader :: Parser ByteString backgroundclose :: Parser ByteString -- | attoparsec implementation of hoodle parser module Text.Hoodlet.Parse.Attoparsec hoodlet :: Parser Item hoodletheader :: Parser ByteString -- | attoparsec implementation of hoodle parser module Text.Hoodle.Migrate.V0_1_1_to_V0_2 page2Page :: Page -> Page dim2Dim :: Dimension -> Dimension bkg2Bkg :: Background -> Background item2Item :: Item -> Item stroke2Stroke :: Stroke -> Stroke image2Image :: Image -> Image svg2SVG :: SVG -> SVG layer2Layer :: Layer -> Layer migrate :: ByteString -> IO (Either String Hoodle) module Text.Hoodle.Migrate.FromXournal mkHoodleFromXournal :: Xournal -> IO Hoodle