summaryrefslogtreecommitdiff
path: root/boshiamy.h
diff options
context:
space:
mode:
authorHaoran S. Diao (刁浩然) <0@hairydiode.xyz>2025-09-06 14:20:34 -0700
committerHaoran S. Diao (刁浩然) <0@hairydiode.xyz>2025-09-06 14:20:34 -0700
commit3e4e3f17a8bd10ed510fbdd31c71af4d98508981 (patch)
tree0a4ffb3ab15c4ee9204ff31a0b3ab8a916e088a0 /boshiamy.h
parent8fe3f476f0d443ea21fb5f3986156fbd31bcdff3 (diff)
Made input method fully encoding agnostic
Diffstat (limited to 'boshiamy.h')
-rw-r--r--boshiamy.h12
1 files changed, 12 insertions, 0 deletions
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},