On Mon, Dec 06, 2004 at 05:07:36PM +0800, Calvin Yu wrote:
hello all: Can you tell me the difference among these dillo html parse mode? DILLO_HTML_PARSE_MODE_INIT, DILLO_HTML_PARSE_MODE_STASH, DILLO_HTML_PARSE_MODE_STASH_AND_BODY, DILLO_HTML_PARSE_MODE_VERBATIM, DILLO_HTML_PARSE_MODE_BODY, DILLO_HTML_PARSE_MODE_PRE What do these parse mode mean? Especially, what is stash mode? Thank you very much!
The generic parser in Dillo deals with plain text, HTML, XML, comments and the hybrid defined by the PRE element. These modes are flags that let the parser know how to treat the source when switching from one to another. _INIT almost not used. Flags the state before parsing. _BODY is for generic HTML. _VERBATIM is for text that should not be interpreted. _PRE is for handling the <PRE> element. _STASH groups words into a string, and when done processes the sentence as a whole. _STASH_AND_BODY is a bit of a hack to allow for constructing the page index menu from header elements. -- Cheers Jorge.-