There are no implemented interfaces.
component_type
(type:
str
)
'writer'
config_section
(type:
str
)
'html4css1 writer'
config_section_dependencies
(type:
tuple
)
('writers',)
default_stylesheet
(type:
str
)
'html4css1.css'
default_stylesheet_path
(type:
str
)
'src/docutils/writers/html4css1/html4css1.css'
default_transforms
(type:
tuple
)
()
destination
(type: NoneType
)
None
document
(type: NoneType
)
None
language
(type: NoneType
)
None
output
(type: NoneType
)
None
relative_path_settings
(type:
tuple
)
('stylesheet_path',)
settings_default_overrides
(type: NoneType
)
None
settings_defaults
(type:
dict
)
{'output_encoding_error_handler': 'xmlcharrefreplace'}
settings_spec
(type:
tuple
)
('HTML-Specific Options', None, (('Specify a stylesheet URL, used verbatim. Overrides --stylesheet-path.', ['--stylesheet'], {'overrides': 'stylesheet_path', 'metavar': '<URL>'}), ('Specify a stylesheet file, relative to the current working directory. The path is adjusted relative to the output HTML file. Overrides --stylesheet. Default: "src/docutils/writers/html4css1/html4css1.css"', ['--stylesheet-path'], {'default': 'src/docutils/writers/html4css1/html4css1.css', 'overrides': 'stylesheet', 'metavar': '<file>'}), ('Embed the stylesheet in the output HTML file. The stylesheet file must be accessible during processing (--stylesheet-path is recommended). This is the default.', ['--embed-stylesheet'], {'default': 1, 'action': 'store_true', 'validator': <function validate_boolean at 0x413ce9cc>}), ('Link to the stylesheet in the output HTML file. Default: embed the stylesheet, do not link to it.', ['--link-stylesheet'], {'dest': 'embed_stylesheet', 'action': 'store_false', 'validator': <function validate_boolean at 0x413ce9cc>}), ('Specify the initial header level. Default is 1 for "<h1>". Does not affect document title & subtitle (see --no-doc-title).', ['--initial-header-level'], {'default': '1', 'metavar': '<level>', 'choices': ['1', '2', '3', '4', '5', '6']}), ('Specify the maximum width (in characters) for one-column field names. Longer field names will span an entire row of the table used to render the field list. Default is 14 characters. Use 0 for "no limit".', ['--field-name-limit'], {'default': 14, 'validator': <function validate_nonnegative_int at 0x413cea04>, 'metavar': '<level>'}), ('Specify the maximum width (in characters) for options in option lists. Longer options will span an entire row of the table used to render the option list. Default is 14 characters. Use 0 for "no limit".', ['--option-limit'], {'default': 14, 'validator': <function validate_nonnegative_int at 0x413cea04>, 'metavar': '<level>'}), ('Format for footnote references: one of "superscript" or "brackets". Default is "brackets".', ['--footnote-references'], {'default': 'brackets', 'overrides': 'trim_footnote_reference_space', 'metavar': '<format>', 'choices': ['superscript', 'brackets']}), ('Format for block quote attributions: one of "dash" (em-dash prefix), "parentheses"/"parens", or "none". Default is "dash".', ['--attribution'], {'default': 'dash', 'metavar': '<format>', 'choices': ['dash', 'parentheses', 'parens', 'none']}), ('Remove extra vertical whitespace between items of "simple" bullet lists and enumerated lists. Default: enabled.', ['--compact-lists'], {'default': 1, 'action': 'store_true', 'validator': <function validate_boolean at 0x413ce9cc>}), ('Disable compact simple bullet and enumerated lists.', ['--no-compact-lists'], {'dest': 'compact_lists', 'action': 'store_false'}), ('Remove extra vertical whitespace between items of simple field lists. Default: enabled.', ['--compact-field-lists'], {'default': 1, 'action': 'store_true', 'validator': <function validate_boolean at 0x413ce9cc>}), ('Disable compact simple field lists.', ['--no-compact-field-lists'], {'dest': 'compact_field_lists', 'action': 'store_false'}), ('Omit the XML declaration. Use with caution.', ['--no-xml-declaration'], {'dest': 'xml_declaration', 'default': 1, 'validator': <function validate_boolean at 0x413ce9cc>, 'action': 'store_false'}), ('Obfuscate email addresses to confuse harvesters while still keeping email links usable with standards-compliant browsers.', ['--cloak-email-addresses'], {'action': 'store_true', 'validator': <function validate_boolean at 0x413ce9cc>})))
supported
(type:
tuple
)
('html', 'html4css1', 'xhtml')
unknown_reference_resolvers
(type:
tuple
)
()
assemble_parts()
get_transforms()
supports(format)
Is format supported by this component?
To be used by transforms to ask the dependent component if it supports a certain input context or output format.
translate()
write(document, destination)
Process a document into its final form.
Translate document (a Docutils document tree) into the Writer's native format, and write it out to its destination (a docutils.io.Output subclass object).
Normally not overridden or extended in subclasses.
There are no known subclasses.