git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
charset: double width option, improve ascii inheritance
[sheet.git]
/
Shiar_Sheet
/
FormatChar.pm
diff --git
a/Shiar_Sheet/FormatChar.pm
b/Shiar_Sheet/FormatChar.pm
index 834b71bc03405f32198a348af6a9995f71d20738..80546556aae9f5153d73166c8e95b07ad33c8863 100644
(file)
--- a/
Shiar_Sheet/FormatChar.pm
+++ b/
Shiar_Sheet/FormatChar.pm
@@
-31,7
+31,7
@@
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 $title = sprintf 'U+%04X%s', $codepoint, $name && " ($name)";
my $cell = EscapeHTML($string || $char);
my $title = sprintf 'U+%04X%s', $codepoint, $name && " ($name)";
@@
-39,7
+39,7
@@
sub glyph_html {
$cell = "<span>$cell</span>" if $class =~ /\bZs\b/;
$cell = ' ' if $cell eq '';
$cell = "<span>$cell</span>" if $class =~ /\bZs\b/;
$cell = ' ' if $cell eq '';
- return ($cell, EscapeHTML($title), "X $class", $mnem, $
html
);
+ return ($cell, EscapeHTML($title), "X $class", $mnem, $
entity
);
}
sub glyphs_html {
}
sub glyphs_html {
@@
-231,6
+231,10
@@
sub table {
$rows[-1] .= '<th>';
next;
}
$rows[-1] .= '<th>';
next;
}
+ elsif ($cell =~ m/^</) {
+ $rows[-1] .= '<td>'.$cell;
+ next;
+ }
$rows[-1] .= $self->cell($cell,
$colspan > 1 && qq{colspan="$colspan"},
$rows[-1] .= $self->cell($cell,
$colspan > 1 && qq{colspan="$colspan"},