X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/729cd54c52950380bbedabe9d76e5ce41692fdcc..9ae15ec3a7007abdd580cd30e4d9e9fbb47628da:/tools/mkfontinfo diff --git a/tools/mkfontinfo b/tools/mkfontinfo index a9f0d37..1bf181f 100755 --- a/tools/mkfontinfo +++ b/tools/mkfontinfo @@ -46,6 +46,17 @@ if ($chartables) { } } +eval { + require HTML::Entities; + our %char2entity; + HTML::Entities->import('%char2entity'); + while (my ($char, $entity) = each %char2entity) { + $entity =~ /[a-zA-Z]/ or next; # only actual aliases + push @{ $charlist{table}->{html} }, $char; + } + 1; +} or warn "Could not include count for html entities: $@"; + use Unicode::UCD 'charinfo'; for my $code (0 .. 256**2) { my $charinfo = charinfo($code) or next;