X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/0dd2b5ce328daf14b51f94c951acef2ca40a5fd4..bf58fc823d4d25c75c028a7ff225513721c4d824:/writing-latn.inc.pl?ds=sidebyside
diff --git a/writing-latn.inc.pl b/writing-latn.inc.pl
index 3db23c4..eebe155 100644
--- a/writing-latn.inc.pl
+++ b/writing-latn.inc.pl
@@ -1,19 +1,20 @@
use utf8;
sub disptap {
- map {
+ return map {
m/\A(-?)(\d)(\d)/;
- $1 . '\\' # escape dot
- . ('.Ì' x ($2 < $3 ? $2 : $3)) # min($2,$3) without losing captures
- . ('.' x ($3 - $2))
- . (' Ì' x ($2 - $3))
- } @_
+ sprintf('%s ',
+ #TODO: prepend $1
+ join " \n", 'â¢' x $2, 'â¢' x $3,
+ );
+ } @_;
}
my %C = qw(red #EC1C24 blue #3953A3 yellow #F9EC31 black #231F20);
(
-latn => [qw{ a b c d e f g h i j k l m n o p q r s t u v w x y z }],
+latnuc => [qw{ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z }],
+latnlc => [qw{ a b c d e f g h i j k l m n o p q r s t u v w x y z }],
latfsuet => [qw{ a b c d e f g h i j k l m n o p q r Å¿âs t u v w x y z }],
asl => [
map { pack 'W*', map { hex "1D$_" } unpack '(A3)*', $_ } qw{
@@ -33,7 +34,7 @@ tap => [disptap(qw{
11 12 13 14 15 21 22 23 24 -24 25 31 32
33 34 35 41 42 43 44 45 51 52 53 54 55
})],
-tap => [disptap(qw{
+taps => [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
})],
@@ -133,4 +134,42 @@ ics => [
},
],
+sem => [
+ map {
+ local $_ = $_;
+ s/[1-4]\K(?=[4-9])/Â /;
+ tr/1-9/ââââââââ/;
+ s{(.)(?=.)}{$1}
+ or s/^// and $_ .= '';
+ $_
+ }
+ qw(
+ 1 2 3 4 5 6 7 21 31 46 14 15 16 17 23
+ 24 25 26 27 34 35 47 56 57 36 67
+ )
+],
+code39 => [map { tr/012/âââ/r } qw{
+ 211012 121012 221011 112012 212011 122011 111022 211021 121021 112021
+ 211102 121102 221101 112102 212101 122101 111202 211201 121201 112201
+ 201112 102112 202111 101212 201211 102211
+}],
+rm4scc => [
+ map { sprintf
+ '',
+ join ' m2',
+ map { sprintf ',%dv%dm0,-%d',
+ ($_ & 1 ? 0 : 2), 2 + ($_ & 2) + ($_ & 1) * 2,
+ ($_ & 1 ? 0 : 2) + 2 + ($_ & 2) + ($_ & 1) * 2,
+ }
+ split //, $_
+ }
+ qw(
+ 2121 2301
+ 0132 0312 0330 2112 2130 2310
+ 1023 1203 1221 3003 3021 3201
+ 1032 1212 1230 3012 3030 3210
+ 1122 1302 1320 3102 3120 3300
+ )
+],
);