From ec1d430daf529802729aa1ab622ad1a2d7c53cd3 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: Fri, 30 Jun 2023 02:55:40 -0700 Subject: Added ability to display entire strings of text --- textd | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 textd (limited to 'textd') diff --git a/textd b/textd new file mode 100755 index 0000000..57394a0 --- /dev/null +++ b/textd @@ -0,0 +1,13 @@ +#!/bin/bash +#usage: +# textd DIR +# reads from stdin, and displays all text vertically using fonts +# in DIR +# assumes unicode utf-8 input +codes=$(iconv -f utf8 -t utf32be | xxd -u -p -c 4) +#convert to decimal +dec=$(echo -n "ibase=16;$codes" | bc) +dec=($dec) +for decimal_code in "${dec[@]}"; do + ./fontd "$decimal_code" "$1" +done -- cgit v1.1