From f9fefa545da0fd27259c2d44354d026d100c9c2c 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, 25 Nov 2023 05:27:56 -0800 Subject: Edited some stuf --- cont/jankime.html | 10 +++++----- cont/unihome.html | 2 +- fourcorners.html | 44 ++++++++++++++++++++++++++++++++++++++++++++ index.html | 1 + jankime.html | 10 +++++----- unihome.html | 7 ++++++- 6 files changed, 62 insertions(+), 12 deletions(-) create mode 100644 fourcorners.html diff --git a/cont/jankime.html b/cont/jankime.html index c56766f..1f3a94f 100644 --- a/cont/jankime.html +++ b/cont/jankime.html @@ -4,11 +4,11 @@ -------------------------------------------------------------------------------- [SETTITLE]Janky IME [SETDATE]6-29-2023 -UPDATE: This IME is now tmux based, old xdotool version is still here +UPDATE: This IME is now tmux based, old xdotool version is still here UPDATE2: I have created the most cursed thing in existance. Full unicode display and input support in the linux console using only userland bash/busybox and -tmux. See we have unicode at home +tmux. See we have unicode at home A new python version came out, so of course that means every python package on my rolling-release system has broken. This includes ibus, which I need for my @@ -51,7 +51,7 @@ The Implementation: Input is read with read in a loop - CODE: + CODE: OIFS=$IFS export IFS=""; read -rsn1 i IFS=$OIFS @@ -66,7 +66,7 @@ The Implementation: I then simply run grep ^$code\s, rearrange the columns with awk and sort, then take out the ranking column - CODE: + CODE: opt=$(grep "^$code\s" ~/lang/zh/boshiamy/ibus-boshiamy/boshiamy.txt |\ #remove simplfied grep -v 98|\ @@ -79,7 +79,7 @@ The Implementation: conversion of the input characters from line seperated to space seperated was done for free. However this makes the code less portable - CODE: + CODE: char=$(echo $opt | awk "{print \$1}") ... tmux send-key -t "!" "$char" diff --git a/cont/unihome.html b/cont/unihome.html index 71c146a..199cce0 100644 --- a/cont/unihome.html +++ b/cont/unihome.html @@ -109,7 +109,7 @@ braille display from before. I also wrote a little script that displays all the non-ASCII characters in the previously focused tmux pane, so together we can both display and input utf-8 characters in the linux console using tmux. -see the code and writeup +see the code and writeup "Screenshots" below: diff --git a/fourcorners.html b/fourcorners.html new file mode 100644 index 0000000..03da45c --- /dev/null +++ b/fourcorners.html @@ -0,0 +1,44 @@ + + +Four Corners Input Method for ibus-table + + + + + +
+
+--------------------------------------------------------------------------------
+
+>HairyDiode                                             
+
+--------------------------------------------------------------------------------
+Four Corners Input Method for ibus-table                                                      11-25-2023
+--------------------------------------------------------------------------------
+
+I noticed that ibus-table lacked a four corners input method online so I made
+one myself based off UniHan database data. One issue is that ibus does not
+distinguish between numpad and regular keyboard keys, otherwise this input
+method would allow for typing both Chinese and English without having to even
+switch IMEs. Also UniHan's data is incomplete, so I'll probably have to use data
+from the Variant Character Dictionary or something.
+
+我發現 ibus-table 沒有四角輸入法,因此我編了一方。數據來自統一碼漢字數據庫。可惜
+ibus 無法分別小鍵盤上的鍵, 要不該輸入法可英漢同時輸入。其外統一碼的數據不全,所
+以以后我該用『異體字字典』之類的數據。
+
+源碼/Code
+
+
+
+
+ + diff --git a/index.html b/index.html index 3c7e5e7..c0ad5d4 100644 --- a/index.html +++ b/index.html @@ -45,6 +45,7 @@ Where's all the content? Scroll Down [] [Janky IME] 6-29-2023 +[Four Corners Input Method for ibus-table] 11-25-2023 [PGP Public Key] 6-26-2018 [Control Systems Club Project Workflow] 1-24-2019 [Matrix Homeserver] 3-17-2019 diff --git a/jankime.html b/jankime.html index 75656c7..3c54176 100644 --- a/jankime.html +++ b/jankime.html @@ -20,11 +20,11 @@ 123456789-223456789-323456789-423456789-523456789-623456789-723456789-8234567890 一二三四-->Janky IME 6-29-2023 -------------------------------------------------------------------------------- -UPDATE: This IME is now tmux based, old xdotool version is still here +UPDATE: This IME is now tmux based, old xdotool version is still here UPDATE2: I have created the most cursed thing in existance. Full unicode display and input support in the linux console using only userland bash/busybox and -tmux. See we have unicode at home +tmux. See we have unicode at home A new python version came out, so of course that means every python package on my rolling-release system has broken. This includes ibus, which I need for my @@ -67,7 +67,7 @@ The Implementation: Input is read with read in a loop - CODE: + CODE: OIFS=$IFS export IFS=""; read -rsn1 i IFS=$OIFS @@ -82,7 +82,7 @@ The Implementation: I then simply run grep ^$code\s, rearrange the columns with awk and sort, then take out the ranking column - CODE: + CODE: opt=$(grep "^$code\s" ~/lang/zh/boshiamy/ibus-boshiamy/boshiamy.txt |\ #remove simplfied grep -v 98|\ @@ -95,7 +95,7 @@ The Implementation: conversion of the input characters from line seperated to space seperated was done for free. However this makes the code less portable - CODE: + CODE: char=$(echo $opt | awk "{print \$1}") ... tmux send-key -t "!" "$char" diff --git a/unihome.html b/unihome.html index e0a7b88..3c7bdbb 100644 --- a/unihome.html +++ b/unihome.html @@ -91,6 +91,11 @@ A8 9C ENDCHAR + Source: Misaki Mincho, also sidenote, the entire font is only 746K + despite the insanely inefficient format and large amount of characters + supported , meanwhile TeX Live is installing multiple 50 Megabyte fonts + that only support latin. + The first line is the unicode codepoint, followed by some info I don't care about, and the bitmap data of the character where each row is a stored as a line converted to hex. You can tell if we convert the hex to binary, it will be the @@ -122,7 +127,7 @@ braille display from before. I also wrote a little script that displays all the non-ASCII characters in the previously focused tmux pane, so together we can both display and input utf-8 characters in the linux console using tmux. -see the code and writeup +see the code and writeup "Screenshots" below: -- cgit v1.1