git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
perl: silence warning about skipping dropped features
[sheet.git]
/
writing.plp
diff --git
a/writing.plp
b/writing.plp
index d71dba445eadc91c4ef934cc62173244195c9171..82049fee1ad1853273f85426247793df9a07b1fc 100644
(file)
--- a/
writing.plp
+++ b/
writing.plp
@@
-2,7
+2,7
@@
Html({
title => 'writing system inheritance sheet',
Html({
title => 'writing system inheritance sheet',
- version => '
v1.0
',
+ version => '
1.3
',
description => [
"Character comparison,",
"tracking letters as they evolve from Phoenician to modern scripts.",
description => [
"Character comparison,",
"tracking letters as they evolve from Phoenician to modern scripts.",
@@
-12,13
+12,16
@@
Html({
script glyph unicode writing comparison character alphabet letter
history phoenician latin sample test language multilingual
'],
script glyph unicode writing comparison character alphabet letter
history phoenician latin sample test language multilingual
'],
- stylesheet => [qw'light dark red'],
+ stylesheet => [qw'light circus dark red mono'],
+ data => [qw'writing-phnx.inc.pl'],
});
:>
<h1>Writing systems</h1>
});
:>
<h1>Writing systems</h1>
-<p>Also see <a href="/charset">charsets</a>
+<p>
+Comparison of Unicode letters in related alphabets.
+Also see <a href="/charset">charsets</a>
and <a href="/unicode">common chars</a>.</p>
<div class="section">
and <a href="/unicode">common chars</a>.</p>
<div class="section">
@@
-28,25
+31,31
@@
use Shiar_Sheet::FormatChar;
my $glyphs = Shiar_Sheet::FormatChar->new;
unless (exists $get{v}) {
$glyphs->{unicode}--;
my $glyphs = Shiar_Sheet::FormatChar->new;
unless (exists $get{v}) {
$glyphs->{unicode}--;
- $glyphs->{digraph}--;
+ $glyphs->{anno} = [];
+ $glyphs->{style} = 'univer';
}
}
+my $scriptname = eval { Data('writing-script') }; # optional translations
+$_ = showlink($_, "/latin") for $scriptname->{latn} || ();
+
for (
[phnx => 'Phoenician'],
[brah => 'Brahmi'],
for (
[phnx => 'Phoenician'],
[brah => 'Brahmi'],
- [digits => 'Digits'],
) {
my ($source, $title) = @$_;
) {
my ($source, $title) = @$_;
- my @table = do "writing-$source.inc.pl";
- if ($! or $@) {
- print "<h2>$title</h2>\n";
- printf "<p>Table data not found: <em>%s</em>.</p>\n", $! || $@;
+ my @table = eval { Data("writing-$source") } or do {
+ say "<h2>$title</h2>";
+ printf "<p>%s: <em>%s</em>.</p>\n", @{$@};
next;
next;
- }
- $glyphs->print($title => [ map { @$_ } grep { ref $_ eq 'ARRAY' } @table ]);
+ };
+ $glyphs->print($title => [map {
+ my $lead = s/^(-)// && $1;
+ ref $_ eq 'ARRAY' ? @$_ : map { ".>$lead$_" }
+ $scriptname->{$source.'_'.$_} || $scriptname->{$_} || $_
+ } @table]);
}
}
-:></div>
+say "</div>\n";
-<hr>
+say for '<hr/>', $glyphs->legend;