~q3cpma/misc-tools

ref: 023b3736bfe7bc4caeebda9a5d07d060870f0128 misc-tools/gen_html_entities_htab.sh -rwxr-xr-x 169 bytes
023b3736q3cpma Fix gen_unicode_tolower_lut.sh typo 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
set -eu

tr -d '&":[]{},' | awk '
	BEGIN {print "{0, 0}"}
	$1 ~ /;$/ \
	{
		sub(";$", "", $1)
		printf "%s\t{0x%x, 0x%x}\n",
			$1, $3, (NF == 6 ? $4 : 0)
	}'