commit - 3a6c348fba8ca00ff22315a0e270eca5bc55e84d
commit + 5b76ae26d81d215084f42aa0de20231decce273e
blob - 0755ac344d45d8c2bec03f35596908605d7afe1f
blob + 81391f96923142bba020e315db4f5ef56e60d2b8
--- src/libhtml/lex.c
+++ src/libhtml/lex.c
// Character entity to unicode character number map.
// Keep sorted by name.
StringInt *chartab;
-AsciiInt _chartab[142] = {
+AsciiInt _chartab[] = {
{"AElig", 198},
{"Aacute", 193},
{"Acirc", 194},
{"eacute", 233},
{"ecirc", 234},
{"egrave", 232},
- {"emdash", 8212},
+ {"emdash", 8212}, /* non-standard but commonly used */
{"emsp", 8195},
- {"endash", 8211},
+ {"endash", 8211}, /* non-standard but commonly used */
{"ensp", 8194},
{"epsilon", 949},
{"eta", 951},
{"ldots", 8230},
{"lt", 60},
{"macr", 175},
+ {"mdash", 8212},
{"micro", 181},
{"middot", 183},
{"mu", 956},
{"nbsp", 160},
+ {"ndash", 8211},
{"not", 172},
{"ntilde", 241},
{"nu", 957},
{"yuml", 255},
{"zeta", 950}
};
-#define NCHARTAB (sizeof(chartab)/sizeof(chartab[0]))
+#define NCHARTAB (sizeof(_chartab)/sizeof(_chartab[0]))
// Characters Winstart..Winend are those that Windows
// uses interpolated into the Latin1 set.