1
0
mirror of https://git.code.sf.net/p/zint/code synced 2026-05-05 05:35:38 +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:
gitlost
2026-04-21 22:02:04 +01:00
parent 8a76981200
commit 7f688b9e58
3 changed files with 0 additions and 23 deletions

View File

@@ -3650,12 +3650,6 @@ int testUtilBwipp(int index, const struct zint_symbol *symbol, int option_1, int
}
/* 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
|| symbology == BARCODE_CODABAR || symbology == BARCODE_PZN
|| symbology == BARCODE_CODE32 || symbology == BARCODE_VIN) {

View File

@@ -98,20 +98,6 @@ ret /pixs known {
pixs 0 tmppixs 0 j getinterval putinterval
} 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 {
d (|) search {
/linear exch def
@@ -163,9 +149,6 @@ ret /pixs known {
/f {} def
} 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)
/limit systemdict /elb known {
sbs length 1 add 2 idiv 2 mul 2 sub