summaryrefslogtreecommitdiff
path: root/.local/bin/uni
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/uni')
-rwxr-xr-x.local/bin/uni3
1 files changed, 2 insertions, 1 deletions
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
}