charmaps.h 2.2 KB

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