mirror of
https://git.code.sf.net/p/zint/code
synced 2026-06-09 23:23:36 +00:00
BWIPP: update to latest, undo DBAR_LTD_CC RHS hack ([7b0767]);
`bs` (begin space) hack no longer needed either
This commit is contained in:
@@ -3650,12 +3650,6 @@ int testUtilBwipp(int index, const struct zint_symbol *symbol, int option_1, int
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Hack in various adjustments */
|
/* Hack in various adjustments */
|
||||||
if (symbology == BARCODE_DBAR_OMN || symbology == BARCODE_DBAR_LTD || symbology == BARCODE_DBAR_EXP) {
|
|
||||||
/* Begin with space */
|
|
||||||
char adj[] = " -sbs";
|
|
||||||
memmove(cmd + GS_INITIAL_LEN + sizeof(adj) - 1, cmd + GS_INITIAL_LEN, strlen(cmd) + 1 - GS_INITIAL_LEN);
|
|
||||||
memcpy(cmd + GS_INITIAL_LEN, adj, sizeof(adj) - 1);
|
|
||||||
}
|
|
||||||
if (symbology == BARCODE_CODE11 || symbology == BARCODE_CODE39 || symbology == BARCODE_EXCODE39
|
if (symbology == BARCODE_CODE11 || symbology == BARCODE_CODE39 || symbology == BARCODE_EXCODE39
|
||||||
|| symbology == BARCODE_CODABAR || symbology == BARCODE_PZN
|
|| symbology == BARCODE_CODABAR || symbology == BARCODE_PZN
|
||||||
|| symbology == BARCODE_CODE32 || symbology == BARCODE_VIN) {
|
|| symbology == BARCODE_CODE32 || symbology == BARCODE_VIN) {
|
||||||
|
|||||||
@@ -98,20 +98,6 @@ ret /pixs known {
|
|||||||
pixs 0 tmppixs 0 j getinterval putinterval
|
pixs 0 tmppixs 0 j getinterval putinterval
|
||||||
} if
|
} if
|
||||||
|
|
||||||
b (databarlimitedcomposite) eq {
|
|
||||||
% Add RHS 5-space quiet zone
|
|
||||||
/cpypixs pixs length array def
|
|
||||||
cpypixs 0 pixs 0 pixs length getinterval putinterval
|
|
||||||
/pixw pixs length pixx idiv def
|
|
||||||
/pixs [
|
|
||||||
0 pixx cpypixs length 1 sub {
|
|
||||||
/i exch def
|
|
||||||
cpypixs i pixx getinterval aload pop 0 0 0 0 0
|
|
||||||
} for
|
|
||||||
] def
|
|
||||||
/pixx pixx 5 add def
|
|
||||||
} if
|
|
||||||
|
|
||||||
b (ean13composite) eq b (ean8composite) eq or b (upcacomposite) eq or b (upcecomposite) eq or {
|
b (ean13composite) eq b (ean8composite) eq or b (upcacomposite) eq or b (upcecomposite) eq or {
|
||||||
d (|) search {
|
d (|) search {
|
||||||
/linear exch def
|
/linear exch def
|
||||||
@@ -163,9 +149,6 @@ ret /pixs known {
|
|||||||
/f {} def
|
/f {} def
|
||||||
} ifelse
|
} ifelse
|
||||||
|
|
||||||
% If should begin with space
|
|
||||||
systemdict /bs known { (0) print } if
|
|
||||||
|
|
||||||
% If should end sbs loop on bar (i.e. ignore last index of even-length sbs)
|
% If should end sbs loop on bar (i.e. ignore last index of even-length sbs)
|
||||||
/limit systemdict /elb known {
|
/limit systemdict /elb known {
|
||||||
sbs length 1 add 2 idiv 2 mul 2 sub
|
sbs length 1 add 2 idiv 2 mul 2 sub
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user