index
module docmodel.main
main.py
Initialization of parsers responsible for first-level processing.
This file includes the PARSERS dictionary (indexed on source identifiers, handed
in by the --source-format option). If a new source type is introduced, then an item
needs to be added to the PARSERS dictionary. In addition, if new parsers are
required they should be added to source_parser.py and metadata_parser.py.
module functions
create_docstructure_parser()
Return the default document structure parser.
create_metadata_parser(options)
create_source_parser(options)
guess_source(filename_or_string)
Returns whether the source type of the content of the file or string is
xml, ttk or text. This is a guess because the heuristics used are simple and
are just searching the first 1000 characters of the input.