diff options
author | Haoran S. Diao (刁浩然) <0@hairydiode.xyz> | 2025-09-06 14:20:34 -0700 |
---|---|---|
committer | Haoran S. Diao (刁浩然) <0@hairydiode.xyz> | 2025-09-06 14:20:34 -0700 |
commit | 3e4e3f17a8bd10ed510fbdd31c71af4d98508981 (patch) | |
tree | 0a4ffb3ab15c4ee9204ff31a0b3ab8a916e088a0 /boshiamy.h | |
parent | 8fe3f476f0d443ea21fb5f3986156fbd31bcdff3 (diff) |
Made input method fully encoding agnostic
Diffstat (limited to 'boshiamy.h')
-rw-r--r-- | boshiamy.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -1,5 +1,17 @@ +//indicators for turning the im on and off +#define IM_ON_INDICATOR "嘸" +//string length in bytes +#define IM_ON_INDICATOR_LEN 3 +#define IM_OFF_INDICATOR "英" +#define IM_OFF_INDICATOR_LEN 3 +//width of the indicator as displayed on the terminal +#define IM_INDICATOR_WIDTH 2 +//length of input method table #define IM_TABLE_LEN 47976 +//length of entry fields in bytes #define IM_TABLE_ENTRY_LEN 8 +//maximum entry width as displayed on terminal +#define IM_TABLE_ENTRY_WIDTH 2 char im_table[][3][IM_TABLE_ENTRY_LEN] = { {"'' ", "“", 0}, {"''' ", "”", 0}, |