diff --git a/tldp/doctypes/docbook4xml.py b/tldp/doctypes/docbook4xml.py index e4a3234..1e0feb5 100644 --- a/tldp/doctypes/docbook4xml.py +++ b/tldp/doctypes/docbook4xml.py @@ -6,12 +6,29 @@ from .common import SignatureChecker class Docbook4XML(SignatureChecker): + formatname = ['DocBook 4.x XML'] extensions = ['.xml'] signatures = ['-//OASIS//DTD DocBook XML V4.1.2//EN', '-//OASIS//DTD DocBook XML V4.2//EN', '-//OASIS//DTD DocBook XML V4.2//EN', '-//OASIS//DTD DocBook XML V4.4//EN', '-//OASIS//DTD DocBook XML V4.5//EN', ] + tools = ['xsltproc', 'html2text', 'fop', 'dblatex'] + files = [''] + + def create_txt(self): + logger.info("Creating txt for %s", self.source.stem) + + def create_pdf(self): + logger.info("Creating PDF for %s", self.source.stem) + + def create_html(self): + logger.info("Creating chunked HTML for %s", self.source.stem) + + def create_htmls(self): + logger.info("Creating single page HTML for %s", self.source.stem) # # -- end of file +# +# -- end of file diff --git a/tldp/doctypes/docbook5xml.py b/tldp/doctypes/docbook5xml.py index e2c5b27..a8df49f 100644 --- a/tldp/doctypes/docbook5xml.py +++ b/tldp/doctypes/docbook5xml.py @@ -5,9 +5,23 @@ from .common import SignatureChecker class Docbook5XML(SignatureChecker): + formatname = 'DocBook 5.x XML' extensions = ['.xml'] signatures = ['-//OASIS//DTD DocBook V5.0/EN', 'http://docbook.org/ns/docbook', ] + tools = ['xsltproc', 'html2text', 'fop', 'dblatex'] + + def create_txt(self): + logger.info("Creating txt for %s", self.source.stem) + + def create_pdf(self): + logger.info("Creating PDF for %s", self.source.stem) + + def create_html(self): + logger.info("Creating chunked HTML for %s", self.source.stem) + + def create_htmls(self): + logger.info("Creating single page HTML for %s", self.source.stem) # # -- end of file diff --git a/tldp/doctypes/docbooksgml.py b/tldp/doctypes/docbooksgml.py index 53d96a7..059d646 100644 --- a/tldp/doctypes/docbooksgml.py +++ b/tldp/doctypes/docbooksgml.py @@ -5,11 +5,25 @@ from .common import SignatureChecker class DocbookSGML(SignatureChecker): + formatname = 'DocBook 3.x and 4.x SGML' extensions = ['.sgml'] signatures = ['-//Davenport//DTD DocBook V3.0//EN', '-//OASIS//DTD DocBook V3.1//EN', '-//OASIS//DTD DocBook V4.1//EN', '-//OASIS//DTD DocBook V4.2//EN', ] + tools = ['jw', 'openjade', 'collateindex.pl', 'html2text', 'dblatex'] + + def create_txt(self): + logger.info("Creating txt for %s", self.source.stem) + + def create_pdf(self): + logger.info("Creating PDF for %s", self.source.stem) + + def create_html(self): + logger.info("Creating chunked HTML for %s", self.source.stem) + + def create_htmls(self): + logger.info("Creating single page HTML for %s", self.source.stem) # # -- end of file diff --git a/tldp/doctypes/markdown.py b/tldp/doctypes/markdown.py index 3fe1035..0e26f90 100644 --- a/tldp/doctypes/markdown.py +++ b/tldp/doctypes/markdown.py @@ -4,8 +4,22 @@ from ..utils import logger class Markdown(object): + formatname = 'Markdown' extensions = ['.md'] signatures = [] + tools = ['pandoc'] + + def create_txt(self): + logger.info("Creating txt for %s", self.source.stem) + + def create_pdf(self): + logger.info("Creating PDF for %s", self.source.stem) + + def create_html(self): + logger.info("Creating chunked HTML for %s", self.source.stem) + + def create_htmls(self): + logger.info("Creating single page HTML for %s", self.source.stem) # # -- end of file diff --git a/tldp/doctypes/rst.py b/tldp/doctypes/rst.py index a740027..4d3cec7 100644 --- a/tldp/doctypes/rst.py +++ b/tldp/doctypes/rst.py @@ -4,8 +4,22 @@ from ..utils import logger class RestructuredText(object): + formatname = 'reStructuredText' extensions = ['.rst'] signatures = [] + tools = ['rst2html'] + + def create_txt(self): + logger.info("Creating txt for %s", self.source.stem) + + def create_pdf(self): + logger.info("Creating PDF for %s", self.source.stem) + + def create_html(self): + logger.info("Creating chunked HTML for %s", self.source.stem) + + def create_htmls(self): + logger.info("Creating single page HTML for %s", self.source.stem) # # -- end of file diff --git a/tldp/doctypes/text.py b/tldp/doctypes/text.py index a57271c..e86084a 100644 --- a/tldp/doctypes/text.py +++ b/tldp/doctypes/text.py @@ -4,8 +4,22 @@ from ..utils import logger class Text(object): + formatname = 'plain text' extensions = ['.txt'] signatures = [] + tools = ['pandoc'] + + def create_txt(self): + logger.info("Creating txt for %s", self.source.stem) + + def create_pdf(self): + logger.info("Creating PDF for %s", self.source.stem) + + def create_html(self): + logger.info("Creating chunked HTML for %s", self.source.stem) + + def create_htmls(self): + logger.info("Creating single page HTML for %s", self.source.stem) # # -- end of file