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: edgewrite svg row
[sheet.git]
/
Shiar_Sheet
/
FormatChar.pm
diff --git
a/Shiar_Sheet/FormatChar.pm
b/Shiar_Sheet/FormatChar.pm
index 78e4a21fdbad97788b08565b5a5540352047b88e..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';
@@
-31,15
+31,15
@@
sub glyph_html {
my ($self, $char) = @_;
my $codepoint = ord $char;
my $info = $self->glyph_info($codepoint);
my ($self, $char) = @_;
my $codepoint = ord $char;
my $info = $self->glyph_info($codepoint);
- my ($class, $name, $mnem, $
html
, $string) = @$info;
+ my ($class, $name, $mnem, $
entity
, $string) = @$info;
my $cell = EscapeHTML($string || $char);
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, $html
);
+ 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/) {