sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

isalpharune.c (13791B)


      1 /* Automatically generated by mkrunetype.awk */
      2 #include <stdlib.h>
      3 
      4 #include "../utf.h"
      5 #include "runetype.h"
      6 
      7 static Rune alpha3[][2] = {
      8 	{ 0x00D6, 0x00D8 },
      9 	{ 0x00F6, 0x00F8 },
     10 	{ 0x02EC, 0x02EE },
     11 	{ 0x0374, 0x0376 },
     12 	{ 0x037D, 0x037F },
     13 	{ 0x0386, 0x0388 },
     14 	{ 0x038A, 0x038E },
     15 	{ 0x03A1, 0x03A3 },
     16 	{ 0x03F5, 0x03F7 },
     17 	{ 0x052F, 0x0531 },
     18 	{ 0x066F, 0x0671 },
     19 	{ 0x06D3, 0x06D5 },
     20 	{ 0x0710, 0x0712 },
     21 	{ 0x09A8, 0x09AA },
     22 	{ 0x09B0, 0x09B2 },
     23 	{ 0x09DD, 0x09DF },
     24 	{ 0x0A28, 0x0A2A },
     25 	{ 0x0A30, 0x0A32 },
     26 	{ 0x0A33, 0x0A35 },
     27 	{ 0x0A36, 0x0A38 },
     28 	{ 0x0A5C, 0x0A5E },
     29 	{ 0x0A8D, 0x0A8F },
     30 	{ 0x0A91, 0x0A93 },
     31 	{ 0x0AA8, 0x0AAA },
     32 	{ 0x0AB0, 0x0AB2 },
     33 	{ 0x0AB3, 0x0AB5 },
     34 	{ 0x0B28, 0x0B2A },
     35 	{ 0x0B30, 0x0B32 },
     36 	{ 0x0B33, 0x0B35 },
     37 	{ 0x0B5D, 0x0B5F },
     38 	{ 0x0B83, 0x0B85 },
     39 	{ 0x0B90, 0x0B92 },
     40 	{ 0x0B9A, 0x0B9E },
     41 	{ 0x0C0C, 0x0C0E },
     42 	{ 0x0C10, 0x0C12 },
     43 	{ 0x0C28, 0x0C2A },
     44 	{ 0x0C8C, 0x0C8E },
     45 	{ 0x0C90, 0x0C92 },
     46 	{ 0x0CA8, 0x0CAA },
     47 	{ 0x0CB3, 0x0CB5 },
     48 	{ 0x0CDE, 0x0CE0 },
     49 	{ 0x0D0C, 0x0D0E },
     50 	{ 0x0D10, 0x0D12 },
     51 	{ 0x0DB1, 0x0DB3 },
     52 	{ 0x0DBB, 0x0DBD },
     53 	{ 0x0E30, 0x0E32 },
     54 	{ 0x0E82, 0x0E84 },
     55 	{ 0x0E88, 0x0E8A },
     56 	{ 0x0E97, 0x0E99 },
     57 	{ 0x0E9F, 0x0EA1 },
     58 	{ 0x0EA3, 0x0EA7 },
     59 	{ 0x0EAB, 0x0EAD },
     60 	{ 0x0EB0, 0x0EB2 },
     61 	{ 0x0EC4, 0x0EC6 },
     62 	{ 0x0F47, 0x0F49 },
     63 	{ 0x10C5, 0x10C7 },
     64 	{ 0x10FA, 0x10FC },
     65 	{ 0x1248, 0x124A },
     66 	{ 0x1256, 0x125A },
     67 	{ 0x1288, 0x128A },
     68 	{ 0x12B0, 0x12B2 },
     69 	{ 0x12BE, 0x12C2 },
     70 	{ 0x12D6, 0x12D8 },
     71 	{ 0x1310, 0x1312 },
     72 	{ 0x167F, 0x1681 },
     73 	{ 0x170C, 0x170E },
     74 	{ 0x176C, 0x176E },
     75 	{ 0x18A8, 0x18AA },
     76 	{ 0x1CEC, 0x1CEE },
     77 	{ 0x1F57, 0x1F5F },
     78 	{ 0x1FB4, 0x1FB6 },
     79 	{ 0x1FBC, 0x1FBE },
     80 	{ 0x1FC4, 0x1FC6 },
     81 	{ 0x1FF4, 0x1FF6 },
     82 	{ 0x2113, 0x2115 },
     83 	{ 0x2124, 0x212A },
     84 	{ 0x212D, 0x212F },
     85 	{ 0x2C2E, 0x2C30 },
     86 	{ 0x2C5E, 0x2C60 },
     87 	{ 0x2D25, 0x2D27 },
     88 	{ 0x2DA6, 0x2DA8 },
     89 	{ 0x2DAE, 0x2DB0 },
     90 	{ 0x2DB6, 0x2DB8 },
     91 	{ 0x2DBE, 0x2DC0 },
     92 	{ 0x2DC6, 0x2DC8 },
     93 	{ 0x2DCE, 0x2DD0 },
     94 	{ 0x2DD6, 0x2DD8 },
     95 	{ 0x309F, 0x30A1 },
     96 	{ 0x30FA, 0x30FC },
     97 	{ 0xA78E, 0xA790 },
     98 	{ 0xA801, 0xA803 },
     99 	{ 0xA805, 0xA807 },
    100 	{ 0xA80A, 0xA80C },
    101 	{ 0xA9E4, 0xA9E6 },
    102 	{ 0xA9FE, 0xAA00 },
    103 	{ 0xAA42, 0xAA44 },
    104 	{ 0xAAAF, 0xAAB1 },
    105 	{ 0xAAC0, 0xAAC2 },
    106 	{ 0xAB26, 0xAB28 },
    107 	{ 0xAB2E, 0xAB30 },
    108 	{ 0xAB5A, 0xAB5C },
    109 	{ 0xFB1D, 0xFB1F },
    110 	{ 0xFB28, 0xFB2A },
    111 	{ 0xFB36, 0xFB38 },
    112 	{ 0xFB3C, 0xFB40 },
    113 	{ 0xFB41, 0xFB43 },
    114 	{ 0xFB44, 0xFB46 },
    115 	{ 0xFE74, 0xFE76 },
    116 	{ 0x1000B, 0x1000D },
    117 	{ 0x10026, 0x10028 },
    118 	{ 0x1003A, 0x1003C },
    119 	{ 0x1003D, 0x1003F },
    120 	{ 0x10340, 0x10342 },
    121 	{ 0x10808, 0x1080A },
    122 	{ 0x10835, 0x10837 },
    123 	{ 0x10A13, 0x10A15 },
    124 	{ 0x10A17, 0x10A19 },
    125 	{ 0x10AC7, 0x10AC9 },
    126 	{ 0x11211, 0x11213 },
    127 	{ 0x11328, 0x1132A },
    128 	{ 0x11330, 0x11332 },
    129 	{ 0x11333, 0x11335 },
    130 	{ 0x114C5, 0x114C7 },
    131 	{ 0x1D454, 0x1D456 },
    132 	{ 0x1D49C, 0x1D49E },
    133 	{ 0x1D4AC, 0x1D4AE },
    134 	{ 0x1D4B9, 0x1D4BD },
    135 	{ 0x1D4C3, 0x1D4C5 },
    136 	{ 0x1D505, 0x1D507 },
    137 	{ 0x1D514, 0x1D516 },
    138 	{ 0x1D51C, 0x1D51E },
    139 	{ 0x1D539, 0x1D53B },
    140 	{ 0x1D53E, 0x1D540 },
    141 	{ 0x1D544, 0x1D546 },
    142 	{ 0x1D550, 0x1D552 },
    143 	{ 0x1D6C0, 0x1D6C2 },
    144 	{ 0x1D6DA, 0x1D6DC },
    145 	{ 0x1D6FA, 0x1D6FC },
    146 	{ 0x1D714, 0x1D716 },
    147 	{ 0x1D734, 0x1D736 },
    148 	{ 0x1D74E, 0x1D750 },
    149 	{ 0x1D76E, 0x1D770 },
    150 	{ 0x1D788, 0x1D78A },
    151 	{ 0x1D7A8, 0x1D7AA },
    152 	{ 0x1D7C2, 0x1D7C4 },
    153 	{ 0x1EE03, 0x1EE05 },
    154 	{ 0x1EE1F, 0x1EE21 },
    155 	{ 0x1EE22, 0x1EE24 },
    156 	{ 0x1EE27, 0x1EE29 },
    157 	{ 0x1EE32, 0x1EE34 },
    158 	{ 0x1EE37, 0x1EE3B },
    159 	{ 0x1EE47, 0x1EE4D },
    160 	{ 0x1EE4F, 0x1EE51 },
    161 	{ 0x1EE52, 0x1EE54 },
    162 	{ 0x1EE57, 0x1EE61 },
    163 	{ 0x1EE62, 0x1EE64 },
    164 	{ 0x1EE6A, 0x1EE6C },
    165 	{ 0x1EE72, 0x1EE74 },
    166 	{ 0x1EE77, 0x1EE79 },
    167 	{ 0x1EE7C, 0x1EE80 },
    168 	{ 0x1EE89, 0x1EE8B },
    169 	{ 0x1EEA3, 0x1EEA5 },
    170 	{ 0x1EEA9, 0x1EEAB },
    171 };
    172 
    173 static Rune alpha2[][2] = {
    174 	{ 0x0041, 0x005A },
    175 	{ 0x0061, 0x007A },
    176 	{ 0x00C0, 0x00D6 },
    177 	{ 0x00D8, 0x00F6 },
    178 	{ 0x00F8, 0x02C1 },
    179 	{ 0x02C6, 0x02D1 },
    180 	{ 0x02E0, 0x02E4 },
    181 	{ 0x0370, 0x0374 },
    182 	{ 0x0376, 0x0377 },
    183 	{ 0x037A, 0x037D },
    184 	{ 0x0388, 0x038A },
    185 	{ 0x038E, 0x03A1 },
    186 	{ 0x03A3, 0x03F5 },
    187 	{ 0x03F7, 0x0481 },
    188 	{ 0x048A, 0x052F },
    189 	{ 0x0531, 0x0556 },
    190 	{ 0x0561, 0x0587 },
    191 	{ 0x05D0, 0x05EA },
    192 	{ 0x05F0, 0x05F2 },
    193 	{ 0x0620, 0x064A },
    194 	{ 0x066E, 0x066F },
    195 	{ 0x0671, 0x06D3 },
    196 	{ 0x06E5, 0x06E6 },
    197 	{ 0x06EE, 0x06EF },
    198 	{ 0x06FA, 0x06FC },
    199 	{ 0x0712, 0x072F },
    200 	{ 0x074D, 0x07A5 },
    201 	{ 0x07CA, 0x07EA },
    202 	{ 0x07F4, 0x07F5 },
    203 	{ 0x0800, 0x0815 },
    204 	{ 0x0840, 0x0858 },
    205 	{ 0x08A0, 0x08B2 },
    206 	{ 0x0904, 0x0939 },
    207 	{ 0x0958, 0x0961 },
    208 	{ 0x0971, 0x0980 },
    209 	{ 0x0985, 0x098C },
    210 	{ 0x098F, 0x0990 },
    211 	{ 0x0993, 0x09A8 },
    212 	{ 0x09AA, 0x09B0 },
    213 	{ 0x09B6, 0x09B9 },
    214 	{ 0x09DC, 0x09DD },
    215 	{ 0x09DF, 0x09E1 },
    216 	{ 0x09F0, 0x09F1 },
    217 	{ 0x0A05, 0x0A0A },
    218 	{ 0x0A0F, 0x0A10 },
    219 	{ 0x0A13, 0x0A28 },
    220 	{ 0x0A2A, 0x0A30 },
    221 	{ 0x0A32, 0x0A33 },
    222 	{ 0x0A35, 0x0A36 },
    223 	{ 0x0A38, 0x0A39 },
    224 	{ 0x0A59, 0x0A5C },
    225 	{ 0x0A72, 0x0A74 },
    226 	{ 0x0A85, 0x0A8D },
    227 	{ 0x0A8F, 0x0A91 },
    228 	{ 0x0A93, 0x0AA8 },
    229 	{ 0x0AAA, 0x0AB0 },
    230 	{ 0x0AB2, 0x0AB3 },
    231 	{ 0x0AB5, 0x0AB9 },
    232 	{ 0x0AE0, 0x0AE1 },
    233 	{ 0x0B05, 0x0B0C },
    234 	{ 0x0B0F, 0x0B10 },
    235 	{ 0x0B13, 0x0B28 },
    236 	{ 0x0B2A, 0x0B30 },
    237 	{ 0x0B32, 0x0B33 },
    238 	{ 0x0B35, 0x0B39 },
    239 	{ 0x0B5C, 0x0B5D },
    240 	{ 0x0B5F, 0x0B61 },
    241 	{ 0x0B85, 0x0B8A },
    242 	{ 0x0B8E, 0x0B90 },
    243 	{ 0x0B92, 0x0B95 },
    244 	{ 0x0B99, 0x0B9A },
    245 	{ 0x0B9E, 0x0B9F },
    246 	{ 0x0BA3, 0x0BA4 },
    247 	{ 0x0BA8, 0x0BAA },
    248 	{ 0x0BAE, 0x0BB9 },
    249 	{ 0x0C05, 0x0C0C },
    250 	{ 0x0C0E, 0x0C10 },
    251 	{ 0x0C12, 0x0C28 },
    252 	{ 0x0C2A, 0x0C39 },
    253 	{ 0x0C58, 0x0C59 },
    254 	{ 0x0C60, 0x0C61 },
    255 	{ 0x0C85, 0x0C8C },
    256 	{ 0x0C8E, 0x0C90 },
    257 	{ 0x0C92, 0x0CA8 },
    258 	{ 0x0CAA, 0x0CB3 },
    259 	{ 0x0CB5, 0x0CB9 },
    260 	{ 0x0CE0, 0x0CE1 },
    261 	{ 0x0CF1, 0x0CF2 },
    262 	{ 0x0D05, 0x0D0C },
    263 	{ 0x0D0E, 0x0D10 },
    264 	{ 0x0D12, 0x0D3A },
    265 	{ 0x0D60, 0x0D61 },
    266 	{ 0x0D7A, 0x0D7F },
    267 	{ 0x0D85, 0x0D96 },
    268 	{ 0x0D9A, 0x0DB1 },
    269 	{ 0x0DB3, 0x0DBB },
    270 	{ 0x0DC0, 0x0DC6 },
    271 	{ 0x0E01, 0x0E30 },
    272 	{ 0x0E32, 0x0E33 },
    273 	{ 0x0E40, 0x0E46 },
    274 	{ 0x0E81, 0x0E82 },
    275 	{ 0x0E87, 0x0E88 },
    276 	{ 0x0E94, 0x0E97 },
    277 	{ 0x0E99, 0x0E9F },
    278 	{ 0x0EA1, 0x0EA3 },
    279 	{ 0x0EAA, 0x0EAB },
    280 	{ 0x0EAD, 0x0EB0 },
    281 	{ 0x0EB2, 0x0EB3 },
    282 	{ 0x0EC0, 0x0EC4 },
    283 	{ 0x0EDC, 0x0EDF },
    284 	{ 0x0F40, 0x0F47 },
    285 	{ 0x0F49, 0x0F6C },
    286 	{ 0x0F88, 0x0F8C },
    287 	{ 0x1000, 0x102A },
    288 	{ 0x1050, 0x1055 },
    289 	{ 0x105A, 0x105D },
    290 	{ 0x1065, 0x1066 },
    291 	{ 0x106E, 0x1070 },
    292 	{ 0x1075, 0x1081 },
    293 	{ 0x10A0, 0x10C5 },
    294 	{ 0x10D0, 0x10FA },
    295 	{ 0x10FC, 0x1248 },
    296 	{ 0x124A, 0x124D },
    297 	{ 0x1250, 0x1256 },
    298 	{ 0x125A, 0x125D },
    299 	{ 0x1260, 0x1288 },
    300 	{ 0x128A, 0x128D },
    301 	{ 0x1290, 0x12B0 },
    302 	{ 0x12B2, 0x12B5 },
    303 	{ 0x12B8, 0x12BE },
    304 	{ 0x12C2, 0x12C5 },
    305 	{ 0x12C8, 0x12D6 },
    306 	{ 0x12D8, 0x1310 },
    307 	{ 0x1312, 0x1315 },
    308 	{ 0x1318, 0x135A },
    309 	{ 0x1380, 0x138F },
    310 	{ 0x13A0, 0x13F4 },
    311 	{ 0x1401, 0x166C },
    312 	{ 0x166F, 0x167F },
    313 	{ 0x1681, 0x169A },
    314 	{ 0x16A0, 0x16EA },
    315 	{ 0x16F1, 0x16F8 },
    316 	{ 0x1700, 0x170C },
    317 	{ 0x170E, 0x1711 },
    318 	{ 0x1720, 0x1731 },
    319 	{ 0x1740, 0x1751 },
    320 	{ 0x1760, 0x176C },
    321 	{ 0x176E, 0x1770 },
    322 	{ 0x1780, 0x17B3 },
    323 	{ 0x1820, 0x1877 },
    324 	{ 0x1880, 0x18A8 },
    325 	{ 0x18B0, 0x18F5 },
    326 	{ 0x1900, 0x191E },
    327 	{ 0x1950, 0x196D },
    328 	{ 0x1970, 0x1974 },
    329 	{ 0x1980, 0x19AB },
    330 	{ 0x19C1, 0x19C7 },
    331 	{ 0x1A00, 0x1A16 },
    332 	{ 0x1A20, 0x1A54 },
    333 	{ 0x1B05, 0x1B33 },
    334 	{ 0x1B45, 0x1B4B },
    335 	{ 0x1B83, 0x1BA0 },
    336 	{ 0x1BAE, 0x1BAF },
    337 	{ 0x1BBA, 0x1BE5 },
    338 	{ 0x1C00, 0x1C23 },
    339 	{ 0x1C4D, 0x1C4F },
    340 	{ 0x1C5A, 0x1C7D },
    341 	{ 0x1CE9, 0x1CEC },
    342 	{ 0x1CEE, 0x1CF1 },
    343 	{ 0x1CF5, 0x1CF6 },
    344 	{ 0x1D00, 0x1DBF },
    345 	{ 0x1E00, 0x1F15 },
    346 	{ 0x1F18, 0x1F1D },
    347 	{ 0x1F20, 0x1F45 },
    348 	{ 0x1F48, 0x1F4D },
    349 	{ 0x1F50, 0x1F57 },
    350 	{ 0x1F5F, 0x1F7D },
    351 	{ 0x1F80, 0x1FB4 },
    352 	{ 0x1FB6, 0x1FBC },
    353 	{ 0x1FC2, 0x1FC4 },
    354 	{ 0x1FC6, 0x1FCC },
    355 	{ 0x1FD0, 0x1FD3 },
    356 	{ 0x1FD6, 0x1FDB },
    357 	{ 0x1FE0, 0x1FEC },
    358 	{ 0x1FF2, 0x1FF4 },
    359 	{ 0x1FF6, 0x1FFC },
    360 	{ 0x2090, 0x209C },
    361 	{ 0x210A, 0x2113 },
    362 	{ 0x2119, 0x211D },
    363 	{ 0x212A, 0x212D },
    364 	{ 0x212F, 0x2139 },
    365 	{ 0x213C, 0x213F },
    366 	{ 0x2145, 0x2149 },
    367 	{ 0x2183, 0x2184 },
    368 	{ 0x2C00, 0x2C2E },
    369 	{ 0x2C30, 0x2C5E },
    370 	{ 0x2C60, 0x2CE4 },
    371 	{ 0x2CEB, 0x2CEE },
    372 	{ 0x2CF2, 0x2CF3 },
    373 	{ 0x2D00, 0x2D25 },
    374 	{ 0x2D30, 0x2D67 },
    375 	{ 0x2D80, 0x2D96 },
    376 	{ 0x2DA0, 0x2DA6 },
    377 	{ 0x2DA8, 0x2DAE },
    378 	{ 0x2DB0, 0x2DB6 },
    379 	{ 0x2DB8, 0x2DBE },
    380 	{ 0x2DC0, 0x2DC6 },
    381 	{ 0x2DC8, 0x2DCE },
    382 	{ 0x2DD0, 0x2DD6 },
    383 	{ 0x2DD8, 0x2DDE },
    384 	{ 0x3005, 0x3006 },
    385 	{ 0x3031, 0x3035 },
    386 	{ 0x303B, 0x303C },
    387 	{ 0x3041, 0x3096 },
    388 	{ 0x309D, 0x309F },
    389 	{ 0x30A1, 0x30FA },
    390 	{ 0x30FC, 0x30FF },
    391 	{ 0x3105, 0x312D },
    392 	{ 0x3131, 0x318E },
    393 	{ 0x31A0, 0x31BA },
    394 	{ 0x31F0, 0x31FF },
    395 	{ 0xA000, 0xA48C },
    396 	{ 0xA4D0, 0xA4FD },
    397 	{ 0xA500, 0xA60C },
    398 	{ 0xA610, 0xA61F },
    399 	{ 0xA62A, 0xA62B },
    400 	{ 0xA640, 0xA66E },
    401 	{ 0xA67F, 0xA69D },
    402 	{ 0xA6A0, 0xA6E5 },
    403 	{ 0xA717, 0xA71F },
    404 	{ 0xA722, 0xA788 },
    405 	{ 0xA78B, 0xA78E },
    406 	{ 0xA790, 0xA7AD },
    407 	{ 0xA7B0, 0xA7B1 },
    408 	{ 0xA7F7, 0xA801 },
    409 	{ 0xA803, 0xA805 },
    410 	{ 0xA807, 0xA80A },
    411 	{ 0xA80C, 0xA822 },
    412 	{ 0xA840, 0xA873 },
    413 	{ 0xA882, 0xA8B3 },
    414 	{ 0xA8F2, 0xA8F7 },
    415 	{ 0xA90A, 0xA925 },
    416 	{ 0xA930, 0xA946 },
    417 	{ 0xA960, 0xA97C },
    418 	{ 0xA984, 0xA9B2 },
    419 	{ 0xA9E0, 0xA9E4 },
    420 	{ 0xA9E6, 0xA9EF },
    421 	{ 0xA9FA, 0xA9FE },
    422 	{ 0xAA00, 0xAA28 },
    423 	{ 0xAA40, 0xAA42 },
    424 	{ 0xAA44, 0xAA4B },
    425 	{ 0xAA60, 0xAA76 },
    426 	{ 0xAA7E, 0xAAAF },
    427 	{ 0xAAB5, 0xAAB6 },
    428 	{ 0xAAB9, 0xAABD },
    429 	{ 0xAADB, 0xAADD },
    430 	{ 0xAAE0, 0xAAEA },
    431 	{ 0xAAF2, 0xAAF4 },
    432 	{ 0xAB01, 0xAB06 },
    433 	{ 0xAB09, 0xAB0E },
    434 	{ 0xAB11, 0xAB16 },
    435 	{ 0xAB20, 0xAB26 },
    436 	{ 0xAB28, 0xAB2E },
    437 	{ 0xAB30, 0xAB5A },
    438 	{ 0xAB5C, 0xAB5F },
    439 	{ 0xAB64, 0xAB65 },
    440 	{ 0xABC0, 0xABE2 },
    441 	{ 0xD7B0, 0xD7C6 },
    442 	{ 0xD7CB, 0xD7FB },
    443 	{ 0xF900, 0xFA6D },
    444 	{ 0xFA70, 0xFAD9 },
    445 	{ 0xFB00, 0xFB06 },
    446 	{ 0xFB13, 0xFB17 },
    447 	{ 0xFB1F, 0xFB28 },
    448 	{ 0xFB2A, 0xFB36 },
    449 	{ 0xFB38, 0xFB3C },
    450 	{ 0xFB40, 0xFB41 },
    451 	{ 0xFB43, 0xFB44 },
    452 	{ 0xFB46, 0xFBB1 },
    453 	{ 0xFBD3, 0xFD3D },
    454 	{ 0xFD50, 0xFD8F },
    455 	{ 0xFD92, 0xFDC7 },
    456 	{ 0xFDF0, 0xFDFB },
    457 	{ 0xFE70, 0xFE74 },
    458 	{ 0xFE76, 0xFEFC },
    459 	{ 0xFF21, 0xFF3A },
    460 	{ 0xFF41, 0xFF5A },
    461 	{ 0xFF66, 0xFFBE },
    462 	{ 0xFFC2, 0xFFC7 },
    463 	{ 0xFFCA, 0xFFCF },
    464 	{ 0xFFD2, 0xFFD7 },
    465 	{ 0xFFDA, 0xFFDC },
    466 	{ 0x10000, 0x1000B },
    467 	{ 0x1000D, 0x10026 },
    468 	{ 0x10028, 0x1003A },
    469 	{ 0x1003C, 0x1003D },
    470 	{ 0x1003F, 0x1004D },
    471 	{ 0x10050, 0x1005D },
    472 	{ 0x10080, 0x100FA },
    473 	{ 0x10280, 0x1029C },
    474 	{ 0x102A0, 0x102D0 },
    475 	{ 0x10300, 0x1031F },
    476 	{ 0x10330, 0x10340 },
    477 	{ 0x10342, 0x10349 },
    478 	{ 0x10350, 0x10375 },
    479 	{ 0x10380, 0x1039D },
    480 	{ 0x103A0, 0x103C3 },
    481 	{ 0x103C8, 0x103CF },
    482 	{ 0x10400, 0x1049D },
    483 	{ 0x10500, 0x10527 },
    484 	{ 0x10530, 0x10563 },
    485 	{ 0x10600, 0x10736 },
    486 	{ 0x10740, 0x10755 },
    487 	{ 0x10760, 0x10767 },
    488 	{ 0x10800, 0x10805 },
    489 	{ 0x1080A, 0x10835 },
    490 	{ 0x10837, 0x10838 },
    491 	{ 0x1083F, 0x10855 },
    492 	{ 0x10860, 0x10876 },
    493 	{ 0x10880, 0x1089E },
    494 	{ 0x10900, 0x10915 },
    495 	{ 0x10920, 0x10939 },
    496 	{ 0x10980, 0x109B7 },
    497 	{ 0x109BE, 0x109BF },
    498 	{ 0x10A10, 0x10A13 },
    499 	{ 0x10A15, 0x10A17 },
    500 	{ 0x10A19, 0x10A33 },
    501 	{ 0x10A60, 0x10A7C },
    502 	{ 0x10A80, 0x10A9C },
    503 	{ 0x10AC0, 0x10AC7 },
    504 	{ 0x10AC9, 0x10AE4 },
    505 	{ 0x10B00, 0x10B35 },
    506 	{ 0x10B40, 0x10B55 },
    507 	{ 0x10B60, 0x10B72 },
    508 	{ 0x10B80, 0x10B91 },
    509 	{ 0x10C00, 0x10C48 },
    510 	{ 0x11003, 0x11037 },
    511 	{ 0x11083, 0x110AF },
    512 	{ 0x110D0, 0x110E8 },
    513 	{ 0x11103, 0x11126 },
    514 	{ 0x11150, 0x11172 },
    515 	{ 0x11183, 0x111B2 },
    516 	{ 0x111C1, 0x111C4 },
    517 	{ 0x11200, 0x11211 },
    518 	{ 0x11213, 0x1122B },
    519 	{ 0x112B0, 0x112DE },
    520 	{ 0x11305, 0x1130C },
    521 	{ 0x1130F, 0x11310 },
    522 	{ 0x11313, 0x11328 },
    523 	{ 0x1132A, 0x11330 },
    524 	{ 0x11332, 0x11333 },
    525 	{ 0x11335, 0x11339 },
    526 	{ 0x1135D, 0x11361 },
    527 	{ 0x11480, 0x114AF },
    528 	{ 0x114C4, 0x114C5 },
    529 	{ 0x11580, 0x115AE },
    530 	{ 0x11600, 0x1162F },
    531 	{ 0x11680, 0x116AA },
    532 	{ 0x118A0, 0x118DF },
    533 	{ 0x11AC0, 0x11AF8 },
    534 	{ 0x12000, 0x12398 },
    535 	{ 0x13000, 0x1342E },
    536 	{ 0x16800, 0x16A38 },
    537 	{ 0x16A40, 0x16A5E },
    538 	{ 0x16AD0, 0x16AED },
    539 	{ 0x16B00, 0x16B2F },
    540 	{ 0x16B40, 0x16B43 },
    541 	{ 0x16B63, 0x16B77 },
    542 	{ 0x16B7D, 0x16B8F },
    543 	{ 0x16F00, 0x16F44 },
    544 	{ 0x16F93, 0x16F9F },
    545 	{ 0x1B000, 0x1B001 },
    546 	{ 0x1BC00, 0x1BC6A },
    547 	{ 0x1BC70, 0x1BC7C },
    548 	{ 0x1BC80, 0x1BC88 },
    549 	{ 0x1BC90, 0x1BC99 },
    550 	{ 0x1D400, 0x1D454 },
    551 	{ 0x1D456, 0x1D49C },
    552 	{ 0x1D49E, 0x1D49F },
    553 	{ 0x1D4A5, 0x1D4A6 },
    554 	{ 0x1D4A9, 0x1D4AC },
    555 	{ 0x1D4AE, 0x1D4B9 },
    556 	{ 0x1D4BD, 0x1D4C3 },
    557 	{ 0x1D4C5, 0x1D505 },
    558 	{ 0x1D507, 0x1D50A },
    559 	{ 0x1D50D, 0x1D514 },
    560 	{ 0x1D516, 0x1D51C },
    561 	{ 0x1D51E, 0x1D539 },
    562 	{ 0x1D53B, 0x1D53E },
    563 	{ 0x1D540, 0x1D544 },
    564 	{ 0x1D54A, 0x1D550 },
    565 	{ 0x1D552, 0x1D6A5 },
    566 	{ 0x1D6A8, 0x1D6C0 },
    567 	{ 0x1D6C2, 0x1D6DA },
    568 	{ 0x1D6DC, 0x1D6FA },
    569 	{ 0x1D6FC, 0x1D714 },
    570 	{ 0x1D716, 0x1D734 },
    571 	{ 0x1D736, 0x1D74E },
    572 	{ 0x1D750, 0x1D76E },
    573 	{ 0x1D770, 0x1D788 },
    574 	{ 0x1D78A, 0x1D7A8 },
    575 	{ 0x1D7AA, 0x1D7C2 },
    576 	{ 0x1D7C4, 0x1D7CB },
    577 	{ 0x1E800, 0x1E8C4 },
    578 	{ 0x1EE00, 0x1EE03 },
    579 	{ 0x1EE05, 0x1EE1F },
    580 	{ 0x1EE21, 0x1EE22 },
    581 	{ 0x1EE29, 0x1EE32 },
    582 	{ 0x1EE34, 0x1EE37 },
    583 	{ 0x1EE4D, 0x1EE4F },
    584 	{ 0x1EE51, 0x1EE52 },
    585 	{ 0x1EE61, 0x1EE62 },
    586 	{ 0x1EE67, 0x1EE6A },
    587 	{ 0x1EE6C, 0x1EE72 },
    588 	{ 0x1EE74, 0x1EE77 },
    589 	{ 0x1EE79, 0x1EE7C },
    590 	{ 0x1EE80, 0x1EE89 },
    591 	{ 0x1EE8B, 0x1EE9B },
    592 	{ 0x1EEA1, 0x1EEA3 },
    593 	{ 0x1EEA5, 0x1EEA9 },
    594 	{ 0x1EEAB, 0x1EEBB },
    595 	{ 0x2F800, 0x2FA1D },
    596 };
    597 
    598 static Rune alpha1[] = {
    599 	0x00AA,
    600 	0x00B5,
    601 	0x00BA,
    602 	0x0559,
    603 	0x06FF,
    604 	0x07B1,
    605 	0x07FA,
    606 	0x081A,
    607 	0x0824,
    608 	0x0828,
    609 	0x093D,
    610 	0x0950,
    611 	0x09BD,
    612 	0x09CE,
    613 	0x0ABD,
    614 	0x0AD0,
    615 	0x0B3D,
    616 	0x0B71,
    617 	0x0BD0,
    618 	0x0C3D,
    619 	0x0CBD,
    620 	0x0D3D,
    621 	0x0D4E,
    622 	0x0E8D,
    623 	0x0EBD,
    624 	0x0F00,
    625 	0x103F,
    626 	0x1061,
    627 	0x108E,
    628 	0x10CD,
    629 	0x17D7,
    630 	0x17DC,
    631 	0x1AA7,
    632 	0x2071,
    633 	0x207F,
    634 	0x2102,
    635 	0x2107,
    636 	0x214E,
    637 	0x2D2D,
    638 	0x2D6F,
    639 	0x2E2F,
    640 	0x3400,
    641 	0x4DB5,
    642 	0x4E00,
    643 	0x9FCC,
    644 	0xA8FB,
    645 	0xA9CF,
    646 	0xAA7A,
    647 	0xAC00,
    648 	0xD7A3,
    649 	0x1083C,
    650 	0x10A00,
    651 	0x11176,
    652 	0x111DA,
    653 	0x1133D,
    654 	0x11644,
    655 	0x118FF,
    656 	0x16F50,
    657 	0x1D4A2,
    658 	0x1EE42,
    659 	0x20000,
    660 	0x2A6D6,
    661 	0x2A700,
    662 	0x2B734,
    663 	0x2B740,
    664 	0x2B81D,
    665 };
    666 
    667 int
    668 isalpharune(Rune r)
    669 {
    670 	Rune *match;
    671 
    672 	if((match = bsearch(&r, alpha3, nelem(alpha3), sizeof *alpha3, &rune2cmp)))
    673 		return !((r - match[0]) % 2);
    674 	if(bsearch(&r, alpha2, nelem(alpha2), sizeof *alpha2, &rune2cmp))
    675 		return 1;
    676 	if(bsearch(&r, alpha1, nelem(alpha1), sizeof *alpha1, &rune1cmp))
    677 		return 1;
    678 	return 0;
    679 }