1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
|
/****************************************************************************
* NCSA Mosaic for the X Window System *
* Software Development Group *
* National Center for Supercomputing Applications *
* University of Illinois at Urbana-Champaign *
* 605 E. Springfield, Champaign IL 61820 *
* mosaic@ncsa.uiuc.edu *
* *
* Copyright (C) 1993, Board of Trustees of the University of Illinois *
* *
* NCSA Mosaic software, both binary and source (hereafter, Software) is *
* copyrighted by The Board of Trustees of the University of Illinois *
* (UI), and ownership remains with the UI. *
* *
* The UI grants you (hereafter, Licensee) a license to use the Software *
* for academic, research and internal business purposes only, without a *
* fee. Licensee may distribute the binary and source code (if released) *
* to third parties provided that the copyright notice and this statement *
* appears on all copies and that no charge is associated with such *
* copies. *
* *
* Licensee may make derivative works. However, if Licensee distributes *
* any derivative work based on or derived from the Software, then *
* Licensee will (1) notify NCSA regarding its distribution of the *
* derivative work, and (2) clearly notify users that such derivative *
* work is a modified version and not the original NCSA Mosaic *
* distributed by the UI. *
* *
* Any Licensee wishing to make commercial use of the Software should *
* contact the UI, c/o NCSA, to negotiate an appropriate license for such *
* commercial use. Commercial use includes (1) integration of all or *
* part of the source code into a product for sale or license by or on *
* behalf of Licensee to third parties, or (2) distribution of the binary *
* code or source code to third parties that need it to utilize a *
* commercial product sold or licensed by or on behalf of Licensee. *
* *
* UI MAKES NO REPRESENTATIONS ABOUT THE SUITABILITY OF THIS SOFTWARE FOR *
* ANY PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED *
* WARRANTY. THE UI SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY THE *
* USERS OF THIS SOFTWARE. *
* *
* By using or copying this Software, Licensee agrees to abide by the *
* copyright law and all other applicable laws of the U.S. including, but *
* not limited to, export control laws, and the terms of this license. *
* UI shall have the right to terminate this license immediately by *
* written notice upon Licensee's breach of, or non-compliance with, any *
* of its terms. Licensee may be held legally responsible for any *
* copyright infringement that is caused or encouraged by Licensee's *
* failure to abide by the terms of this license. *
* *
* Comments and questions are welcome and can be sent to *
* mosaic-x@ncsa.uiuc.edu. *
****************************************************************************/
typedef struct amp_esc_rec {
char *tag;
char value;
} AmpEsc;
static AmpEsc AmpEscapes[] = {
{"lt", '<'},
{"LT", '<'},
{"gt", '>'},
{"GT", '>'},
{"amp", '&'},
{"AMP", '&'},
{"quot", '\"'},
{"QUOT", '\"'},
{"nbsp", '\240'},
{"iexcl", '\241'},
{"cent", '\242'},
{"pound", '\243'},
{"curren", '\244'},
{"yen", '\245'},
{"brvbar", '\246'},
{"sect", '\247'},
{"uml", '\250'},
{"copy", '\251'},
{"ordf", '\252'},
{"laquo", '\253'},
{"not", '\254'},
{"shy", '\255'},
{"reg", '\256'},
{"hibar", '\257'},
{"deg", '\260'},
{"plusmn", '\261'},
{"sup2", '\262'},
{"sup3", '\263'},
{"acute", '\264'},
{"micro", '\265'},
{"para", '\266'},
{"middot", '\267'},
{"cedil", '\270'},
{"sup1", '\271'},
{"ordm", '\272'},
{"raquo", '\273'},
{"frac14", '\274'},
{"frac12", '\275'},
{"frac34", '\276'},
{"iquest", '\277'},
{"Agrave", '\300'},
{"Aacute", '\301'},
{"Acirc", '\302'},
{"Atilde", '\303'},
{"Auml", '\304'},
{"Aring", '\305'},
{"AElig", '\306'},
{"Ccedil", '\307'},
{"Egrave", '\310'},
{"Eacute", '\311'},
{"Ecirc", '\312'},
{"Euml", '\313'},
{"Igrave", '\314'},
{"Iacute", '\315'},
{"Icirc", '\316'},
{"Iuml", '\317'},
{"ETH", '\320'},
{"Ntilde", '\321'},
{"Ograve", '\322'},
{"Oacute", '\323'},
{"Ocirc", '\324'},
{"Otilde", '\325'},
{"Ouml", '\326'},
{"times", '\327'}, /* ? */
{"Oslash", '\330'},
{"Ugrave", '\331'},
{"Uacute", '\332'},
{"Ucirc", '\333'},
{"Uuml", '\334'},
{"Yacute", '\335'},
{"THORN", '\336'},
{"szlig", '\337'},
{"agrave", '\340'},
{"aacute", '\341'},
{"acirc", '\342'},
{"atilde", '\343'},
{"auml", '\344'},
{"aring", '\345'},
{"aelig", '\346'},
{"ccedil", '\347'},
{"egrave", '\350'},
{"eacute", '\351'},
{"ecirc", '\352'},
{"euml", '\353'},
{"igrave", '\354'},
{"iacute", '\355'},
{"icirc", '\356'},
{"iuml", '\357'},
{"eth", '\360'},
{"ntilde", '\361'},
{"ograve", '\362'},
{"oacute", '\363'},
{"ocirc", '\364'},
{"otilde", '\365'},
{"ouml", '\366'},
{"divide", '\367'}, /* ? */
{"oslash", '\370'},
{"ugrave", '\371'},
{"uacute", '\372'},
{"ucirc", '\373'},
{"uuml", '\374'},
{"yacute", '\375'},
{"thorn", '\376'},
{"yuml", '\377'},
{NULL, '\0'},
};
|