1 /* 2 * "streamable kanji code filter and converter" 3 * Copyright (c) 1998-2002 HappySize, Inc. All rights reserved. 4 * 5 * LICENSE NOTICES 6 * 7 * This file is part of "streamable kanji code filter and converter", 8 * which is distributed under the terms of GNU Lesser General Public 9 * License (version 2) as published by the Free Software Foundation. 10 * 11 * This software is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with "streamable kanji code filter and converter"; 18 * if not, write to the Free Software Foundation, Inc., 59 Temple Place, 19 * Suite 330, Boston, MA 02111-1307 USA 20 * 21 * The author of this part: Marcus Boerger <helly@php.net> 22 * 23 */ 24 /* 25 * The source code included in this files was separated from mbfilter.c 26 * by moriyoshi koizumi <moriyoshi@php.net> on 4 dec 2002. 27 * 28 */ 29 30 #include "mbfilter.h" 31 #include "html_entities.h" 32 33 const mbfl_html_entity_entry mbfl_html_entity_list[] = { 34 {"quot", 34}, 35 {"amp", 38}, 36 {"lt", 60}, 37 {"gt", 62}, 38 {"nbsp", 160}, 39 {"iexcl", 161}, 40 {"cent", 162}, 41 {"pound", 163}, 42 {"curren", 164}, 43 {"yen", 165}, 44 {"brvbar", 166}, 45 {"sect", 167}, 46 {"uml", 168}, 47 {"copy", 169}, 48 {"ordf", 170}, 49 {"laquo", 171}, 50 {"not", 172}, 51 {"shy", 173}, 52 {"reg", 174}, 53 {"macr", 175}, 54 {"deg", 176}, 55 {"plusmn", 177}, 56 {"sup2", 178}, 57 {"sup3", 179}, 58 {"acute", 180}, 59 {"micro", 181}, 60 {"para", 182}, 61 {"middot", 183}, 62 {"cedil", 184}, 63 {"sup1", 185}, 64 {"ordm", 186}, 65 {"raquo", 187}, 66 {"frac14", 188}, 67 {"frac12", 189}, 68 {"frac34", 190}, 69 {"iquest", 191}, 70 {"Agrave", 192}, 71 {"Aacute", 193}, 72 {"Acirc", 194}, 73 {"Atilde", 195}, 74 {"Auml", 196}, 75 {"Aring", 197}, 76 {"AElig", 198}, 77 {"Ccedil", 199}, 78 {"Egrave", 200}, 79 {"Eacute", 201}, 80 {"Ecirc", 202}, 81 {"Euml", 203}, 82 {"Igrave", 204}, 83 {"Iacute", 205}, 84 {"Icirc", 206}, 85 {"Iuml", 207}, 86 {"ETH", 208}, 87 {"Ntilde", 209}, 88 {"Ograve", 210}, 89 {"Oacute", 211}, 90 {"Ocirc", 212}, 91 {"Otilde", 213}, 92 {"Ouml", 214}, 93 {"times", 215}, 94 {"Oslash", 216}, 95 {"Ugrave", 217}, 96 {"Uacute", 218}, 97 {"Ucirc", 219}, 98 {"Uuml", 220}, 99 {"Yacute", 221}, 100 {"THORN", 222}, 101 {"szlig", 223}, 102 {"agrave", 224}, 103 {"aacute", 225}, 104 {"acirc", 226}, 105 {"atilde", 227}, 106 {"auml", 228}, 107 {"aring", 229}, 108 {"aelig", 230}, 109 {"ccedil", 231}, 110 {"egrave", 232}, 111 {"eacute", 233}, 112 {"ecirc", 234}, 113 {"euml", 235}, 114 {"igrave", 236}, 115 {"iacute", 237}, 116 {"icirc", 238}, 117 {"iuml", 239}, 118 {"eth", 240}, 119 {"ntilde", 241}, 120 {"ograve", 242}, 121 {"oacute", 243}, 122 {"ocirc", 244}, 123 {"otilde", 245}, 124 {"ouml", 246}, 125 {"divide", 247}, 126 {"oslash", 248}, 127 {"ugrave", 249}, 128 {"uacute", 250}, 129 {"ucirc", 251}, 130 {"uuml", 252}, 131 {"yacute", 253}, 132 {"thorn", 254}, 133 {"yuml", 255}, 134 {"OElig", 338}, 135 {"oelig", 339}, 136 {"Scaron", 352}, 137 {"scaron", 353}, 138 {"Yuml", 376}, 139 {"fnof", 402}, 140 {"circ", 710}, 141 {"tilde", 732}, 142 {"Alpha", 913}, 143 {"Beta", 914}, 144 {"Gamma", 915}, 145 {"Delta", 916}, 146 {"Epsilon", 917}, 147 {"Zeta", 918}, 148 {"Eta", 919}, 149 {"Theta", 920}, 150 {"Iota", 921}, 151 {"Kappa", 922}, 152 {"Lambda", 923}, 153 {"Mu", 924}, 154 {"Nu", 925}, 155 {"Xi", 926}, 156 {"Omicron", 927}, 157 {"Pi", 928}, 158 {"Rho", 929}, 159 {"Sigma", 931}, 160 {"Tau", 932}, 161 {"Upsilon", 933}, 162 {"Phi", 934}, 163 {"Chi", 935}, 164 {"Psi", 936}, 165 {"Omega", 937}, 166 {"alpha", 945}, 167 {"beta", 946}, 168 {"gamma", 947}, 169 {"delta", 948}, 170 {"epsilon", 949}, 171 {"zeta", 950}, 172 {"eta", 951}, 173 {"theta", 952}, 174 {"iota", 953}, 175 {"kappa", 954}, 176 {"lambda", 955}, 177 {"mu", 956}, 178 {"nu", 957}, 179 {"xi", 958}, 180 {"omicron", 959}, 181 {"pi", 960}, 182 {"rho", 961}, 183 {"sigmaf", 962}, 184 {"sigma", 963}, 185 {"tau", 964}, 186 {"upsilon", 965}, 187 {"phi", 966}, 188 {"chi", 967}, 189 {"psi", 968}, 190 {"omega", 969}, 191 {"thetasym", 977}, 192 {"upsih", 978}, 193 {"piv", 982}, 194 {"ensp", 8194}, 195 {"emsp", 8195}, 196 {"thinsp", 8201}, 197 {"zwnj", 8204}, 198 {"zwj", 8205}, 199 {"lrm", 8206}, 200 {"rlm", 8207}, 201 {"ndash", 8211}, 202 {"mdash", 8212}, 203 {"lsquo", 8216}, 204 {"rsquo", 8217}, 205 {"sbquo", 8218}, 206 {"ldquo", 8220}, 207 {"rdquo", 8221}, 208 {"bdquo", 8222}, 209 {"dagger", 8224}, 210 {"Dagger", 8225}, 211 {"bull", 8226}, 212 {"hellip", 8230}, 213 {"permil", 8240}, 214 {"prime", 8242}, 215 {"Prime", 8243}, 216 {"lsaquo", 8249}, 217 {"rsaquo", 8250}, 218 {"oline", 8254}, 219 {"frasl", 8260}, 220 {"euro", 8364}, 221 {"weierp", 8472}, 222 {"image", 8465}, 223 {"real", 8476}, 224 {"trade", 8482}, 225 {"alefsym", 8501}, 226 {"larr", 8592}, 227 {"uarr", 8593}, 228 {"rarr", 8594}, 229 {"darr", 8595}, 230 {"harr", 8596}, 231 {"crarr", 8629}, 232 {"lArr", 8656}, 233 {"uArr", 8657}, 234 {"rArr", 8658}, 235 {"dArr", 8659}, 236 {"hArr", 8660}, 237 {"forall", 8704}, 238 {"part", 8706}, 239 {"exist", 8707}, 240 {"empty", 8709}, 241 {"nabla", 8711}, 242 {"isin", 8712}, 243 {"notin", 8713}, 244 {"ni", 8715}, 245 {"prod", 8719}, 246 {"sum", 8721}, 247 {"minus", 8722}, 248 {"lowast", 8727}, 249 {"radic", 8730}, 250 {"prop", 8733}, 251 {"infin", 8734}, 252 {"ang", 8736}, 253 {"and", 8743}, 254 {"or", 8744}, 255 {"cap", 8745}, 256 {"cup", 8746}, 257 {"int", 8747}, 258 {"there4", 8756}, 259 {"sim", 8764}, 260 {"cong", 8773}, 261 {"asymp", 8776}, 262 {"ne", 8800}, 263 {"equiv", 8801}, 264 {"le", 8804}, 265 {"ge", 8805}, 266 {"sub", 8834}, 267 {"sup", 8835}, 268 {"nsub", 8836}, 269 {"sube", 8838}, 270 {"supe", 8839}, 271 {"oplus", 8853}, 272 {"otimes", 8855}, 273 {"perp", 8869}, 274 {"sdot", 8901}, 275 {"lceil", 8968}, 276 {"rceil", 8969}, 277 {"lfloor", 8970}, 278 {"rfloor", 8971}, 279 {"lang", 9001}, 280 {"rang", 9002}, 281 {"loz", 9674}, 282 {"spades", 9824}, 283 {"clubs", 9827}, 284 {"hearts", 9829}, 285 {"diams", 9830}, 286 {NULL, -1} /* mark end of table */ 287 }; 288