| 1 |
%% |
| 2 |
%% This is file `wlean.mf', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% barcodes.dtx (with options: `codeeanmf') |
| 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 |
%% Font for printing EAN Code |
| 28 |
%% For small sizes (on the Deskjet, < 1,0) you have to be |
| 29 |
%% very careful and test if the font is still machine readable. |
| 30 |
%% On write-black-printers, it may be necessary to reduce |
| 31 |
%% the width of black bars by fiddling with |
| 32 |
%% the definition of fb(). |
| 33 |
%% For producing EAN Add-ons or codes with variable height, |
| 34 |
%% it would be a good idea to shorten the height of the bars and |
| 35 |
%% to leave the numbers out of the bars-definition, so that you |
| 36 |
%% could stack several bars above each other. |
| 37 |
%% Flexibility would increase, but---on the other hand--- |
| 38 |
%% TeX macros for setting EAN code would become even more complicated. |
| 39 |
%% Peter Willadt 1997, September, 21 |
| 40 |
%% Author |
| 41 |
%% Peter Willadt |
| 42 |
%% 75177 Pforzheim |
| 43 |
%% Germany |
| 44 |
%% email: [email protected] |
| 45 |
|
| 46 |
mode_setup; |
| 47 |
|
| 48 |
%% EAN size 1 (100%) |
| 49 |
bheight#:=22.85mm#; |
| 50 |
bdepth#:=1.65mm#; |
| 51 |
bwidth#:=0.33mm#; |
| 52 |
digheight#:=2.75mm#; |
| 53 |
numgap#=1mm#; |
| 54 |
digdiam#=0.9pt#; |
| 55 |
lgap#:= bwidth#+0.5 digdiam#; |
| 56 |
totheight#=bheight#+digheight#+numgap#; |
| 57 |
ndheight#:=totheight#-bheight#-bdepth#; |
| 58 |
define_pixels(ndheight,digheight,numgap,lgap,bwidth); |
| 59 |
define_blacker_pixels(bheight,totheight,digdiam); |
| 60 |
|
| 61 |
font_normal_space=7*bwidth#; |
| 62 |
font_size 10pt#; |
| 63 |
|
| 64 |
def fb(expr posn) = |
| 65 |
x20:=(posn-1)*bwidth; |
| 66 |
x21:=x20; |
| 67 |
x22:=posn*bwidth; |
| 68 |
x23:=x22; |
| 69 |
y20:=y22:=digheight+numgap; |
| 70 |
y21:=y23:=h; |
| 71 |
fill z20--z21--z23--z22--cycle; |
| 72 |
enddef; |
| 73 |
|
| 74 |
def klotz(expr posn) = |
| 75 |
x1:=(posn-1)*bwidth;x2:=posn*bwidth; |
| 76 |
x3:=x2;x4:=x1; |
| 77 |
y1:=y2:=ndheight; |
| 78 |
y3:=y4:=digheight+numgap; |
| 79 |
fill z1--z2--z3--z4--cycle; |
| 80 |
enddef; |
| 81 |
|
| 82 |
def nuller = |
| 83 |
x1=0.5w; |
| 84 |
y1=digheight; |
| 85 |
x2=lgap; |
| 86 |
y2=0.8y1; |
| 87 |
x3=x2; |
| 88 |
y3-y4=y1-y2; |
| 89 |
y4=0; |
| 90 |
x4=x1; |
| 91 |
x5=w-x3; |
| 92 |
y5=y3; |
| 93 |
x6=x5; |
| 94 |
y6=y2; |
| 95 |
pickup pencircle scaled digdiam; |
| 96 |
draw z1..{down}z2--z3{down}..z4..{up}z5--z6{up}..cycle; |
| 97 |
enddef; |
| 98 |
|
| 99 |
def einser = |
| 100 |
x1=x2=0.5w+lgap; |
| 101 |
x3=2*lgap; |
| 102 |
y1=0; |
| 103 |
y2=digheight; |
| 104 |
y3=0.8digheight; |
| 105 |
pickup pencircle scaled digdiam; |
| 106 |
draw z1--z2--z3; |
| 107 |
enddef; |
| 108 |
|
| 109 |
def zweier = |
| 110 |
x1=w-lgap; |
| 111 |
x2=lgap; |
| 112 |
y1=y2=0; |
| 113 |
x3=x2; |
| 114 |
y3=0.15 digheight; |
| 115 |
x4=w-lgap; |
| 116 |
y4=0.6 digheight; |
| 117 |
x5=x4; |
| 118 |
y5=0.9 digheight; |
| 119 |
x6=0.5w; |
| 120 |
y6=digheight; |
| 121 |
x7=x2; |
| 122 |
y7=y5; |
| 123 |
pickup pencircle scaled digdiam; |
| 124 |
draw z1--z2{up}..z3..z4..z5..z6..z7; |
| 125 |
enddef; |
| 126 |
|
| 127 |
def dreier = |
| 128 |
x1=lgap; |
| 129 |
w-x2=x1; |
| 130 |
y1=y2=digheight; |
| 131 |
x3=0.5w; |
| 132 |
y3=0.6digheight; |
| 133 |
y4=0.5y3; |
| 134 |
x4=x2; |
| 135 |
y5=0; |
| 136 |
x5=0.5w; |
| 137 |
x6=x1; |
| 138 |
y6=0.2 digheight; |
| 139 |
pickup pencircle scaled digdiam; |
| 140 |
draw z1--z2--z3{right}..z4..z5..z6; |
| 141 |
enddef; |
| 142 |
|
| 143 |
def vierer = |
| 144 |
x1=0.6w;y1=digheight; |
| 145 |
x2=lgap; |
| 146 |
y2=0.3digheight; |
| 147 |
y3=y2; |
| 148 |
w-x3=x2; |
| 149 |
x4=0.5[x1,x3]; |
| 150 |
x5=x4; |
| 151 |
y4=0.5digheight; |
| 152 |
y5=0; |
| 153 |
pickup pencircle scaled digdiam; |
| 154 |
draw z1--z2--z3; |
| 155 |
draw z4--z5; |
| 156 |
enddef; |
| 157 |
|
| 158 |
def fuenfer = |
| 159 |
x2=lgap; |
| 160 |
x2=w-x1; |
| 161 |
y1=y2=digheight; |
| 162 |
x3=x2; |
| 163 |
y3=0.7digheight; |
| 164 |
x4=x1; |
| 165 |
y3-y4=y4; |
| 166 |
x5=x2; |
| 167 |
y5=0; |
| 168 |
pickup pencircle scaled digdiam; |
| 169 |
draw z1--z2--z3{right}..z4..{left}z5; |
| 170 |
enddef; |
| 171 |
|
| 172 |
def sechser = |
| 173 |
x1=0.6w; |
| 174 |
y1=digheight; |
| 175 |
x2=lgap; |
| 176 |
x4=w-x2; |
| 177 |
y2=y4=0.5y5; |
| 178 |
x3=x5=0.5w; |
| 179 |
y3=0; |
| 180 |
y5=x4-x2; |
| 181 |
pickup pencircle scaled digdiam; |
| 182 |
draw z2..z3..z4..z5..cycle; |
| 183 |
draw z1..{down}z2; |
| 184 |
enddef; |
| 185 |
def siebener = |
| 186 |
x1=lgap; |
| 187 |
x2=w-x1; |
| 188 |
y1=y2=digheight; |
| 189 |
x3=x4=0.5w; |
| 190 |
y3=0.3digheight; |
| 191 |
y4=0; |
| 192 |
pickup pencircle scaled digdiam; |
| 193 |
draw z1--z2; |
| 194 |
draw z2..z3...z4; |
| 195 |
enddef; |
| 196 |
def achter = |
| 197 |
x1=x3=x5=0.5w; |
| 198 |
y1=digheight; |
| 199 |
y3=0.6digheight; |
| 200 |
y5=0; |
| 201 |
x2=w-x7; |
| 202 |
x4=w-x6; |
| 203 |
y2=y7=0.5[y1,y3]; |
| 204 |
y4=y6=0.5[y3,y5]; |
| 205 |
x2=1.5lgap; |
| 206 |
x4=w-lgap; |
| 207 |
pickup pencircle scaled digdiam; |
| 208 |
draw z1..z2..z3..z7..cycle; |
| 209 |
draw z3..z4..z5..z6..cycle; |
| 210 |
enddef; |
| 211 |
def neuner = |
| 212 |
x1=0.4w; |
| 213 |
y1=0; |
| 214 |
x2=w-lgap; |
| 215 |
x4=w-x2; |
| 216 |
y2=y4=0.5[y5,y3]; |
| 217 |
x3=x5=0.5w; |
| 218 |
y3=digheight; |
| 219 |
y5=0.4 digheight; |
| 220 |
pickup pencircle scaled digdiam; |
| 221 |
draw z1..{up}z2; |
| 222 |
draw z2..z3..z4..z5..cycle; |
| 223 |
enddef; |
| 224 |
beginchar("+",3*bwidth#,totheight#,0); "Das Randzeichen"; |
| 225 |
fb(1); fb(3); |
| 226 |
klotz(1); |
| 227 |
klotz(3); |
| 228 |
endchar; |
| 229 |
beginchar("-",5*bwidth#,totheight#,0); "Das Mittenzeichen"; |
| 230 |
fb(2); fb(4); |
| 231 |
klotz(2); |
| 232 |
klotz(4); |
| 233 |
endchar; |
| 234 |
|
| 235 |
beginchar("0",7*bwidth#,digheight#,0); |
| 236 |
nuller; |
| 237 |
endchar; |
| 238 |
|
| 239 |
beginchar("1",7*bwidth#,digheight#,0); |
| 240 |
einser; |
| 241 |
endchar; |
| 242 |
|
| 243 |
beginchar("2",7*bwidth#,digheight#,0); |
| 244 |
zweier; |
| 245 |
endchar; |
| 246 |
|
| 247 |
beginchar("3",7*bwidth#,digheight#,0); |
| 248 |
dreier; |
| 249 |
endchar; |
| 250 |
|
| 251 |
beginchar("4",7*bwidth#,digheight#,0); |
| 252 |
vierer; |
| 253 |
endchar; |
| 254 |
|
| 255 |
beginchar("5",7*bwidth#,digheight#,0); |
| 256 |
fuenfer; |
| 257 |
endchar; |
| 258 |
|
| 259 |
beginchar("6",7*bwidth#,digheight#,0); |
| 260 |
sechser; |
| 261 |
endchar; |
| 262 |
|
| 263 |
beginchar("7",7*bwidth#,digheight#,0); |
| 264 |
siebener; |
| 265 |
endchar; |
| 266 |
|
| 267 |
beginchar("8",7*bwidth#,digheight#,0); |
| 268 |
achter; |
| 269 |
endchar; |
| 270 |
|
| 271 |
beginchar("9",7*bwidth#,digheight#,0); |
| 272 |
neuner; |
| 273 |
endchar; |
| 274 |
|
| 275 |
|
| 276 |
beginchar("A",7*bwidth#,totheight#,0); "Die Null (A)"; |
| 277 |
fb(4);fb(5);fb(7); |
| 278 |
nuller; |
| 279 |
endchar; |
| 280 |
|
| 281 |
beginchar("B",7*bwidth#,totheight#,0); "Die Eins (A)"; |
| 282 |
fb(3);fb(4);fb(7); |
| 283 |
einser; |
| 284 |
endchar; |
| 285 |
|
| 286 |
beginchar("C",7*bwidth#,totheight#,0); "Die Zwei (A)"; |
| 287 |
fb(3);fb(6);fb(7); |
| 288 |
zweier; |
| 289 |
endchar; |
| 290 |
beginchar("D",7*bwidth#,totheight#,0); "Die Drei (A)"; |
| 291 |
fb(2);fb(3);fb(4);fb(5);fb(7); |
| 292 |
dreier; |
| 293 |
endchar; |
| 294 |
beginchar("E",7*bwidth#,totheight#,0); "Die Vier (A)"; |
| 295 |
fb(2);fb(6);fb(7); |
| 296 |
vierer; |
| 297 |
endchar; |
| 298 |
beginchar("F",7*bwidth#,totheight#,0); "Die Fuenf (A)"; |
| 299 |
fb(2);fb(3);fb(7); |
| 300 |
fuenfer; |
| 301 |
endchar; |
| 302 |
beginchar("G",7*bwidth#,totheight#,0); "Die Sechs (A)"; |
| 303 |
fb(2);fb(4);fb(5);fb(6);fb(7); |
| 304 |
sechser; |
| 305 |
endchar; |
| 306 |
beginchar("H",7*bwidth#,totheight#,0); "Die Sieben (A)"; |
| 307 |
fb(2);fb(3);fb(4);fb(6);fb(7); |
| 308 |
siebener; |
| 309 |
endchar; |
| 310 |
|
| 311 |
beginchar("I",7*bwidth#,totheight#,0); "Die Acht (A)"; |
| 312 |
fb(2);fb(3);fb(5);fb(6);fb(7); |
| 313 |
achter; |
| 314 |
endchar; |
| 315 |
|
| 316 |
beginchar("J",7*bwidth#,totheight#,0); "Die Neun (A)"; |
| 317 |
fb(4);fb(6);fb(7); |
| 318 |
neuner; |
| 319 |
endchar; |
| 320 |
|
| 321 |
|
| 322 |
beginchar("a",7*bwidth#,totheight#,0); "Die Null (B)"; |
| 323 |
fb(2);fb(5);fb(6);fb(7); |
| 324 |
nuller; |
| 325 |
endchar; |
| 326 |
|
| 327 |
beginchar("b",7*bwidth#,totheight#,0); "Die Eins (B)"; |
| 328 |
fb(2);fb(3);fb(6);fb(7); |
| 329 |
einser; |
| 330 |
endchar; |
| 331 |
|
| 332 |
beginchar("c",7*bwidth#,totheight#,0); "Die Zwei (B)"; |
| 333 |
fb(3);fb(4);fb(6);fb(7); |
| 334 |
zweier; |
| 335 |
endchar; |
| 336 |
beginchar("d",7*bwidth#,totheight#,0); "Die Drei (B)"; |
| 337 |
fb(2);fb(7); |
| 338 |
dreier; |
| 339 |
endchar; |
| 340 |
beginchar("e",7*bwidth#,totheight#,0); "Die Vier (B)"; |
| 341 |
fb(3);fb(4);fb(5);fb(7); |
| 342 |
vierer; |
| 343 |
endchar; |
| 344 |
beginchar("f",7*bwidth#,totheight#,0); "Die Fuenf (B)"; |
| 345 |
fb(2);fb(3);fb(4);fb(7); |
| 346 |
fuenfer; |
| 347 |
endchar; |
| 348 |
beginchar("g",7*bwidth#,totheight#,0); "Die Sechs (B)"; |
| 349 |
fb(5);fb(7); |
| 350 |
sechser; |
| 351 |
endchar; |
| 352 |
beginchar("h",7*bwidth#,totheight#,0); "Die Sieben (B)"; |
| 353 |
fb(3);fb(7); |
| 354 |
siebener; |
| 355 |
endchar; |
| 356 |
|
| 357 |
beginchar("i",7*bwidth#,totheight#,0); "Die Acht (B)"; |
| 358 |
fb(4);fb(7); |
| 359 |
achter; |
| 360 |
endchar; |
| 361 |
|
| 362 |
beginchar("j",7*bwidth#,totheight#,0); "Die Neun (B)"; |
| 363 |
fb(3);fb(5);fb(6);fb(7); |
| 364 |
neuner; |
| 365 |
endchar; |
| 366 |
|
| 367 |
|
| 368 |
beginchar("K",7*bwidth#,totheight#,0); "Die Null (C)"; |
| 369 |
fb(1);fb(2);fb(3);fb(6); |
| 370 |
nuller; |
| 371 |
endchar; |
| 372 |
|
| 373 |
beginchar("L",7*bwidth#,totheight#,0); "Die Eins (C)"; |
| 374 |
fb(1);fb(2);fb(5);fb(6); |
| 375 |
einser; |
| 376 |
endchar; |
| 377 |
|
| 378 |
beginchar("M",7*bwidth#,totheight#,0); "Die Zwei (C)"; |
| 379 |
fb(1);fb(2);fb(4);fb(5); |
| 380 |
zweier; |
| 381 |
endchar; |
| 382 |
beginchar("N",7*bwidth#,totheight#,0); "Die Drei (C)"; |
| 383 |
fb(1);fb(6); |
| 384 |
dreier; |
| 385 |
endchar; |
| 386 |
beginchar("O",7*bwidth#,totheight#,0); "Die Vier (C)"; |
| 387 |
fb(1);fb(3);fb(4);fb(5); |
| 388 |
vierer; |
| 389 |
endchar; |
| 390 |
beginchar("P",7*bwidth#,totheight#,0); "Die Fuenf (C)"; |
| 391 |
fb(1);fb(4);fb(5);fb(6); |
| 392 |
fuenfer; |
| 393 |
endchar; |
| 394 |
beginchar("Q",7*bwidth#,totheight#,0); "Die Sechs (C)"; |
| 395 |
fb(1);fb(3); |
| 396 |
sechser; |
| 397 |
endchar; |
| 398 |
beginchar("R",7*bwidth#,totheight#,0); "Die Sieben (C)"; |
| 399 |
fb(1);fb(5); |
| 400 |
siebener; |
| 401 |
endchar; |
| 402 |
|
| 403 |
beginchar("S",7*bwidth#,totheight#,0); "Die Acht (C)"; |
| 404 |
fb(1);fb(4); |
| 405 |
achter; |
| 406 |
endchar; |
| 407 |
|
| 408 |
beginchar("T",7*bwidth#,totheight#,0); "Die Neun (C)"; |
| 409 |
fb(1);fb(2);fb(3);fb(5); |
| 410 |
neuner; |
| 411 |
endchar; |
| 412 |
|
| 413 |
end; |
| 414 |
\endinput |
| 415 |
%% |
| 416 |
%% End of file `wlean.mf'. |