Skip to content

Commit 6126aa0

Browse files
committed
gs1dotcode: Uplift
1 parent 2f44b60 commit 6126aa0

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src/gs1dotcode.ps.src

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
% Barcode Writer in Pure PostScript
22
% https://bwipp.terryburton.co.uk
33
%
4-
% Copyright (c) 2004-2024 Terry Burton
4+
% Copyright (c) 2004-2025 Terry Burton
55
%
66
% $Id$
77
%
@@ -47,9 +47,10 @@ dup /dotcode dup /uk.co.terryburton.bwipp findresource put
4747
begin
4848
/gs1dotcode {
4949

50-
20 dict begin % Confine variables to local scope
50+
20 dict begin
5151

5252
/ctx null def
53+
5354
/dontdraw false def
5455
/parse false def
5556
/dontlint false def
@@ -63,7 +64,9 @@ begin
6364
/vals exch def
6465
/ais exch def
6566

67+
%
6668
% Create the dotcode data
69+
%
6770
/fnc1 -1 def
6871
/dmtx [ fnc1 ] def
6972
0 1 ais length 1 sub {
@@ -83,7 +86,9 @@ begin
8386
} if
8487
} for
8588

89+
%
8690
% Compose input to dotcode
91+
%
8792
/barcode dmtx length 1 add 5 mul string def
8893
/i 0 def /j 0 def {
8994
i dmtx length eq {exit} if
@@ -98,7 +103,9 @@ begin
98103
} loop
99104
/barcode barcode 0 j getinterval def
100105

106+
%
101107
% Get the result of encoding with dotcode
108+
%
102109
options (parse) undef
103110
options (dontdraw) true put
104111
options (parsefnc) true put

0 commit comments

Comments
 (0)