- API/CLI/Tcl/GUI: new output option BARCODE_BIND_TOP/--bindtop/

`-bindtop`/"Bind Top"
- DPD: add top boundary (width 3X) by default, using new
  BARCODE_BIND_TOP; "relabel" option; some compliance checks
- GUI: only skip encoded/errored signal processing if active modal
  ExportDialog (wasn't clearing/setting error text bar correctly
  for DataDialog)
- CODE128: debug print checksum
- CODE49/DATAMATRIX/QR/ULTRA: fix uniqueness of errtxt nos
- manual: fuller DPD doc; some spelling typos, formatting
This commit is contained in:
gitlost 2022-11-10 22:13:41 +00:00
parent e515f63fab
commit 2f8681b21a
44 changed files with 3643 additions and 2465 deletions

View file

@ -1565,7 +1565,7 @@ static int qr_prep_data(struct zint_symbol *symbol, struct zint_seg segs[], cons
return error_number;
}
if (segs[i].eci != 20) {
strcpy(symbol->errtxt, "543: Converted to Shift JIS but no ECI specified");
strcpy(symbol->errtxt, "760: Converted to Shift JIS but no ECI specified");
warn_number = ZINT_WARN_NONCOMPLIANT;
}
}
@ -2598,11 +2598,11 @@ INTERNAL int microqr(struct zint_symbol *symbol, unsigned char source[], int len
/* Get version from user */
if ((symbol->option_2 >= 1) && (symbol->option_2 <= 4)) {
if (symbol->option_2 == 1 && !is_sane(NEON_F, source, length)) {
strcpy(symbol->errtxt, "775: Invalid character in data for Version M1 (digits only)");
strcpy(symbol->errtxt, "758: Invalid character in data for Version M1 (digits only)");
return ZINT_ERROR_INVALID_DATA;
} else if (symbol->option_2 == 2 && !is_sane(QR_ALPHA, source, length)) {
strcpy(symbol->errtxt,
"776: Invalid character in data for Version M2 (digits, A-Z, space and \"$%*+-./:\" only)");
"759: Invalid character in data for Version M2 (digits, A-Z, space and \"$%*+-./:\" only)");
return ZINT_ERROR_INVALID_DATA;
}
if (symbol->option_2 - 1 >= autoversion) {