[Doc-SIG] CharEnt support in HTML4css1.py

David Goodger goodger@python.org
Sat, 22 Mar 2003 01:24:21 -0500


David Priest wrote:
> The following replacement code allows HTML4css1.py to support the use of 
> charents.

Unfortunately this code has a fatal side-effect.  The HTML Writer runs 
all text is run throught the HTMLTranslator.encode method, even that of 
inline literals (<literal>) and literal blocks.  Ignoring XML-style 
character entities ("&example;") would make it impossible to even 
*discuss* such entities in documents without jumping through hoops; not 
even ``&this;`` would be immune from being ignored.

The addition of character-level inline markup support to the parser 
should enable you to implement the substitution table file scheme we 
discussed earlier.

-- 
David Goodger    http://starship.python.net/~goodger

Programmer/sysadmin for hire: http://starship.python.net/~goodger/cv