1 /* 2 * Copyright (c) 2015 Paul Mattes. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are met: 7 * * Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. 9 * * Redistributions in binary form must reproduce the above copyright 10 * notice, this list of conditions and the following disclaimer in the 11 * documentation and/or other materials provided with the distribution. 12 * * Neither the names of Paul Mattes nor the names of his contributors 13 * may be used to endorse or promote products derived from this software 14 * without specific prior written permission. 15 * 16 * THIS SOFTWARE IS PROVIDED BY PAUL MATTES "AS IS" AND ANY EXPRESS OR IMPLIED 17 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO 19 * EVENT SHALL PAUL MATTES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 20 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 22 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 */ 27 28 /* 29 * latin1.h 30 * Symbolic names for ISO 8859-1 Latin-1 characters. 31 */ 32 33 /* 34 * With the addition of nul, [0-9a-fA-F] and del, these are the standard HTML 35 * entity names. 36 */ 37 typedef enum { 38 latin1_nul = 0x00, 39 latin1_sp = 0x20, 40 latin1_excl = 0x21, 41 latin1_quot = 0x22, 42 latin1_num = 0x23, 43 latin1_dollar = 0x24, 44 latin1_percnt = 0x25, 45 latin1_amp = 0x26, 46 latin1_apos = 0x27, 47 latin1_lpar = 0x28, 48 latin1_rpar = 0x29, 49 latin1_ast = 0x2a, 50 latin1_plus = 0x2b, 51 latin1_comma = 0x2c, 52 latin1_minus = 0x2d, 53 latin1_period = 0x2e, 54 latin1_sol = 0x2f, 55 latin1_0 = 0x30, 56 latin1_1 = 0x31, 57 latin1_2 = 0x32, 58 latin1_3 = 0x33, 59 latin1_4 = 0x34, 60 latin1_5 = 0x35, 61 latin1_6 = 0x36, 62 latin1_7 = 0x37, 63 latin1_8 = 0x38, 64 latin1_9 = 0x39, 65 latin1_colon = 0x3a, 66 latin1_semi = 0x3b, 67 latin1_lt = 0x3c, 68 latin1_equals = 0x3d, 69 latin1_gt = 0x3e, 70 latin1_quest = 0x3f, 71 latin1_commat = 0x40, 72 latin1_A = 0x41, 73 latin1_B = 0x42, 74 latin1_C = 0x43, 75 latin1_D = 0x44, 76 latin1_E = 0x45, 77 latin1_F = 0x46, 78 latin1_G = 0x47, 79 latin1_H = 0x48, 80 latin1_I = 0x49, 81 latin1_J = 0x4a, 82 latin1_K = 0x4b, 83 latin1_L = 0x4c, 84 latin1_M = 0x4d, 85 latin1_N = 0x4e, 86 latin1_O = 0x4f, 87 latin1_P = 0x50, 88 latin1_Q = 0x51, 89 latin1_R = 0x52, 90 latin1_S = 0x53, 91 latin1_T = 0x54, 92 latin1_U = 0x55, 93 latin1_V = 0x56, 94 latin1_W = 0x57, 95 latin1_X = 0x58, 96 latin1_Y = 0x59, 97 latin1_Z = 0x5a, 98 latin1_lsqb = 0x5b, 99 latin1_bsol = 0x5c, 100 latin1_rsqb = 0x5d, 101 latin1_circ = 0x5e, 102 latin1_lowbar = 0x5f, 103 latin1_grave = 0x60, 104 latin1_a = 0x61, 105 latin1_b = 0x62, 106 latin1_c = 0x63, 107 latin1_d = 0x64, 108 latin1_e = 0x65, 109 latin1_f = 0x66, 110 latin1_g = 0x67, 111 latin1_h = 0x68, 112 latin1_i = 0x69, 113 latin1_j = 0x6a, 114 latin1_k = 0x6b, 115 latin1_l = 0x6c, 116 latin1_m = 0x6d, 117 latin1_n = 0x6e, 118 latin1_o = 0x6f, 119 latin1_p = 0x70, 120 latin1_q = 0x71, 121 latin1_r = 0x72, 122 latin1_s = 0x73, 123 latin1_t = 0x74, 124 latin1_u = 0x75, 125 latin1_v = 0x76, 126 latin1_w = 0x77, 127 latin1_x = 0x78, 128 latin1_y = 0x79, 129 latin1_z = 0x7a, 130 latin1_lcub = 0x7b, 131 latin1_verbar = 0x7c, 132 latin1_rcub = 0x7d, 133 latin1_tilde = 0x7e, 134 latin1_del = 0x7f, 135 latin1_nbsp = 0xa0, 136 latin1_iexcl = 0xa1, 137 latin1_cent = 0xa2, 138 latin1_pound = 0xa3, 139 latin1_curren = 0xa4, 140 latin1_yen = 0xa5, 141 latin1_brkbar = 0xa6, 142 latin1_sect = 0xa7, 143 latin1_uml = 0xa8, 144 latin1_copy = 0xa9, 145 latin1_ordf = 0xaa, 146 latin1_laquo = 0xab, 147 latin1_not = 0xac, 148 latin1_shy = 0xad, 149 latin1_reg = 0xae, 150 latin1_macr = 0xaf, 151 latin1_deg = 0xb0, 152 latin1_plusmn = 0xb1, 153 latin1_sup2 = 0xb2, 154 latin1_sup3 = 0xb3, 155 latin1_acute = 0xb4, 156 latin1_micro = 0xb5, 157 latin1_para = 0xb6, 158 latin1_middot = 0xb7, 159 latin1_cedil = 0xb8, 160 latin1_sup1 = 0xb9, 161 latin1_ordm = 0xba, 162 latin1_raquo = 0xbb, 163 latin1_frac14 = 0xbc, 164 latin1_frac12 = 0xbd, 165 latin1_frac34 = 0xbe, 166 latin1_iquest = 0xbf, 167 latin1_Agrave = 0xc0, 168 latin1_Aacute = 0xc1, 169 latin1_Acirc = 0xc2, 170 latin1_Atilde = 0xc3, 171 latin1_Auml = 0xc4, 172 latin1_Aring = 0xc5, 173 latin1_AElig = 0xc6, 174 latin1_Ccedil = 0xc7, 175 latin1_Egrave = 0xc8, 176 latin1_Eacute = 0xc9, 177 latin1_Ecirc = 0xca, 178 latin1_Euml = 0xcb, 179 latin1_Igrave = 0xcc, 180 latin1_Iacute = 0xcd, 181 latin1_Icirc = 0xce, 182 latin1_Iuml = 0xcf, 183 latin1_ETH = 0xd0, 184 latin1_Ntilde = 0xd1, 185 latin1_Ograve = 0xd2, 186 latin1_Oacute = 0xd3, 187 latin1_Ocirc = 0xd4, 188 latin1_Otilde = 0xd5, 189 latin1_Ouml = 0xd6, 190 latin1_times = 0xd7, 191 latin1_Oslash = 0xd8, 192 latin1_Ugrave = 0xd9, 193 latin1_Uacute = 0xda, 194 latin1_Ucirc = 0xdb, 195 latin1_Uuml = 0xdc, 196 latin1_Yacute = 0xdd, 197 latin1_THORN = 0xde, 198 latin1_szlig = 0xdf, 199 latin1_agrave = 0xe0, 200 latin1_aacute = 0xe1, 201 latin1_acirc = 0xe2, 202 latin1_atilde = 0xe3, 203 latin1_auml = 0xe4, 204 latin1_aring = 0xe5, 205 latin1_aelig = 0xe6, 206 latin1_ccedil = 0xe7, 207 latin1_egrave = 0xe8, 208 latin1_eacute = 0xe9, 209 latin1_ecirc = 0xea, 210 latin1_euml = 0xeb, 211 latin1_igrave = 0xec, 212 latin1_iacute = 0xed, 213 latin1_icirc = 0xee, 214 latin1_iuml = 0xef, 215 latin1_eth = 0xf0, 216 latin1_ntilde = 0xf1, 217 latin1_ograve = 0xf2, 218 latin1_oacute = 0xf3, 219 latin1_ocirc = 0xf4, 220 latin1_otilde = 0xf5, 221 latin1_ouml = 0xf6, 222 latin1_divide = 0xf7, 223 latin1_oslash = 0xf8, 224 latin1_ugrave = 0xf9, 225 latin1_uacute = 0xfa, 226 latin1_ucirc = 0xfb, 227 latin1_uuml = 0xfc, 228 latin1_yacute = 0xfd, 229 latin1_thorn = 0xfe, 230 latin1_yuml = 0xff 231 } latin1_symbol_t; 232