X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/ff2d4344d5b0adc00b1a9184afc02dda63165a24..c7399071b5121ddded1209d9978a6f044f4e5ecc:/writing-latn.inc.pl
diff --git a/writing-latn.inc.pl b/writing-latn.inc.pl
index f178be9..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
'',