001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package javax.swing.text.html.parser;
018:
019: /**
020: * Class is generated basing on <a href="http://www.w3.org/TR/html401/sgml/entities.html">Character Entities</a>
021: */
022: class EntitiesHandler {
023: static void handleEntities() {
024: //don't edit!
025: handleEntity("squot", 39);
026: //lat1
027: handleEntity("nbsp", 160);
028: handleEntity("iexcl", 161);
029: handleEntity("cent", 162);
030: handleEntity("pound", 163);
031: handleEntity("curren", 164);
032: handleEntity("yen", 165);
033: handleEntity("brvbar", 166);
034: handleEntity("sect", 167);
035: handleEntity("uml", 168);
036: handleEntity("copy", 169);
037: handleEntity("ordf", 170);
038: handleEntity("laquo", 171);
039: handleEntity("not", 172);
040: handleEntity("shy", 173);
041: handleEntity("reg", 174);
042: handleEntity("macr", 175);
043: handleEntity("deg", 176);
044: handleEntity("plusmn", 177);
045: handleEntity("sup2", 178);
046: handleEntity("sup3", 179);
047: handleEntity("acute", 180);
048: handleEntity("micro", 181);
049: handleEntity("para", 182);
050: handleEntity("middot", 183);
051: handleEntity("cedil", 184);
052: handleEntity("sup1", 185);
053: handleEntity("ordm", 186);
054: handleEntity("raquo", 187);
055: handleEntity("frac14", 188);
056: handleEntity("frac12", 189);
057: handleEntity("frac34", 190);
058: handleEntity("iquest", 191);
059: handleEntity("Agrave", 192);
060: handleEntity("Aacute", 193);
061: handleEntity("Acirc", 194);
062: handleEntity("Atilde", 195);
063: handleEntity("Auml", 196);
064: handleEntity("Aring", 197);
065: handleEntity("AElig", 198);
066: handleEntity("Ccedil", 199);
067: handleEntity("Egrave", 200);
068: handleEntity("Eacute", 201);
069: handleEntity("Ecirc", 202);
070: handleEntity("Euml", 203);
071: handleEntity("Igrave", 204);
072: handleEntity("Iacute", 205);
073: handleEntity("Icirc", 206);
074: handleEntity("Iuml", 207);
075: handleEntity("ETH", 208);
076: handleEntity("Ntilde", 209);
077: handleEntity("Ograve", 210);
078: handleEntity("Oacute", 211);
079: handleEntity("Ocirc", 212);
080: handleEntity("Otilde", 213);
081: handleEntity("Ouml", 214);
082: handleEntity("times", 215);
083: handleEntity("Oslash", 216);
084: handleEntity("Ugrave", 217);
085: handleEntity("Uacute", 218);
086: handleEntity("Ucirc", 219);
087: handleEntity("Uuml", 220);
088: handleEntity("Yacute", 221);
089: handleEntity("THORN", 222);
090: handleEntity("szlig", 223);
091: handleEntity("agrave", 224);
092: handleEntity("aacute", 225);
093: handleEntity("acirc", 226);
094: handleEntity("atilde", 227);
095: handleEntity("auml", 228);
096: handleEntity("aring", 229);
097: handleEntity("aelig", 230);
098: handleEntity("ccedil", 231);
099: handleEntity("egrave", 232);
100: handleEntity("eacute", 233);
101: handleEntity("ecirc", 234);
102: handleEntity("euml", 235);
103: handleEntity("igrave", 236);
104: handleEntity("iacute", 237);
105: handleEntity("icirc", 238);
106: handleEntity("iuml", 239);
107: handleEntity("eth", 240);
108: handleEntity("ntilde", 241);
109: handleEntity("ograve", 242);
110: handleEntity("oacute", 243);
111: handleEntity("ocirc", 244);
112: handleEntity("otilde", 245);
113: handleEntity("ouml", 246);
114: handleEntity("divide", 247);
115: handleEntity("oslash", 248);
116: handleEntity("ugrave", 249);
117: handleEntity("uacute", 250);
118: handleEntity("ucirc", 251);
119: handleEntity("uuml", 252);
120: handleEntity("yacute", 253);
121: handleEntity("thorn", 254);
122: handleEntity("yuml", 255);
123: //special
124: handleEntity("quot", 34);
125: handleEntity("amp", 38);
126: handleEntity("lt", 60);
127: handleEntity("gt", 62);
128: handleEntity("OElig", 338);
129: handleEntity("oelig", 339);
130: handleEntity("Scaron", 352);
131: handleEntity("scaron", 353);
132: handleEntity("Yuml", 376);
133: handleEntity("circ", 710);
134: handleEntity("tilde", 732);
135: handleEntity("ensp", 8194);
136: handleEntity("emsp", 8195);
137: handleEntity("thinsp", 8201);
138: handleEntity("zwnj", 8204);
139: handleEntity("zwj", 8205);
140: handleEntity("lrm", 8206);
141: handleEntity("rlm", 8207);
142: handleEntity("ndash", 8211);
143: handleEntity("mdash", 8212);
144: handleEntity("lsquo", 8216);
145: handleEntity("rsquo", 8217);
146: handleEntity("sbquo", 8218);
147: handleEntity("ldquo", 8220);
148: handleEntity("rdquo", 8221);
149: handleEntity("bdquo", 8222);
150: handleEntity("dagger", 8224);
151: handleEntity("Dagger", 8225);
152: handleEntity("permil", 8240);
153: handleEntity("lsaquo", 8249);
154: handleEntity("rsaquo", 8250);
155: handleEntity("euro", 8364);
156: //symbol
157: handleEntity("fnof", 402);
158: handleEntity("Alpha", 913);
159: handleEntity("Beta", 914);
160: handleEntity("Gamma", 915);
161: handleEntity("Delta", 916);
162: handleEntity("Epsilon", 917);
163: handleEntity("Zeta", 918);
164: handleEntity("Eta", 919);
165: handleEntity("Theta", 920);
166: handleEntity("Iota", 921);
167: handleEntity("Kappa", 922);
168: handleEntity("Lambda", 923);
169: handleEntity("Mu", 924);
170: handleEntity("Nu", 925);
171: handleEntity("Xi", 926);
172: handleEntity("Omicron", 927);
173: handleEntity("Pi", 928);
174: handleEntity("Rho", 929);
175: handleEntity("Sigma", 931);
176: handleEntity("Tau", 932);
177: handleEntity("Upsilon", 933);
178: handleEntity("Phi", 934);
179: handleEntity("Chi", 935);
180: handleEntity("Psi", 936);
181: handleEntity("Omega", 937);
182: handleEntity("alpha", 945);
183: handleEntity("beta", 946);
184: handleEntity("gamma", 947);
185: handleEntity("delta", 948);
186: handleEntity("epsilon", 949);
187: handleEntity("zeta", 950);
188: handleEntity("eta", 951);
189: handleEntity("theta", 952);
190: handleEntity("iota", 953);
191: handleEntity("kappa", 954);
192: handleEntity("lambda", 955);
193: handleEntity("mu", 956);
194: handleEntity("nu", 957);
195: handleEntity("xi", 958);
196: handleEntity("omicron", 959);
197: handleEntity("pi", 960);
198: handleEntity("rho", 961);
199: handleEntity("sigmaf", 962);
200: handleEntity("sigma", 963);
201: handleEntity("tau", 964);
202: handleEntity("upsilon", 965);
203: handleEntity("phi", 966);
204: handleEntity("chi", 967);
205: handleEntity("psi", 968);
206: handleEntity("omega", 969);
207: handleEntity("thetasym", 977);
208: handleEntity("upsih", 978);
209: handleEntity("piv", 982);
210: handleEntity("bull", 8226);
211: handleEntity("hellip", 8230);
212: handleEntity("prime", 8242);
213: handleEntity("Prime", 8243);
214: handleEntity("oline", 8254);
215: handleEntity("frasl", 8260);
216: handleEntity("weierp", 8472);
217: handleEntity("image", 8465);
218: handleEntity("real", 8476);
219: handleEntity("trade", 8482);
220: handleEntity("alefsym", 8501);
221: handleEntity("larr", 8592);
222: handleEntity("uarr", 8593);
223: handleEntity("rarr", 8594);
224: handleEntity("darr", 8595);
225: handleEntity("harr", 8596);
226: handleEntity("crarr", 8629);
227: handleEntity("lArr", 8656);
228: handleEntity("uArr", 8657);
229: handleEntity("rArr", 8658);
230: handleEntity("dArr", 8659);
231: handleEntity("hArr", 8660);
232: handleEntity("forall", 8704);
233: handleEntity("part", 8706);
234: handleEntity("exist", 8707);
235: handleEntity("empty", 8709);
236: handleEntity("nabla", 8711);
237: handleEntity("isin", 8712);
238: handleEntity("notin", 8713);
239: handleEntity("ni", 8715);
240: handleEntity("prod", 8719);
241: handleEntity("sum", 8721);
242: handleEntity("minus", 8722);
243: handleEntity("lowast", 8727);
244: handleEntity("radic", 8730);
245: handleEntity("prop", 8733);
246: handleEntity("infin", 8734);
247: handleEntity("ang", 8736);
248: handleEntity("and", 8743);
249: handleEntity("or", 8744);
250: handleEntity("cap", 8745);
251: handleEntity("cup", 8746);
252: handleEntity("int", 8747);
253: handleEntity("there4", 8756);
254: handleEntity("sim", 8764);
255: handleEntity("cong", 8773);
256: handleEntity("asymp", 8776);
257: handleEntity("ne", 8800);
258: handleEntity("equiv", 8801);
259: handleEntity("le", 8804);
260: handleEntity("ge", 8805);
261: handleEntity("sub", 8834);
262: handleEntity("sup", 8835);
263: handleEntity("nsub", 8836);
264: handleEntity("sube", 8838);
265: handleEntity("supe", 8839);
266: handleEntity("oplus", 8853);
267: handleEntity("otimes", 8855);
268: handleEntity("perp", 8869);
269: handleEntity("sdot", 8901);
270: handleEntity("lceil", 8968);
271: handleEntity("rceil", 8969);
272: handleEntity("lfloor", 8970);
273: handleEntity("rfloor", 8971);
274: handleEntity("lang", 9001);
275: handleEntity("rang", 9002);
276: handleEntity("loz", 9674);
277: handleEntity("spades", 9824);
278: handleEntity("clubs", 9827);
279: handleEntity("hearts", 9829);
280: handleEntity("diams", 9830);
281: }
282:
283: static DTD dtd;
284:
285: static void initEntitiesCreation(final DTD dtd) {
286: EntitiesHandler.dtd = dtd;
287: handleEntities();
288: }
289:
290: static void handleEntity(final String name, final int data) {
291: DTDUtilities.handleEntity(dtd, name, data);
292: }
293: }
|