本文整理汇总了Python中docutils.writers.html4css1.Writer.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Writer.__init__方法的具体用法?Python Writer.__init__怎么用?Python Writer.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类docutils.writers.html4css1.Writer
的用法示例。
在下文中一共展示了Writer.__init__方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from docutils.writers.html4css1 import Writer [as 别名]
# 或者: from docutils.writers.html4css1.Writer import __init__ [as 别名]
def __init__(self, builder):
# type: (StandaloneHTMLBuilder) -> None
Writer.__init__(self)
self.builder = builder
示例2: __init__
# 需要导入模块: from docutils.writers.html4css1 import Writer [as 别名]
# 或者: from docutils.writers.html4css1.Writer import __init__ [as 别名]
def __init__(self):
Writer.__init__(self)
self.translator_class = PelicanHTMLTranslator
示例3: __init__
# 需要导入模块: from docutils.writers.html4css1 import Writer [as 别名]
# 或者: from docutils.writers.html4css1.Writer import __init__ [as 别名]
def __init__(self):
BaseWriter.__init__(self)
self.translator_class = HTML5Translator
示例4: __init__
# 需要导入模块: from docutils.writers.html4css1 import Writer [as 别名]
# 或者: from docutils.writers.html4css1.Writer import __init__ [as 别名]
def __init__(self):
Writer.__init__(self)
self.translator_class = MyHTMLTranslator
示例5: __init__
# 需要导入模块: from docutils.writers.html4css1 import Writer [as 别名]
# 或者: from docutils.writers.html4css1.Writer import __init__ [as 别名]
def __init__(self):
Writer.__init__(self)
self.translator_class = AttowikiHTMLTranslator
示例6: __init__
# 需要导入模块: from docutils.writers.html4css1 import Writer [as 别名]
# 或者: from docutils.writers.html4css1.Writer import __init__ [as 别名]
def __init__(self):
Writer.__init__(self)
self.translator_class = GitPagesHTMLTranslator
示例7: __init__
# 需要导入模块: from docutils.writers.html4css1 import Writer [as 别名]
# 或者: from docutils.writers.html4css1.Writer import __init__ [as 别名]
def __init__(self, config):
Writer.__init__(self)
if config.get('use_smartypants', False):
self.translator_class = SmartyPantsHTMLTranslator
else:
self.translator_class = HTMLTranslator
示例8: __init__
# 需要导入模块: from docutils.writers.html4css1 import Writer [as 别名]
# 或者: from docutils.writers.html4css1.Writer import __init__ [as 别名]
def __init__(self, *args, **kwargs):
Writer.__init__(self, *args, **kwargs)
self.unknown_reference_resolvers = [self.wiki_resolver]
self.nodes = []
示例9: __init__
# 需要导入模块: from docutils.writers.html4css1 import Writer [as 别名]
# 或者: from docutils.writers.html4css1.Writer import __init__ [as 别名]
def __init__(self, *args, **kwargs):
BaseWriter.__init__(self, *args, **kwargs)
self.translator_class = HTMLTranslatorWrapper
示例10: __init__
# 需要导入模块: from docutils.writers.html4css1 import Writer [as 别名]
# 或者: from docutils.writers.html4css1.Writer import __init__ [as 别名]
def __init__(self, stylesheets=None):
Writer.__init__(self)
if not stylesheets:
stylesheets = []
self.translator_class = PreviewHTMLTranslator
self.translator_class.CSS = stylesheets
示例11: __init__
# 需要导入模块: from docutils.writers.html4css1 import Writer [as 别名]
# 或者: from docutils.writers.html4css1.Writer import __init__ [as 别名]
def __init__(self):
HTMLWriter.__init__(self)
self.translator_class = CustomizedHTMLTranslator
示例12: __init__
# 需要导入模块: from docutils.writers.html4css1 import Writer [as 别名]
# 或者: from docutils.writers.html4css1.Writer import __init__ [as 别名]
def __init__(self, *args, **kwargs):
HTMLWriter.__init__(self, *args, **kwargs)
self.translator_class = Translator
示例13: __init__
# 需要导入模块: from docutils.writers.html4css1 import Writer [as 别名]
# 或者: from docutils.writers.html4css1.Writer import __init__ [as 别名]
def __init__(self):
Writer.__init__(self)
self.translator_class = HTMLTranslatorForLegalCitem
示例14: __init__
# 需要导入模块: from docutils.writers.html4css1 import Writer [as 别名]
# 或者: from docutils.writers.html4css1.Writer import __init__ [as 别名]
def __init__(self):
Writer.__init__(self)
self.translator_class = HTMLTranslatorForLegalResourceRegistry