X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/0d4e2cd473f173a204d2ca8a03c4828c9d757013..bcdcb872044a3146c38f3c17bb601130f170aff4:/writing-latn.inc.pl
diff --git a/writing-latn.inc.pl b/writing-latn.inc.pl
index ef14053..1d11c3c 100644
--- a/writing-latn.inc.pl
+++ b/writing-latn.inc.pl
@@ -3,9 +3,9 @@ use utf8;
sub disptap {
return map {
m/\A(-?)(\d)(\d)/;
- sprintf('%s ',
- #TODO: prepend $1
- join "
\n", 'â¢' x $2, 'â¢' x $3,
+ sprintf('
%s %s | ',
+ ' class=ex' x !!$1,
+ '·' x $2, '·' x $3,
);
} @_;
}
@@ -36,8 +36,8 @@ my %C = qw(red #EC1C24 blue #3953A3 yellow #F9EC31 black #231F20);
33 34 35 41 42 43 44 45 51 52 53 54 55
})],
'Tap simplified' => [disptap(qw{
- 11 12 13 14 21 22 23 24 31 -31 -13 32 33
- 34 41 42 -13 43 44 15 51 52 53 -25 -31 54
+ 11 12 13 14 21 22 23 20 31 -31 -13 32 33
+ 30 41 42 -13 43 40 10 51 52 53 50 -31 -40
})],
'Maritime flags' => [
# International Code of Signals, SVG fills
@@ -199,6 +199,14 @@ my %C = qw(red #EC1C24 blue #3953A3 yellow #F9EC31 black #231F20);
201112 102112 202111 101212 201211 102211
)
],
+'Code 128' => [
+ map { tr/1-3-/ââââ/r }
+ # bar widths (1-3) followed by space of width 1 (implied) or 3 (-)
+ qw(
+ 11-2 1-12 1-1-2 12-1 1-21 1-2-1 21-1 2-11 2-1-1 123 12-3 1-23 132
+ 13-2 1-32 332 21-3 2-13 231 23-1 233 312 31-2 3-12 321 32-1
+ )
+],
'RM4SCC' => [
map { sprintf
'