Debian Codegraph @

texmf-dist/fonts/source/public/barcodes/wlc93.mf

raw
1 %%
2 %% This is file `wlc93.mf',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% barcodes.dtx (with options: `code93mf')
8 %% As this is a generated file, you may perhaps not want to edit it.
9 %% This file belongs to the barcode package.
10 %% It may be of no great use without the rest of the barcode package.
11 %% \CharacterTable
12 %% {Upper-case \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
13 %% Lower-case \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
14 %% Digits \0\1\2\3\4\5\6\7\8\9
15 %% Exclamation \! Double quote \" Hash (number) \#
16 %% Dollar \$ Percent \% Ampersand \&
17 %% Acute accent \' Left paren \( Right paren \)
18 %% Asterisk \* Plus \+ Comma \,
19 %% Minus \- Point \. Solidus \/
20 %% Colon \: Semicolon \; Less than \<
21 %% Equals \= Greater than \> Question mark \?
22 %% Commercial at \@ Left bracket \[ Backslash \\
23 %% Right bracket \] Circumflex \^ Underscore \_
24 %% Grave accent \` Left brace \{ Vertical bar \|
25 %% Right brace \} Tilde \~}
26 %%
27 %% Code 93 in Metafont format
28 %% Peter Willadt 1998-04-21
29 %% For copyright and the like see the documentation
30 %% to the barcode package, from which this file is part of.
31 %% If you received only this file,
32 %% then maybe someone fooled you.
33 %%
34 %% Code 93 requires one or two check digits.
35 %% These check digtis are calculated using a weighted mod 11-checksum.
36 %% You have to see the docs.
37 %% Start and stop chars are mapped to < and >, respectively.
38 %% codeable are 0--9 , A-Z, -,+, space, dot, $, /, and percent.
39 %% To print full ascii, ordinary characters have to be preceeded with
40 %% on of four shift characters. Thes shift characters are
41 %% ($) mapped to =
42 %% (%) mapped to [
43 %% (/) mapped to |
44 %% (+) mapped to ]
45
46 mode_setup;
47
48 bheight#:=5mm#;
49
50 bwidth# :=.33 mm#;
51
52 designsize :=bheight#;
53 font_slant :=0;
54 font_normal_space :=9*bwidth#;
55 font_extra_space :=0;
56 font_normal_stretch:=0;
57 font_normal_shrink :=0;
58 font_quad :=10*bwidth#;
59
60 define_pixels(bheight, bwidth);
61
62 def CODExciiichar(expr charnum, spex) =
63 numeric mywid, asval, i;
64 mywid=0;
65 for i= 0 upto 5:
66 asval:=ASCII(substring(i,i+1) of spex);
67 asval:=asval-ASCII("0");
68 mywid:=mywid+asval;
69 endfor;
70 beginchar(charnum, mywid*bwidth#,bheight#,0);
71 y1=y2=0;
72 y3=y4=bheight;
73 numeric myright,myleft,barweight,spcweight;
74 myright:=0;myleft:=0;barweight:=0;spcweight:=0;
75 for i=0 upto 5:
76 asval:=ASCII(substring(i,i+1) of spex);
77 asval:=asval-ASCII("0");
78 myright:=myright+asval*bwidth;
79 if not odd (i):
80 x1:=myleft-blacker;
81 x4:=x1;
82 x2:=myright+blacker;
83 x3:=x2;
84 fill (z1)--(z2)--(z3)--(z4)--cycle;
85 fi
86 myleft:=myright;
87 endfor;
88 endchar;
89 enddef;
90
91 CODExciiichar("0","131112");
92 CODExciiichar("1","111213");
93 CODExciiichar("2","111312");
94 CODExciiichar("3","111411");
95 CODExciiichar("4","121113");
96 CODExciiichar("5","121212");
97 CODExciiichar("6","121311");
98 CODExciiichar("7","111114");
99 CODExciiichar("8","131211");
100 CODExciiichar("9","141111");
101 CODExciiichar("A","211113");
102 CODExciiichar("B","211212");
103 CODExciiichar("C","211311");
104 CODExciiichar("D","221112");
105 CODExciiichar("E","221211");
106 CODExciiichar("F","231111");
107 CODExciiichar("G","112113");
108 CODExciiichar("H","112212");
109 CODExciiichar("I","112311");
110 CODExciiichar("J","122112");
111 CODExciiichar("K","132111");
112 CODExciiichar("L","111123");
113 CODExciiichar("M","111222");
114 CODExciiichar("N","111321");
115 CODExciiichar("O","121122");
116 CODExciiichar("P","131121");
117 CODExciiichar("Q","212112");
118 CODExciiichar("R","212211");
119 CODExciiichar("S","211122");
120 CODExciiichar("T","211221");
121 CODExciiichar("U","221121");
122 CODExciiichar("V","222111");
123 CODExciiichar("W","112122");
124 CODExciiichar("X","112221");
125 CODExciiichar("Y","122121");
126 CODExciiichar("Z","123111");
127 CODExciiichar("-","121131");
128 CODExciiichar(".","311112");
129 CODExciiichar( 32,"311211");% space
130 CODExciiichar( 36,"321111");% dollar
131 CODExciiichar("/","112131");
132 CODExciiichar("+","113121");
133 CODExciiichar( 37,"211131");% percent
134 CODExciiichar("(","121221");% ought to be ($)
135 CODExciiichar(")","312111");% ought to be (%)
136 CODExciiichar("[","311121");% ought to be (/)
137 CODExciiichar("]","122211");% ought to be (+)
138 CODExciiichar("<","111141");% start sign
139 CODExciiichar(">","1111411");% stop sign has extra bar
140
141 end;
142 \endinput
143 %%
144 %% End of file `wlc93.mf'.