mirror of https://github.com/tLDP/python-tldp
30 lines
879 B
Python
30 lines
879 B
Python
#! /usr/bin/python
|
|
|
|
from ..utils import logger
|
|
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
|