From 3e4e3f17a8bd10ed510fbdd31c71af4d98508981 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Haoran=20S=2E=20Diao=20=28=E5=88=81=E6=B5=A9=E7=84=B6=29?= <0@hairydiode.xyz> Date: Sat, 6 Sep 2025 14:20:34 -0700 Subject: Made input method fully encoding agnostic --- boshiamy.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'boshiamy.h') diff --git a/boshiamy.h b/boshiamy.h index d2cc0e5..63251e8 100644 --- a/boshiamy.h +++ b/boshiamy.h @@ -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}, -- cgit v1.1