X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/70e3b473d744176d9692900114c8beefc0527150..729cd54c52950380bbedabe9d76e5ce41692fdcc:/tools/mkcharinfo diff --git a/tools/mkcharinfo b/tools/mkcharinfo index c6c8900..ef1e215 100755 --- a/tools/mkcharinfo +++ b/tools/mkcharinfo @@ -11,9 +11,13 @@ use Data::Dump 'pp'; our $VERSION = '1.00'; my %info = ( + # prepare presentational string for some control(lish) entries "\xAD" => {string => '-'}, "\x{200E}" => {string => '→'}, "\x{200F}" => {string => '←'}, + "\x{200B}" => {string => '␣'}, + "\x{200C}" => {string => '|'}, # ISO-9995-7-081 lookalike (alt: ∣ ⊺ ⟙) + "\x{200D}" => {string => '⁀'}, # join (alt: ∤ |ͯ ⨝) ); $info{chr $_} //= {} for 32 .. 126; @@ -105,7 +109,9 @@ for my $chr (keys %info) { ? '<'.$info->{unicode10}.'>' # the old name was much more useful : sprintf('', $cp); # at least identify by value # show descriptive symbols instead of control chars themselves - $info->{string} = $cp < 32 ? chr($cp + 0x2400) : chr(0xFFFD); + $info->{string} = $cp < 32 ? chr($cp + 0x2400) : + $cp == 127 ? chr(0x2421) : + chr(0xFFFD); } }