mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-17 18:07:02 +00:00
ITF-14/EAN-14/NVE-18: allow check digit to be given and then
verified; allow and ignore prefixes "01", "[01]" and "(01)" (or "00" etc if NVE-18) if check digit given, following commit [789e04] (ticket #333)
This commit is contained in:
@@ -2828,8 +2828,10 @@ same as for [6.1.2.1 Standard Code 2 of 5].
|
||||
|
||||
ITF-14, also known as UPC Shipping Container Symbol or Case Code, is based on
|
||||
Interleaved Code 2 of 5 and is designed to encode a GTIN-14. It takes a 13-digit
|
||||
numeric input (digits 0-9), which will be prefixed with leading zeroes if less
|
||||
than 13 digits entered. One modulo-10 check digit is added by Zint.
|
||||
input, which will be prefixed with leading zeroes if less than 13 digits
|
||||
entered, or a 14-digit input if the standard GS1 check digit is given, in which
|
||||
case the check digit will be verified. A standard GS1 check digit is added by
|
||||
Zint unless already given.
|
||||
|
||||
If no border option is specified Zint defaults to adding a bounding box with a
|
||||
border width of 5. This behaviour can be overridden by using the `--bind` option
|
||||
@@ -3296,8 +3298,13 @@ zint -b 16 --gs1parens -d "(01)98898765432106(3202)012345(15)991231"
|
||||
|
||||
{.lin}
|
||||
|
||||
A shorter version of GS1-128 which encodes GTIN data only. A 13-digit number is
|
||||
required. The GTIN check digit and HRT-only AI `"(01)"` are added by Zint.
|
||||
A shorter version of GS1-128 which encodes GTIN-14 data only, EAN-14 takes a
|
||||
13-digit input, which will be prefixed with leading zeroes if less than 13
|
||||
digits entered, or a 14-digit number if the standard GS1 check digit is given,
|
||||
in which case the check digit will be verified. The GS1 check digit (if not
|
||||
given) and HRT-only AI `"(01)"` are added by Zint.
|
||||
|
||||
\clearpage
|
||||
|
||||
#### 6.1.10.5 NVE-18 (SSCC-18)
|
||||
|
||||
@@ -3305,9 +3312,11 @@ required. The GTIN check digit and HRT-only AI `"(01)"` are added by Zint.
|
||||
"37612345000001003"`](images/nve18.svg){.lin}
|
||||
|
||||
A variation of Code 128 the 'Nummer der Versandeinheit' standard, also known as
|
||||
SSCC-18 (Serial Shipping Container Code), includes both a visible modulo-10 and
|
||||
a hidden modulo-103 check digit. NVE-18 requires a 17-digit numerical input.
|
||||
Check digits and HRT-only AI `"(00)"` are added by Zint.
|
||||
SSCC-18 (Serial Shipping Container Code), includes both a visible standard GS1
|
||||
check digit and a hidden modulo-103 check digit. NVE-18 takes a 17-digit input,
|
||||
which will be prefixed with leading zeros if less than 17 digits given, or an
|
||||
18-digit input if the GS1 check digit is included, in which case the check digit
|
||||
will be verified. Check digit(s) and HRT-only AI `"(00)"` are added by Zint.
|
||||
|
||||
#### 6.1.10.6 HIBC Code 128
|
||||
|
||||
@@ -3388,8 +3397,8 @@ GS1 DataBar symbol is to be printed with a 2D component as specified in ISO/IEC
|
||||
|
||||
Previously known as RSS-14 this standard encodes a 13-digit item code. A check
|
||||
digit and HRT-only Application Identifier of `"(01)"` are added by Zint. (A
|
||||
14-digit code that appends the check digit may be given, in which case the check
|
||||
digit will be verified.)
|
||||
14-digit code that appends the standard GS1 check digit may be given, in which
|
||||
case the check digit will be verified.)
|
||||
|
||||
GS1 DataBar Omnidirectional symbols should have a height of 33 or greater. To
|
||||
produce a GS1 DataBar Truncated symbol set the symbol height to a value between
|
||||
@@ -3423,10 +3432,10 @@ the symbol. This method allows the inclusion of parentheses in the data to be
|
||||
encoded. If the data does not include parentheses, the AIs may alternatively be
|
||||
encased in parentheses using the `--gs1parens` switch. See [6.1.10.3 GS1-128].
|
||||
|
||||
GTIN data AI (01) should also include the check digit data as this is not
|
||||
calculated by Zint when this symbology is encoded. Fixed length data should be
|
||||
entered at the appropriate length for correct encoding. The following is an
|
||||
example of a valid GS1 DataBar Expanded input:
|
||||
GTIN data AI (01) should also include the standard GS1 check digit data as this
|
||||
is not calculated by Zint when this symbology is encoded. Fixed length data
|
||||
should be entered at the appropriate length for correct encoding. The following
|
||||
is an example of a valid GS1 DataBar Expanded input:
|
||||
|
||||
```bash
|
||||
zint -b 31 -d "[01]98898765432106[3202]012345[15]991231"
|
||||
|
||||
Reference in New Issue
Block a user