Skip to content

Commit 187ee79

Browse files
committed
databarstackedcomposite: Uplift
1 parent 83d8e9e commit 187ee79

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

src/databarstackedcomposite.ps.src

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ dup /gs1-cc dup /uk.co.terryburton.bwipp findresource put
4646
dup /gs1process dup /uk.co.terryburton.bwipp findresource put
4747
dup /renmatrix dup /uk.co.terryburton.bwipp findresource put
4848
begin
49+
50+
/databarstackedcomposite.seppad [ 0 0 0 0 ] readonly def
51+
/databarstackedcomposite.findersep [ 0 0 0 0 0 0 0 0 0 0 1 0 0 ] readonly def
52+
/databarstackedcomposite.f3pat [ 1 1 1 1 1 1 1 1 1 0 1 1 1 ] readonly def
53+
4954
/databarstackedcomposite {
5055

5156
20 dict begin
@@ -115,15 +120,14 @@ begin
115120
} ifelse
116121
sep exch i exch put
117122
} for
118-
/f3 [1 1 1 1 1 1 1 1 1 0 1 1 1] def
119-
true 0 1 12 {dup bot exch fp add get exch f3 exch get eq and} for {
123+
true 0 1 12 {dup bot exch fp add get exch //databarstackedcomposite.f3pat exch get eq and} for {
120124
% Right shifted module for value 3 finder
121-
sep fp [ 0 0 0 0 0 0 0 0 0 0 1 0 0 ] putinterval
125+
sep fp //databarstackedcomposite.findersep putinterval
122126
} if
123127
} def
124128
/sep [ bot {1 exch sub} forall ] def
125-
sep 0 [ 0 0 0 0 ] putinterval
126-
sep sep length 4 sub [ 0 0 0 0 ] putinterval
129+
sep 0 //databarstackedcomposite.seppad putinterval
130+
sep sep length 4 sub //databarstackedcomposite.seppad putinterval
127131
18 sepfinder
128132

129133
usematrix not {

0 commit comments

Comments
 (0)