mirror of
https://git.code.sf.net/p/zint/code
synced 2026-06-10 15:43:40 +00:00
CLI: add "Telepen Alpha", "Telepen Numeric" synonyms
TELEPEN/TELEPEN_NUM: ZINT_DEBUG_PRINT binary string BWIPP: latest test suite: allow for further reduced BWIPP DotCode max len
This commit is contained in:
+8
-4
@@ -227,12 +227,14 @@ INTERNAL int zint_telepen(struct zint_symbol *symbol, unsigned char source[], in
|
||||
memcpy(d, TeleTable[check_digit], TeleLens[check_digit]);
|
||||
d += TeleLens[check_digit];
|
||||
|
||||
if (symbol->debug & ZINT_DEBUG_PRINT) printf("Check digit: %d\n", check_digit);
|
||||
|
||||
/* Stop character */
|
||||
memcpy(d, TeleTable[asc_comp_num ? 0x83 : 0x7A], 12);
|
||||
d += 12;
|
||||
|
||||
if (symbol->debug & ZINT_DEBUG_PRINT) {
|
||||
printf("Check digit: %d\nBinary (%d): %.*s\n", check_digit, (int) (d - dest), (int) (d - dest), dest);
|
||||
}
|
||||
|
||||
z_expand(symbol, dest, (int) (d - dest));
|
||||
|
||||
error_number = tele_set_height(symbol, asc_length, num_length, have_dle);
|
||||
@@ -343,12 +345,14 @@ INTERNAL int zint_telepen_num(struct zint_symbol *symbol, unsigned char source[]
|
||||
memcpy(d, TeleTable[check_digit], TeleLens[check_digit]);
|
||||
d += TeleLens[check_digit];
|
||||
|
||||
if (symbol->debug & ZINT_DEBUG_PRINT) printf("Check digit: %d\n", check_digit);
|
||||
|
||||
/* Stop character */
|
||||
memcpy(d, TeleTable[comp_num_asc ? 0x81 : 0x7A], 12);
|
||||
d += 12;
|
||||
|
||||
if (symbol->debug & ZINT_DEBUG_PRINT) {
|
||||
printf("Check digit: %d\nBinary (%d): %.*s\n", check_digit, (int) (d - dest), (int) (d - dest), dest);
|
||||
}
|
||||
|
||||
z_expand(symbol, dest, (int) (d - dest));
|
||||
|
||||
error_number = tele_set_height(symbol, length - num_length /*asc_length*/, num_length, have_dle);
|
||||
|
||||
Reference in New Issue
Block a user