When this module is run as a script it allows conversion from one format to another Given two format names it will read the first format from stdin and write the second format to stdout:
cat foo.txt | python -m zim.formats wiki html > foo.html
Given only one format name it will output the parsetree XML:
cat foo.txt | python -m zim.formats wiki > foo.xml
Note that this can not replace "zim --export" because no effort is done here to resolve links. Main purpose is testing.
Variable | dumper |
Undocumented |
Variable | input |
Undocumented |
Variable | inputformat |
Undocumented |
Variable | lines |
Undocumented |
Variable | linker |
Undocumented |
Variable | outputformat |
Undocumented |
Variable | parser |
Undocumented |
Variable | source_dir |
Undocumented |
Variable | tree |
Undocumented |