From 64e2e90abdca04743558e3baf42a6b714b440bd0 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 7 Jun 2024 17:15:16 +0200 Subject: uni: Fix usage for runes > U+FFFF --- .local/bin/uni | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.local/bin/uni') diff --git a/.local/bin/uni b/.local/bin/uni index 72f9b70..a7b7000 100755 --- a/.local/bin/uni +++ b/.local/bin/uni @@ -14,7 +14,8 @@ func setup { cdr = substr($2, RSTART + 1, RLENGTH - 1) sub(/[A-Z]{2,}([^)]|$)/, car tolower(cdr), $2) } - printf "\\u%s;U+%s %s\n", $1, $1, $2 + long = substr("00000000", 1, 8 - length($1)) $1 + printf "\\U%s;U+%s %s\n", long, $1, $2 } ' >$DATA } -- cgit v1.2.3