From e245030c07d68ae4f1b05b8c9dc10443bdc5bcdd Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 7 Nov 2023 03:45:18 +0100 Subject: uni: Add the uni script for unicode input --- .local/bin/uni | 27 + .local/share/unicode-data | 33554 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 33581 insertions(+) create mode 100755 .local/bin/uni create mode 100644 .local/share/unicode-data diff --git a/.local/bin/uni b/.local/bin/uni new file mode 100755 index 0000000..4be2d86 --- /dev/null +++ b/.local/bin/uni @@ -0,0 +1,27 @@ +#!/bin/sh + +set -e + +setup() +{ + curl 'https://www.unicode.org/Public/UNIDATA/UnicodeData.txt' \ + | >"$DATA" sed -E \ + -e 's/;[^;]*//2g' \ + -e 's/\<(.)([A-Z]*)/\1\L\2/2g' \ + -e '/^[^;]*;