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 --- jankime.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'jankime.html') 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" -- cgit v1.1