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