Annotation of libwww/Library/src/HTML.html, revision 2.37
2.7 timbl 1: <HTML>
2: <HEAD>
2.36 frystyk 3: <TITLE>W3C Sample Code Library libwww HTML Parser With Text Object Converter</TITLE>
2.7 timbl 4: </HEAD>
2.6 timbl 5: <BODY>
2.36 frystyk 6: <H1>
7: Simple HTML Parser With Text Object Converter
8: </H1>
2.20 frystyk 9: <PRE>
10: /*
2.24 frystyk 11: ** (c) COPYRIGHT MIT 1995.
2.20 frystyk 12: ** Please first read the full copyright statement in the file COPYRIGH.
13: */
14: </PRE>
2.36 frystyk 15: <P>
16: This interprets the <A HREF="http://www.w3.org/MarkUp/MarkUp.html">HTML</A>
17: semantics passed to it by the <A HREF="SGML.html">SGML parser</A>. It then
18: creates a <A HREF="HText.html">HText object</A> which the application can
19: use to render an HTML object as text comes in over the wire. The
20: <A HREF="HTStyle.html">stylesheet manager</A> can be used to ensure that
21: the rendering is done according to whatever style information is present.
22: <P>
23: This module is implemented by <A HREF="HTML.c">HTML.c</A>, and it is a part
24: of the <A HREF="http://www.w3.org/Library/"> W3C Sample Code Library</A>.
2.20 frystyk 25: <PRE>
26: #ifndef HTML_H
2.1 timbl 27: #define HTML_H
28:
2.13 luotonen 29: #include "HTFormat.h"
2.8 timbl 30: #include "HTMLPDTD.h"
2.37 ! vbancrof 31:
! 32: #ifdef __cplusplus
! 33: extern "C" {
! 34: #endif
2.10 luotonen 35: </PRE>
2.36 frystyk 36: <H2>
37: Converters
38: </H2>
39: <P>
40: These are the converters implemented in this module. The first converts from
41: HTML to presentation or plain text.
42: <PRE>
43: extern HTConverter HTMLToPlain;
44: </PRE>
45: <P>
46: The next converts from HTML to a simple C like representation. It puts everything
47: not in PRE within C style comments. This is the way that the line mode browser
48: is used to convert the libwww HTML files to C style .h files
49: <PRE>
50: extern HTConverter HTMLToC;
51: </PRE>
52: <P>
53: This one converts the HTML stream to a rendered object using the
54: <A HREF="HText.html">HText interface</A>.
55: <PRE>
56: extern HTConverter HTMLPresent;
57: </PRE>
58: <H2>
59: Selecting Internal Character Set Representation
60: </H2>
61: <P>
62: Only <TT>ISO_LATIN1</TT> is currently supported.
2.27 frystyk 63: <PRE>
64: typedef enum _HTMLCharacterSet {
2.1 timbl 65: HTML_ISO_LATIN1,
66: HTML_NEXT_CHARS,
67: HTML_PC_CP950
68: } HTMLCharacterSet;
69:
2.36 frystyk 70: extern BOOL HTMLUseCharacterSet (HTMLCharacterSet charset);
2.16 timbl 71: </PRE>
2.22 frystyk 72: <PRE>
2.37 ! vbancrof 73: #ifdef __cplusplus
! 74: }
! 75: #endif
! 76:
2.16 timbl 77: #endif /* end HTML_H */
78: </PRE>
2.36 frystyk 79: <P>
80: <HR>
2.33 frystyk 81: <ADDRESS>
2.37 ! vbancrof 82: @(#) $Id: HTML.html,v 2.36 1999/01/06 15:38:47 frystyk Exp $
2.33 frystyk 83: </ADDRESS>
2.36 frystyk 84: </BODY></HTML>
Webmaster