You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

106 lines
2.7 KiB

  1. /* Copyright 2021 @nstickney
  2. *
  3. * This program is free software: you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License as published by
  5. * the Free Software Foundation, either version 2 of the License, or
  6. * (at your option) any later version.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #pragma once
  17. enum {
  18. // Used on base
  19. // Used on US-International
  20. IEX, SS2, SS3, CUR, EUR, V14, V12, V34, LSQ, RSQ, YEN, MLT,
  21. A_D, A_R, E_A, REG, THR, U_D, U_A, I_A, O_A, O_D, LDA, RDA, NOT,
  22. A_A, S_S, ETH, EMD, OEL, O_S, PLC, ACT,
  23. AEL, CPR, N_T, MCR, C_C, IQM,
  24. // Used on US-International with Shift
  25. SS1, GBP, DIV,
  26. AXD, ACR, ECA, UCD, UCA, ICA, OCA, OCD, BKB,
  27. ACA, SEC, ETC, OEC, OCS, DEG, DIS,
  28. AEC, CNT, NCT, CCC,
  29. // Added to US-International
  30. // Added to US-International with Shift
  31. LDQ, RDQ,
  32. CPL
  33. };
  34. const uint32_t PROGMEM unicode_map[] = {
  35. [IEX] = 0xA1, // ¡
  36. [SS2] = 0xB2, // ²
  37. [SS3] = 0xB3, // ³
  38. [CUR] = 0xA4, // ¤
  39. [EUR] = 0x20AC, // €
  40. [V14] = 0xBC, // ¼
  41. [V12] = 0xBD, // ½
  42. [V34] = 0xBE, // ¾
  43. [LSQ] = 0x2018, // ‘
  44. [RSQ] = 0x2019, // ’
  45. [YEN] = 0xA5, // ¥
  46. [MLT] = 0xD7, // ×
  47. [A_D] = 0xE4, // ä
  48. [A_R] = 0xE5, // å
  49. [E_A] = 0xE9, // é
  50. [REG] = 0xAE, // ®
  51. [THR] = 0xFE, // þ
  52. [U_D] = 0xFC, // ü
  53. [U_A] = 0xFA, // ú
  54. [I_A] = 0xED, // í
  55. [O_A] = 0xF3, // ó
  56. [O_D] = 0xF6, // ö
  57. [LDA] = 0xAB, // «
  58. [RDA] = 0xBB, // »
  59. [NOT] = 0xAC, // ¬
  60. [A_A] = 0xE1, // á
  61. [S_S] = 0xDF, // ß
  62. [ETH] = 0xF0, // ð
  63. [EMD] = 0x2014, // —
  64. [OEL] = 0x153, // œ
  65. [O_S] = 0xF8, // ø
  66. [PLC] = 0xB6, // ¶
  67. [ACT] = 0xB4, // ´
  68. [AEL] = 0xE6, // æ
  69. [CPR] = 0xA9, // ©
  70. [N_T] = 0xF1, // ñ
  71. [MCR] = 0xB5, // µ
  72. [C_C] = 0xE7, // ç
  73. [IQM] = 0xBF, // ¿
  74. [SS1] = 0xB9, // ¹
  75. [GBP] = 0xA3, // £
  76. [DIV] = 0xF7, // ÷
  77. [AXD] = 0xC4, // Ä
  78. [ACR] = 0xC5, // Å
  79. [ECA] = 0xC9, // É
  80. [UCD] = 0xDC, // Ü
  81. [UCA] = 0xDA, // Ú
  82. [ICA] = 0xCD, // Í
  83. [OCA] = 0xD3, // Ó
  84. [OCD] = 0xD6, // Ö
  85. [BKB] = 0xA6, // ¦
  86. [ACA] = 0xC1, // Á
  87. [SEC] = 0xA7, // §
  88. [ETC] = 0xD0, // Ð
  89. [OEC] = 0x152, // Œ
  90. [OCS] = 0xD8, // Ø
  91. [DEG] = 0xB0, // °
  92. [DIS] = 0xA8, // ¨
  93. [AEC] = 0xC6, // Æ
  94. [CNT] = 0xA2, // ¢
  95. [NCT] = 0xD1, // Ñ
  96. [CCC] = 0xC7, // Ç
  97. [LDQ] = 0x201C, // “
  98. [RDQ] = 0x201D, // ”
  99. [CPL] = 0x1F12F // 🄯
  100. };