summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaoran S. Diao (刁浩然) <0@hairydiode.xyz>2023-11-25 05:27:56 -0800
committerHaoran S. Diao (刁浩然) <0@hairydiode.xyz>2023-11-25 05:27:56 -0800
commitf9fefa545da0fd27259c2d44354d026d100c9c2c (patch)
tree1613b64d74d398825133b89f67c34fef9607f1fc
parenta643a6689e19aa876e49f90a36800c2e2c75fe1a (diff)
Edited some stuf
-rw-r--r--cont/jankime.html10
-rw-r--r--cont/unihome.html2
-rw-r--r--fourcorners.html44
-rw-r--r--index.html1
-rw-r--r--jankime.html10
-rw-r--r--unihome.html7
6 files changed, 62 insertions, 12 deletions
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 <a href="https://hairydiode.xyz/cgit/bim.git/tree/scripts/ims">here</a>
+UPDATE: This IME is now tmux based, old xdotool version is still <a href="https://hairydiode.xyz/cgit/bim.git/tree/ims">here</a>
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 <a href="https://hairydiode.xyz/unihome/">we have unicode at home</a>
+tmux. See <a href="https://hairydiode.xyz/unihome.html">we have unicode at home</a>
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
- <a href="https://hairydiode.xyz/cgit/bim.git/tree/scripts/imt">CODE:</a>
+ <a href="https://hairydiode.xyz/cgit/bim.git/tree/imt">CODE:</a>
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
- <a href="https://hairydiode.xyz/cgit/bim.git/tree/scripts/imt">CODE:</a>
+ <a href="https://hairydiode.xyz/cgit/bim.git/tree/imt">CODE:</a>
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
- <a href="https://hairydiode.xyz/cgit/bim.git/tree/scripts/imt">CODE:</a>
+ <a href="https://hairydiode.xyz/cgit/bim.git/tree/imt">CODE:</a>
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 <a href="https://hairydiode.xyz/cgit/bim">code</a> and <a href="https://hairydiode.xyz/jankime">writeup</a>
+see the <a href="https://hairydiode.xyz/cgit/bim.git">code</a> and <a href="https://hairydiode.xyz/jankime">writeup</a>
"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 @@
+<!DOCTYPE html>
+<head>
+<title>Four Corners Input Method for ibus-table</title>
+<meta charset="utf-8"/>
+<link rel="stylesheet" href="https://hairydiode.xyz/style.css"/>
+<link rel="icon" type="image/png" href="https://hairydiode.xyz/img/fav/logo.png"/>
+</head>
+<body>
+<div class="content">
+<pre>
+<!--
+123456789-223456789-323456789-423456789-523456789-623456789-723456789-8234567890
+一二三四
+-->--------------------------------------------------------------------------------
+
+<a href="https://hairydiode.xyz">>HairyDiode</a>
+
+--------------------------------------------------------------------------------
+<!--
+123456789-223456789-323456789-423456789-523456789-623456789-723456789-8234567890
+一二三四-->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 無法分別小鍵盤上的鍵, 要不該輸入法可英漢同時輸入。其外統一碼的數據不全,所
+以以后我該用『異體字字典』之類的數據。
+
+<a href="https://hairydiode.xyz/cgit/ibus-table-fourcorners.git">源碼/Code</a>
+</pre>
+</div>
+<br>
+<br>
+</body>
+<!--
+if you're digging in the src you might be interested in how this site works
+here: https://hairydiode.xyz/meta2
+-->
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
<a href="https://hairydiode.xyz/unihome">[] </a>
<a href="https://hairydiode.xyz/jankime">[Janky IME] 6-29-2023</a>
+<a href="https://hairydiode.xyz/fourcorners">[Four Corners Input Method for ibus-table] 11-25-2023</a>
<a href="https://hairydiode.xyz/key">[PGP Public Key] 6-26-2018</a>
<a href="https://hairydiode.xyz/csc-workflow">[Control Systems Club Project Workflow] 1-24-2019</a>
<a href="https://hairydiode.xyz/matrix">[Matrix Homeserver] 3-17-2019</a>
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 <a href="https://hairydiode.xyz/cgit/bim.git/tree/scripts/ims">here</a>
+UPDATE: This IME is now tmux based, old xdotool version is still <a href="https://hairydiode.xyz/cgit/bim.git/tree/ims">here</a>
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 <a href="https://hairydiode.xyz/unihome/">we have unicode at home</a>
+tmux. See <a href="https://hairydiode.xyz/unihome.html">we have unicode at home</a>
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
- <a href="https://hairydiode.xyz/cgit/bim.git/tree/scripts/imt">CODE:</a>
+ <a href="https://hairydiode.xyz/cgit/bim.git/tree/imt">CODE:</a>
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
- <a href="https://hairydiode.xyz/cgit/bim.git/tree/scripts/imt">CODE:</a>
+ <a href="https://hairydiode.xyz/cgit/bim.git/tree/imt">CODE:</a>
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
- <a href="https://hairydiode.xyz/cgit/bim.git/tree/scripts/imt">CODE:</a>
+ <a href="https://hairydiode.xyz/cgit/bim.git/tree/imt">CODE:</a>
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 <a href="https://hairydiode.xyz/cgit/bim">code</a> and <a href="https://hairydiode.xyz/jankime">writeup</a>
+see the <a href="https://hairydiode.xyz/cgit/bim.git">code</a> and <a href="https://hairydiode.xyz/jankime">writeup</a>
"Screenshots" below: