Skip to content

Instantly share code, notes, and snippets.

@pixie-grasper
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pixie-grasper/820c81fb2ac6b33b02bd to your computer and use it in GitHub Desktop.
Save pixie-grasper/820c81fb2ac6b33b02bd to your computer and use it in GitHub Desktop.
BEGIN {
FS = ";"
}
{
t[strtonum("0x" $1)] = $3
}
END {
printf " "
or (j = 0; j < 8; j++) {
printf "| +%02x ", j * 16
}
print ""
for (i = 0; i < 16; i++) {
printf "%02x ", i
for (j = 0; j < 8; j++) {
x = j * 16 + i
if (t[x] == "Cc") {
printf "| %s ", t[x]
} else {
printf "| %c %s ", x, t[x]
}
}
print ""
}
}
Original Data from http://www.unicode.org/Public/8.0.0/ucd/UnicodeData.txt | head -n 128
from http://www.unicode.org/versions/Unicode8.0.0/
| +00 | +10 | +20 | +30 | +40 | +50 | +60 | +70
00 | Cc | Cc | Zs | 0 Nd | @ Po | P Lu | ` Sk | p Ll
01 | Cc | Cc | ! Po | 1 Nd | A Lu | Q Lu | a Ll | q Ll
02 | Cc | Cc | " Po | 2 Nd | B Lu | R Lu | b Ll | r Ll
03 | Cc | Cc | # Po | 3 Nd | C Lu | S Lu | c Ll | s Ll
04 | Cc | Cc | $ Sc | 4 Nd | D Lu | T Lu | d Ll | t Ll
05 | Cc | Cc | % Po | 5 Nd | E Lu | U Lu | e Ll | u Ll
06 | Cc | Cc | & Po | 6 Nd | F Lu | V Lu | f Ll | v Ll
07 | Cc | Cc | ' Po | 7 Nd | G Lu | W Lu | g Ll | w Ll
08 | Cc | Cc | ( Ps | 8 Nd | H Lu | X Lu | h Ll | x Ll
09 | Cc | Cc | ) Pe | 9 Nd | I Lu | Y Lu | i Ll | y Ll
0a | Cc | Cc | * Po | : Po | J Lu | Z Lu | j Ll | z Ll
0b | Cc | Cc | + Sm | ; Po | K Lu | [ Ps | k Ll | { Ps
0c | Cc | Cc | , Po | < Sm | L Lu | \ Po | l Ll | | Sm
0d | Cc | Cc | - Pd | = Sm | M Lu | ] Pe | m Ll | } Pe
0e | Cc | Cc | . Po | > Sm | N Lu | ^ Sk | n Ll | ~ Sm
0f | Cc | Cc | / Po | ? Po | O Lu | _ Pc | o Ll | Cc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment