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 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'cont') 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: -- cgit v1.1