Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
daino uses sequences of transformations between data structures (types) MD -> Docrep -> Panrep -> TexSnip -> Tex -> PDF Pandrep -> HTML Each result is written as a typed file with a specific extension
Synopsis
- newtype PDFfile = PDFfile {}
- newtype Latex = Latex {}
- data TexSnip = TexSnip {}
- newtype Panrep1 = Panrep1 {}
- data Panrep = Panrep {}
- data Docrep = Docrep {}
- extDocrep :: Extension
- docrepFileType :: TypedFile5 Text Docrep
- extPanrep :: Extension
- panrepFileType :: TypedFile5 Text Panrep
- extPanrep1 :: Extension
- panrep1FileType :: TypedFile5 Text Panrep1
- extTexSnip :: Extension
- texSnipFileType :: TypedFile5 Text TexSnip
- extTex :: Extension
- texFileType :: TypedFile5 Text Latex
- pdfFileType :: TypedFile5 Text PDFfile
Documentation
a file in PDF format
this is a full file, not just a snippet
a wrapper around TexSnip snipyam is not used a tex snip is a piece of latex code, but not a full compilable latex which results in a pdf
representation of a document the yam part contains the json formated yaml metadata which is extensible Attention the Pandoc is Pandoc (Meta (Map Text MetaValue) [Block] means that title etc is duplicated in the Meta part. I keep the pandoc structure (Pandoc Meta [Block] - Text.Pandoc.Definition because it is possible to convert the Meta from Pandoc to JSON with flattenMeta (in PandocImports) but I do not see an easy way to convert back - Where would this be required? - probably for the index construction?
Instances
FromJSON Docrep Source # | |
ToJSON Docrep Source # | |
Defined in Foundational.Filetypes4sites | |
Generic Docrep Source # | |
Read Docrep Source # | |
Show Docrep Source # | |
Eq Docrep Source # | |
Zeros Docrep Source # | |
TypedFiles7 Text Docrep Source # | |
type Rep Docrep Source # | |
Defined in Foundational.Filetypes4sites type Rep Docrep = D1 ('MetaData "Docrep" "Foundational.Filetypes4sites" "daino-0.1.5.2-BGWuqXC897kITybImSdur4" 'False) (C1 ('MetaCons "Docrep" 'PrefixI 'True) (S1 ('MetaSel ('Just "meta1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MetaPage) :*: S1 ('MetaSel ('Just "pan1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Pandoc))) |
panrepFileType :: TypedFile5 Text Panrep Source #
a file containing what pandoc internally works on plus the complete set of the metadata