X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/bbd4d489ebb73ed0fbc55eac123614a4774bb937..881e65323ee9dc104c4b590f14b4da277c161f9f:/writing-latn.inc.pl
diff --git a/writing-latn.inc.pl b/writing-latn.inc.pl
index 7fabb6e..ed8466d 100644
--- a/writing-latn.inc.pl
+++ b/writing-latn.inc.pl
@@ -1,4 +1,5 @@
use utf8;
+use List::Util qw( pairs );
sub disptap {
return map {
@@ -242,6 +243,24 @@ my $U = 0; # optional unicode alternatives
201112 102112 202111 101212 201211 102211
)
],
+'Code 93' => [
+ map {
+ sprintf
+ '',
+ join ' ',
+ map {
+ join('m1,-7', ('v7') x $_->[0]), # line per bar width
+ (map { sprintf 'm%d,-7', $_ + 1 } $_->[1] || ()), # space forward
+ }
+ pairs split //
+ }
+ # bar and space widths (1-3)
+ qw(
+ 21111 21121 21131 22111 22121 23111 11211 11221 11231
+ 12211 13211 11112 11122 11132 12112 13112 21211 21221
+ 21112 21122 22112 22211 11212 11222 12212 12311
+ )
+],
'Code 128' => [
map { $U ? tr/1-3-/ââââ/r : sprintf
'',
@@ -291,7 +310,7 @@ my $U = 0; # optional unicode alternatives
m/h/ or s/v/l3,/g;
m/v/ or s/h([^h]*)/l$1,3/g;
my $dot = s/\.// && qq();
- qq($dot)
+ qq($dot)
}
qw(
Hvh vhv vh hvh vhvh Hhvh hv Vvhv Hhv
@@ -304,8 +323,7 @@ my $U = 0; # optional unicode alternatives
map { s/M[\d,\hM]+(?=[M"])//gr } # clean up superfluous moves
map { sprintf
'',
- ' stroke-linecap="round" stroke-linejoin="round"',
+ . '',
'h.5v.5h-.5v-.5', # start anchor
map { ['M', 'h0M', 'L']->[$_] }
split //, $_