HTMLInfo
StyledTextIOReader_HTML
StyledTextIOWriter_HTML
qThrowAwayMostUnknownHTMLTags
qWriteOutMostHTMLEntitiesByName
Subclasses of StyledTextIOReader
and StyledTextIOWriter
are where the knowledge of particular file formats resides.
For example, the knowledge of how to read HTML is in StyledTextIOReader_HTML
and the knowledge of how to write HTML is in
StyledTextIOWriter_HTML
.
HTMLInfo [public]
StyledTextIOReader_HTML [public]
StyledTextIOReader
Member Details |
---|
Return a vector of StyledTextIOReader_HTML::EntityRefMapEntry to be used in reading in HTML text. These entity refs will be recognized in the input text, and mapped to the appropriate given character. NB: The return value is a REFERENCE to vector. The lifetime of that vector must be at least til the next call of this function, or til the death of this object. Typically, it is assumed, a static table will be used so the lifetime will be the end of the process. |
Return a vector of StyledTextIOReader_HTML::EntityRefMapEntry to be used in reading in HTML text. These entity refs will be recognized in the input text, and mapped to the appropriate given character. NB: The return value is a REFERENCE to vector. The lifetime of that vector must be at least til the next call of this function, or til the death of this object. Typically, it is assumed, a static table will be used so the lifetime will be the end of the process. |
StyledTextIOWriter_HTML [public]
StyledTextIOWriter
Member Details |
---|
See if there is an open tag on the stack with the given name. See also |
Closes the given tag and removes it from the tag stack. First removes any implicity closed tags from the tag stack (and emits their closing tag HTML). See also |
Writes an open tag - possibly with arguments - and implicitly closes it. Tags like "br" get handled that way. See also |
Write the given tag (given by name - eg. "b" for bold) to the output. Save it in the tagstack so that later closing tags will be implicitly closed. See also |
Like See also |
qThrowAwayMostUnknownHTMLTags [public]
By default, on reading, we throw away or interpret losely most tags. This makes the reader very lossy, but produces the most human-readable result. For now control which behavior you want via this compiletime flag. -- LGP 961015
qWriteOutMostHTMLEntitiesByName [public]
By default, off - cuz that works more compatably with many older web browser (such as Netscape 4.x). And writing them by number is slightly faster.