Module esis2sgml
Convert ESIS events to SGML or XML markup.
This is limited, but seems sufficient for the ESIS generated by the
latex2esis.py script when run over the Python documentation.
|
|
|
|
|
format_attrs(attrs,
xml=0) |
|
|
|
|
|
|
|
convert(ifp,
ofp,
xml=0,
autoclose=( ) ,
verbatims=( ) ) |
|
|
|
dump_empty_element_names(knownempties) |
|
|
|
update_gi_map(map,
names,
fromsgml=1) |
|
|
|
|
|
AUTOCLOSE = ( )
|
|
EMPTIES_FILENAME = ' ../sgml/empties.dat '
|
|
LIST_EMPTIES = 0
|
|
_elem_map = { }
|
|
_attr_map = { }
|
|
_token_map = { }
|
|
_nmtoken_rx = re.compile(r'(?i) [ a- z] [ -\._a- z0- 9] * $')
|
|
_token_rx = re.compile(r'(?i) [ a- z0- 9] [ -\._a- z0- 9] * $')
|
Imports:
errno,
os,
re,
string,
escape,
esistools,
_normalize_case