blob: a90fc389988fed4bae10d96eec28c5b788aecce3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/bash
echo 'package util
/*
* THIS FILE IS AUTOGENERATED
* DO NOT EDIT MANUALLY!!!
*/
var unicodeConfusables = map[rune][]rune{'
sed 's/#.*$//' | sed 's/;//g' | grep -e '\w' |\
while IFS=$'\t' read -r -a line
do
key=$(sed 's/ $//' <<<"${line[0]}")
value=$(sed 's/ $//' <<<"${line[1]}" | sed 's/ /, 0x/g')
echo " 0x$key: []rune{0x$value},"
done
echo '}'
|