git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
keyboard/altgr/macos: describe exceptions in nl language variant
[sheet.git]
/
digraphs.plp
diff --git
a/digraphs.plp
b/digraphs.plp
index 6e0608c20cd41f9679b9e316f21fafe6d86067b6..9f96c502b0ebd820116105b89adbd96f39e01543 100644
(file)
--- a/
digraphs.plp
+++ b/
digraphs.plp
@@
-9,7
+9,7
@@
warn "error in $include: ", @{$@} if ref $@;
Html({
title => "$mode digraph cheat sheet",
Html({
title => "$mode digraph cheat sheet",
- version => '1.
3
',
+ version => '1.
4
',
description => $di->{description} // [
"Complete table of digraph characters from",
($di->{title} // $mode) . ".",
description => $di->{description} // [
"Complete table of digraph characters from",
($di->{title} // $mode) . ".",
@@
-79,11
+79,12
@@
for my $c1group (@chars) {
my ($codepoint, $name, $support, $script, $string) =
@{ $di->{key}->{$mnem} };
my ($codepoint, $name, $support, $script, $string) =
@{ $di->{key}->{$mnem} };
- my $glyph = $string || chr $codepoint;
+ my $glyph = $string ||
!!$codepoint &&
chr $codepoint;
utf8::upgrade($glyph); # prevent latin1 output
my $desc = $mnem . ($name && " ($name)");
my @class = ('X', grep {$_} $script);
utf8::upgrade($glyph); # prevent latin1 output
my $desc = $mnem . ($name && " ($name)");
my @class = ('X', grep {$_} $script);
- push @class, $cmp ? $support : "u-$support" if $support;
+ push @class, $cmp ? $support :
+ $di->{flagclass}->{$support} // "u-$support" if $support;
$glyph = EscapeHTML($glyph);
$glyph = "<span>$glyph</span>" if $script =~ /\bZs\b/;
$glyph = EscapeHTML($glyph);
$glyph = "<span>$glyph</span>" if $script =~ /\bZs\b/;
@@
-122,7
+123,7
@@
print '<hr>' if exists $get{split};
</table>
<: } :>
<table class="glyphs"><tr><:
</table>
<: } :>
<table class="glyphs"><tr><:
- printf qq(\n\t<td class="X %s">%s),
(!$cmp && 'u-').$_
, $di->{flag}->{$_}
+ printf qq(\n\t<td class="X %s">%s),
$cmp ? $_ : $di->{flagclass}{$_} // "u-$_"
, $di->{flag}->{$_}
for sort keys %{ $di->{flag} };
:>
</table>
for sort keys %{ $di->{flag} };
:>
</table>