git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
latin: cmymap row of subtractive colour mix
[sheet.git]
/
Shiar_Sheet
/
FormatChar.pm
diff --git
a/Shiar_Sheet/FormatChar.pm
b/Shiar_Sheet/FormatChar.pm
index 80546556aae9f5153d73166c8e95b07ad33c8863..ef0445d01d968f127be31ebc2f821affb0fed564 100644
(file)
--- a/
Shiar_Sheet/FormatChar.pm
+++ b/
Shiar_Sheet/FormatChar.pm
@@
-8,7
+8,7
@@
use utf8;
use Data::Dump 'pp';
use PLP::Functions 'EscapeHTML';
use Data::Dump 'pp';
use PLP::Functions 'EscapeHTML';
-our $VERSION = '1.0
6
';
+our $VERSION = '1.0
7
';
our $uc = do 'unicode-char.inc.pl';
our $uc = do 'unicode-char.inc.pl';
@@
-34,12
+34,12
@@
sub glyph_html {
my ($class, $name, $mnem, $entity, $string) = @$info;
my $cell = EscapeHTML($string || $char);
my ($class, $name, $mnem, $entity, $string) = @$info;
my $cell = EscapeHTML($string || $char);
- my $title = sprintf 'U+%04X%s', $codepoint, $name && " ($name)";
+ my $title = sprintf 'U+%04X%s', $codepoint,
!!
$name && " ($name)";
- $cell = "<span>$cell</span>" if $class =~ /\bZs\b/;
+ $cell = "<span>$cell</span>" if $class
and $class
=~ /\bZs\b/;
$cell = ' ' if $cell eq '';
$cell = ' ' if $cell eq '';
- return ($cell, EscapeHTML($title), "X $class", $mnem, $entity);
+ return ($cell, EscapeHTML($title),
!!$class &&
"X $class", $mnem, $entity);
}
sub glyphs_html {
}
sub glyphs_html {
@@
-109,7
+109,7
@@
sub cell {
}
if ($self->{style} eq 'di') {
}
if ($self->{style} eq 'di') {
- if ($mnem =~ /…/) {
+ if ($mnem
and $mnem
=~ /…/) {
# incomplete representation, usually partial
}
elsif ($class =~ /\bu-di\b/) {
# incomplete representation, usually partial
}
elsif ($class =~ /\bu-di\b/) {