upcean: BARCODE_RAW_TEST: need "+" separator for add-ons, else can't

differentiate between EAN-13 and EAN-8 + EAN-5
cli: append "Ital. Pharma" to Code 32 description
dxfilmedge: code fiddle
This commit is contained in:
gitlost 2025-02-20 22:57:54 +00:00
parent 8e7931b147
commit c499620ff6
10 changed files with 243 additions and 185 deletions

View file

@ -757,7 +757,6 @@ INTERNAL int eanx_cc(struct zint_symbol *symbol, unsigned char source[], int len
int error_number = 0, i, plus_count;
int addon_gap = 0;
int first_part_len, second_part_len;
const int raw_text = symbol->output_options & BARCODE_RAW_TEXT;
if (length > 19) {
return errtxtf(ZINT_ERROR_TOO_LONG, symbol, 283, "Input length %d too long (maximum 19)", length);
@ -941,9 +940,7 @@ INTERNAL int eanx_cc(struct zint_symbol *symbol, unsigned char source[], int len
if (second_part_len) {
ean_add_on(second_part, second_part_len, dest, addon_gap);
if (!raw_text) {
hrt_cat_chr_nochk(symbol, '+');
}
hrt_cat_chr_nochk(symbol, '+');
hrt_cat_nochk(symbol, second_part, second_part_len);
}