aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorrtz12 <koenig@fagott.pw>2016-11-15 17:29:02 (UTC)
committerrtz12 <koenig@fagott.pw>2016-11-15 17:29:02 (UTC)
commit0ad174d7329e02b3f644614de0758789bb3677d4 (patch)
treee49a659c0b89bdec07cde778850b7fe002ac27ea /bin
parente02ad854383265db216ed92b10c4f12408999d6a (diff)
Verrückter Anilist Import
Bestes Feature 2k16. Hashtag Make Grilist Great Again.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/generate-confusables17
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/generate-confusables b/bin/generate-confusables
new file mode 100755
index 0000000..a90fc38
--- /dev/null
+++ b/bin/generate-confusables
@@ -0,0 +1,17 @@
1#!/bin/bash
2echo 'package util
3/*
4 * THIS FILE IS AUTOGENERATED
5 * DO NOT EDIT MANUALLY!!!
6 */
7
8var unicodeConfusables = map[rune][]rune{'
9sed 's/#.*$//' | sed 's/;//g' | grep -e '\w' |\
10while IFS=$'\t' read -r -a line
11do
12 key=$(sed 's/ $//' <<<"${line[0]}")
13 value=$(sed 's/ $//' <<<"${line[1]}" | sed 's/ /, 0x/g')
14 echo " 0x$key: []rune{0x$value},"
15done
16echo '}'
17