1#include "charmaps/iso-8859-2.h" 2#include "charmaps/iso-8859-10.h" 3#include "charmaps/windows-874.h" 4#include "charmaps/windows-1250.h" 5#include "charmaps/koi8-r.h" 6 7#ifdef ALL_CHARSETS 8#include "charmaps/iso-8859-3.h" 9#include "charmaps/iso-8859-4.h" 10#include "charmaps/iso-8859-5.h" 11#include "charmaps/iso-8859-6.h" 12#include "charmaps/iso-8859-7.h" 13#include "charmaps/iso-8859-8.h" 14#include "charmaps/iso-8859-9.h" 15#include "charmaps/iso-8859-13.h" 16#include "charmaps/iso-8859-14.h" 17#include "charmaps/iso-8859-16.h" 18#include "charmaps/windows-1251.h" 19#include "charmaps/windows-1252.h" 20#include "charmaps/windows-1253.h" 21#include "charmaps/windows-1254.h" 22#include "charmaps/windows-1255.h" 23#include "charmaps/windows-1256.h" 24#include "charmaps/windows-1257.h" 25#include "charmaps/windows-1258.h" 26#endif 27 28 29struct charmap { 30 const char name[13]; 31 const unsigned char *map; 32}; 33 34static struct charmap charmaps[] = { 35 { "ISO-8859-2", map_iso_8859_2 }, 36 { "ISO-8859-10", map_iso_8859_10 }, 37 38#ifdef ALL_CHARSETS 39 { "ISO-8859-3", map_iso_8859_3 }, 40 { "ISO-8859-4", map_iso_8859_4 }, 41 { "ISO-8859-5", map_iso_8859_5 }, 42 { "ISO-8859-6", map_iso_8859_6 }, 43 { "ISO-8859-7", map_iso_8859_7 }, 44 { "ISO-8859-8", map_iso_8859_8 }, 45 { "ISO-8859-9", map_iso_8859_9 }, 46 { "ISO-8859-13", map_iso_8859_13 }, 47 { "ISO-8859-14", map_iso_8859_14 }, 48 { "ISO-8859-16", map_iso_8859_16 }, 49#endif 50 51 { "WINDOWS-874", map_windows_874 }, 52 { "WINDOWS-1250", map_windows_1250 }, 53 54#ifdef ALL_CHARSETS 55 { "WINDOWS-1251", map_windows_1251 }, 56 { "WINDOWS-1252", map_windows_1252 }, 57 { "WINDOWS-1253", map_windows_1253 }, 58 { "WINDOWS-1254", map_windows_1254 }, 59 { "WINDOWS-1255", map_windows_1255 }, 60 { "WINDOWS-1256", map_windows_1256 }, 61 { "WINDOWS-1257", map_windows_1257 }, 62 { "WINDOWS-1258", map_windows_1258 }, 63#endif 64 65 { "KOI8-R", map_koi8_r }, 66 67 /* Aliases */ 68 { "LATIN2", map_iso_8859_2 }, 69 { "LATIN6", map_iso_8859_10 }, 70 71#ifdef ALL_CHARSETS 72 { "ARABIC", map_iso_8859_6 }, 73 { "CYRILLIC", map_iso_8859_5 }, 74 { "GREEK", map_iso_8859_7 }, 75 { "HEBREW", map_iso_8859_8 }, 76 { "LATIN3", map_iso_8859_3 }, 77 { "LATIN4", map_iso_8859_4 }, 78 { "LATIN5", map_iso_8859_9 }, 79#endif 80}; 81