git.shiar.nl
/
sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
187b633
)
charset: ucd fallback for undigraphed characters
author
Mischa POSLAWSKY
<perl@shiar.org>
Tue, 2 Jun 2009 10:30:24 +0000
(10:30 +0000)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Tue, 13 Oct 2009 22:38:42 +0000
(22:38 +0000)
charset.plp
patch
|
blob
|
history
diff --git
a/charset.plp
b/charset.plp
index bc2a1ead74090a76ab406f5693015e0cef8ab86a..f9a773a3a240d00a970d4e7f0ef272e96d806e65 100644
(file)
--- a/
charset.plp
+++ b/
charset.plp
@@
-140,6
+140,11
@@
for my $row (@request) {
if (defined (my $mnem = $di{ord $glyph})) {
$info = $diinfo->{$mnem};
}
+ else {
+ require Unicode::UCD;
+ my $fullinfo = Unicode::UCD::charinfo(ord $glyph);
+ $info = [@$fullinfo{qw/code name category script string/}] if $fullinfo;
+ }
my ($codepoint, $name, $prop, $script, $string) = @$info;
$glyph = quote($string || $glyph);