mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-23 21:07:05 +00:00
- Add new symbologies BARCODE_EAN8, BARCODE_EAN_2ADDON,
`BARCODE_EAN_5ADDON`, `BARCODE_EAN13`, `BARCODE_EAN8_CC` and `BARCODE_EAN13_CC` as replacements for `BARCODE_EANX`, `BARCODE_EANX_CHK` and `BARCODE_EANX_CC` and use in CLI/GUI (`BARCODE_EANX` etc. marked as legacy) - For EAN/UPC accept space as alternative add-on separator to '+', and accept GTIN-13 format with & without 2-digit or 5-digit add-on (no separator) - Buffer length of member `errtxt` in `zint_symbol` extended 100 -> 160 (will be sufficient for eventual translation and gs1-syntax-dictionary errors hopefully) - UPC-E: warn if first digit of 7 (or 8 if check digit given) not '0' or '1' - manual: update for new EAN symbologies and mention EANX now legacy but still supported
This commit is contained in:
@@ -182,6 +182,8 @@
|
||||
- MSVC: suppress warning 4996 (_CRT_SECURE_NO_WARNINGS)
|
||||
2025-02-15 GL
|
||||
- strcpy() -> memcpy(); sizeof(primary); tabs -> spaces
|
||||
2025-04-16 GL
|
||||
- Added: EAN8, EAN_2ADDON, EAN_5ADDON, EAN13, EAN8_CC, EAN13_CC, DMFILMEDGE
|
||||
*/
|
||||
|
||||
#if defined(__WIN32__) || defined(_WIN32) || defined(WIN32)
|
||||
@@ -269,8 +271,12 @@ static const char *s_code_list[] = {
|
||||
"Ind2of5",
|
||||
"Code39",
|
||||
"Code39Extended",
|
||||
"EAN8",
|
||||
"EAN-2AddOn",
|
||||
"EAN-5AddOn",
|
||||
"EAN",
|
||||
"EAN+Check",
|
||||
"EAN13",
|
||||
"GS1-128",
|
||||
"Codabar",
|
||||
"Code128",
|
||||
@@ -361,6 +367,9 @@ static const char *s_code_list[] = {
|
||||
"UltraCode",
|
||||
"rMQR",
|
||||
"BC412",
|
||||
"DMFilmEdge",
|
||||
"EAN8-CC",
|
||||
"EAN13-CC",
|
||||
NULL};
|
||||
|
||||
static const int s_code_number[] = {
|
||||
@@ -372,8 +381,12 @@ static const int s_code_number[] = {
|
||||
BARCODE_C25IND,
|
||||
BARCODE_CODE39,
|
||||
BARCODE_EXCODE39,
|
||||
BARCODE_EAN8,
|
||||
BARCODE_EAN_2ADDON,
|
||||
BARCODE_EAN_5ADDON,
|
||||
BARCODE_EANX,
|
||||
BARCODE_EANX_CHK,
|
||||
BARCODE_EAN13,
|
||||
BARCODE_GS1_128,
|
||||
BARCODE_CODABAR,
|
||||
BARCODE_CODE128,
|
||||
@@ -464,6 +477,9 @@ static const int s_code_number[] = {
|
||||
BARCODE_ULTRA,
|
||||
BARCODE_RMQR,
|
||||
BARCODE_BC412,
|
||||
BARCODE_DXFILMEDGE,
|
||||
BARCODE_EAN8_CC,
|
||||
BARCODE_EAN13_CC,
|
||||
0};
|
||||
|
||||
/* ECI TCL encoding names.
|
||||
|
||||
Reference in New Issue
Block a user