From 15a09725bac29ac484d3ee26242f4b1e68072fee 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 04:53:08 -0800 Subject: Unihome finally published --- jankime.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'jankime.html') diff --git a/jankime.html b/jankime.html index 6d1454a..75656c7 100644 --- a/jankime.html +++ b/jankime.html @@ -20,7 +20,7 @@ 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 @@ -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" -- cgit v1.1