1 /*
2 ** CONFIGURATION-SPECIFIC INITIALIALIZATION FOR HTML PARSER
3 **
4 ** (c) COPYRIGHT MIT 1995.
5 ** Please first read the full copyright statement in the file COPYRIGH.
6 ** @(#) $Id$
7 **
8 ** Set up the HTML parsers in libwww
9 */
10
11 /* Library include files */
12 #include "wwwsys.h"
13 #include "WWWUtil.h"
14 #include "WWWCore.h"
15 #include "HTHInit.h" /* Implemented here */
16
17 /* ------------------------------------------------------------------------- */
18
19 /* BINDINGS BETWEEN A SOURCE MEDIA TYPE AND A DEST MEDIA TYPE (CONVERSION)
20 ** ----------------------------------------------------------------------
21 ** Not done automaticly - may be done by application!
22 */
HTMLInit(HTList * c)23 PUBLIC void HTMLInit (HTList * c)
24 {
25 /*
26 ** This set of converters uses the HTML/HText interface.
27 ** If you do not want this interface then replace them!
28 */
29 HTConversion_add(c,"text/html", "www/present", HTMLPresent, 1.0, 0.0, 0.0);
30 HTConversion_add(c,"text/plain", "www/present", HTPlainPresent, 1.0, 0.0, 0.0);
31 HTConversion_add(c,"text/html", "text/x-c", HTMLToC, 0.5, 0.0, 0.0);
32 HTConversion_add(c,"text/html", "text/plain", HTMLToPlain, 0.5, 0.0, 0.0);
33 HTConversion_add(c,"text/html", "text/latex", HTMLToTeX, 1.0, 0.0, 0.0);
34 }
35