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/unigraph: diagonals and dots in rightmost columns
[sheet.git]
/
sample.plp
diff --git
a/sample.plp
b/sample.plp
index b4d2c44c963b7534351d500b0a54d43f9b8e52e2..36ad2b424e995697c25e7a6602e94b8c18cb0158 100644
(file)
--- a/
sample.plp
+++ b/
sample.plp
@@
-1,12
+1,13
@@
<(common.inc.plp)><:
<(common.inc.plp)><:
-my $textinc = '
data/unicode-sampler/unicod
e.txt';
+my $textinc = '
sampl
e.txt';
Html({
title => "unicode sampler",
Html({
title => "unicode sampler",
- version => '2.
0
',
+ version => '2.
1
',
stylesheet => [qw'light dark mono red'],
data => [$textinc],
stylesheet => [qw'light dark mono red'],
data => [$textinc],
+ image => 'sample.png',
});
open my $source, '<', $textinc
});
open my $source, '<', $textinc
@@
-16,8
+17,12
@@
local $/ = "\n\n";
my $top = readline $source;
my ($title, $hr, $intro) = split /\n(\pP)\1+\n/, $top, 2;
say "<h1>$title</h1>";
my $top = readline $source;
my ($title, $hr, $intro) = split /\n(\pP)\1+\n/, $top, 2;
say "<h1>$title</h1>";
-printf '<p>HTML display of <a href="%s">plain text</a>', $textinc;
-say ' intended for monospaced (terminal) output.</p>';
+say <<".";
+<p>HTML display of <a href="/$textinc">plain text</a>
+intended for monospaced (terminal) output.
+Compare an expected rendering of the <a href="/sample.png">overview</a>.
+</p>
+.
say '<pre>';
print $intro;
say '<pre>';
print $intro;
@@
-25,6
+30,10
@@
print $intro;
while (my $p = readline $source) {
EscapeHTML($p);
$p =~ s{ \A ((\pL+) \N*:) \n }{<h2 id="\L$2\E">$1</h2>}x;
while (my $p = readline $source) {
EscapeHTML($p);
$p =~ s{ \A ((\pL+) \N*:) \n }{<h2 id="\L$2\E">$1</h2>}x;
+ if ($2 eq 'Unicode') {
+ # table without proper direction control
+ $p =~ s/^(?= )/\x{202d}/gm; # ltr override every line
+ }
$p =~ s{(?<=^ )([\p{Latin} ]+:)}{<em>$1</em>}gm;
print $p;
}
$p =~ s{(?<=^ )([\p{Latin} ]+:)}{<em>$1</em>}gm;
print $p;
}