Module esis2sgml
[hide private]
[frames] | no frames]

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.

Functions [hide private]
 
map_gi(sgmlgi, map)
 
null_map_gi(sgmlgi, map)
 
format_attrs(attrs, xml=0)
 
isnmtoken(s)
 
istoken(s)
 
convert(ifp, ofp, xml=0, autoclose=(), verbatims=())
 
dump_empty_element_names(knownempties)
 
update_gi_map(map, names, fromsgml=1)
 
main()
Variables [hide private]
  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