mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-27 13:34:19 -04:00
- Add new symbology BARCODE_UPU_S10
- PZN: allow check digit to be given; add space after hyphen in HRT; PZN7 option - backend_qt: add `encodedHeight()` read-only
This commit is contained in:
parent
25dacb2949
commit
53769c6ed1
35 changed files with 1314 additions and 852 deletions
|
@ -87,6 +87,7 @@ IMAGES = \
|
|||
images/nve18.svg \
|
||||
images/hibc_128.svg \
|
||||
images/dpd.svg \
|
||||
images/upu_s10.svg \
|
||||
images/dbar_omn.svg \
|
||||
images/dbar_truncated.svg \
|
||||
images/dbar_ltd.svg \
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
<rect x="676.80" y="0.00" width="4.80" height="192.00" />
|
||||
<text x="340.80" y="228.96" text-anchor="middle"
|
||||
font-family="Helvetica, sans-serif" font-size="33.6" >
|
||||
PZN -27580899
|
||||
PZN - 27580899
|
||||
</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 4 KiB After Width: | Height: | Size: 4 KiB |
59
docs/images/upu_s10.svg
Normal file
59
docs/images/upu_s10.svg
Normal file
|
@ -0,0 +1,59 @@
|
|||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="749" height="286" version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
<desc>Zint Generated Symbol
|
||||
</desc>
|
||||
|
||||
<g id="barcode" fill="#000000">
|
||||
<rect x="0" y="0" width="749" height="286" fill="#FFFFFF" />
|
||||
<rect x="0.00" y="0.00" width="9.60" height="240.00" />
|
||||
<rect x="14.40" y="0.00" width="4.80" height="240.00" />
|
||||
<rect x="28.80" y="0.00" width="4.80" height="240.00" />
|
||||
<rect x="52.80" y="0.00" width="4.80" height="240.00" />
|
||||
<rect x="72.00" y="0.00" width="9.60" height="240.00" />
|
||||
<rect x="86.40" y="0.00" width="4.80" height="240.00" />
|
||||
<rect x="105.60" y="0.00" width="4.80" height="240.00" />
|
||||
<rect x="124.80" y="0.00" width="9.60" height="240.00" />
|
||||
<rect x="139.20" y="0.00" width="4.80" height="240.00" />
|
||||
<rect x="158.40" y="0.00" width="14.40" height="240.00" />
|
||||
<rect x="177.60" y="0.00" width="4.80" height="240.00" />
|
||||
<rect x="192.00" y="0.00" width="9.60" height="240.00" />
|
||||
<rect x="211.20" y="0.00" width="4.80" height="240.00" />
|
||||
<rect x="220.80" y="0.00" width="14.40" height="240.00" />
|
||||
<rect x="240.00" y="0.00" width="19.20" height="240.00" />
|
||||
<rect x="264.00" y="0.00" width="9.60" height="240.00" />
|
||||
<rect x="283.20" y="0.00" width="4.80" height="240.00" />
|
||||
<rect x="292.80" y="0.00" width="4.80" height="240.00" />
|
||||
<rect x="316.80" y="0.00" width="14.40" height="240.00" />
|
||||
<rect x="336.00" y="0.00" width="4.80" height="240.00" />
|
||||
<rect x="345.60" y="0.00" width="9.60" height="240.00" />
|
||||
<rect x="369.60" y="0.00" width="9.60" height="240.00" />
|
||||
<rect x="393.60" y="0.00" width="9.60" height="240.00" />
|
||||
<rect x="408.00" y="0.00" width="9.60" height="240.00" />
|
||||
<rect x="422.40" y="0.00" width="4.80" height="240.00" />
|
||||
<rect x="436.80" y="0.00" width="14.40" height="240.00" />
|
||||
<rect x="456.00" y="0.00" width="9.60" height="240.00" />
|
||||
<rect x="475.20" y="0.00" width="4.80" height="240.00" />
|
||||
<rect x="484.80" y="0.00" width="19.20" height="240.00" />
|
||||
<rect x="508.80" y="0.00" width="14.40" height="240.00" />
|
||||
<rect x="528.00" y="0.00" width="4.80" height="240.00" />
|
||||
<rect x="547.20" y="0.00" width="4.80" height="240.00" />
|
||||
<rect x="566.40" y="0.00" width="9.60" height="240.00" />
|
||||
<rect x="580.80" y="0.00" width="4.80" height="240.00" />
|
||||
<rect x="590.40" y="0.00" width="4.80" height="240.00" />
|
||||
<rect x="609.60" y="0.00" width="9.60" height="240.00" />
|
||||
<rect x="633.60" y="0.00" width="14.40" height="240.00" />
|
||||
<rect x="662.40" y="0.00" width="4.80" height="240.00" />
|
||||
<rect x="672.00" y="0.00" width="9.60" height="240.00" />
|
||||
<rect x="686.40" y="0.00" width="9.60" height="240.00" />
|
||||
<rect x="710.40" y="0.00" width="14.40" height="240.00" />
|
||||
<rect x="729.60" y="0.00" width="4.80" height="240.00" />
|
||||
<rect x="739.20" y="0.00" width="9.60" height="240.00" />
|
||||
<text x="374.40" y="276.96" text-anchor="middle"
|
||||
font-family="Helvetica, sans-serif" font-size="33.6" >
|
||||
EE 876 543 216 CA
|
||||
</text>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 3.2 KiB |
|
@ -2699,7 +2699,13 @@ shown in the Human Readable Text, but may be shown by setting `--vers=1` (API
|
|||

|
||||
|
||||
PZN is a Code 39 based symbology used by the pharmaceutical industry in Germany.
|
||||
PZN encodes a 7-digit number to which Zint will add a modulo-11 check digit.
|
||||
PZN encodes a 7-digit number to which Zint will add a modulo-11 check digit
|
||||
(PZN8). Input less than 7 digits will be zero-filled. An 8-digit input can be
|
||||
supplied in which case Zint will validate the check digit.
|
||||
|
||||
To encode a PZN7 (obsolete since 2013) instead set `--vers=1` (API
|
||||
`option_2 = 1`) and supply up to 7 digits. As with PZN8, a modulo-11 check digit
|
||||
will be added or if 7 digits supplied the check digit validated.
|
||||
|
||||
#### 6.1.7.5 LOGMARS
|
||||
|
||||
|
@ -2880,6 +2886,19 @@ A DPD Code can be marked as a "relabel" by specifying `--vers=1` (API
|
|||
`option_2 = 1`), which omits the identification tag and prints the barcode at
|
||||
half height. In this case, an input of 27 alphanumeric characters is required.
|
||||
|
||||
#### 6.1.10.8 UPU S10
|
||||
|
||||

|
||||
|
||||
The Universal Postal Union S10 variant of Code 128 encodes 13 characters in the
|
||||
format `"SSNNNNNNNNXCC"`, where `"SS"` is a two-character alphabetic service
|
||||
indicator, `"NNNNNNNN"` is an 8-digit serial number, `"X"` is a modulo-11 check
|
||||
digit, and `"CC"` is a two-character ISO 3166-1 country code.
|
||||
|
||||
The check digit may be omitted in which case Zint will add it. Warnings will be
|
||||
generated if the service indicator is non-standard or the country code is not
|
||||
ISO 3361-1.
|
||||
|
||||
### 6.1.11 GS1 DataBar (ISO 24724)
|
||||
|
||||
Previously known as RSS (Reduced Spaced Symbology), these symbols are due to
|
||||
|
|
|
@ -112,6 +112,7 @@ December 2022
|
|||
- 6.1.10.5 NVE-18 (SSCC-18)
|
||||
- 6.1.10.6 HIBC Code 128
|
||||
- 6.1.10.7 DPD Code
|
||||
- 6.1.10.8 UPU S10
|
||||
- 6.1.11 GS1 DataBar (ISO 24724)
|
||||
- 6.1.11.1 GS1 DataBar Omnidirectional and GS1 DataBar Truncated
|
||||
- 6.1.11.2 GS1 DataBar Limited
|
||||
|
@ -2652,7 +2653,13 @@ option_2 = 1).
|
|||
[zint -b PZN --compliantheight -d "2758089"]
|
||||
|
||||
PZN is a Code 39 based symbology used by the pharmaceutical industry in Germany.
|
||||
PZN encodes a 7-digit number to which Zint will add a modulo-11 check digit.
|
||||
PZN encodes a 7-digit number to which Zint will add a modulo-11 check digit
|
||||
(PZN8). Input less than 7 digits will be zero-filled. An 8-digit input can be
|
||||
supplied in which case Zint will validate the check digit.
|
||||
|
||||
To encode a PZN7 (obsolete since 2013) instead set --vers=1 (API option_2 = 1)
|
||||
and supply up to 7 digits. As with PZN8, a modulo-11 check digit will be added
|
||||
or if 7 digits supplied the check digit validated.
|
||||
|
||||
6.1.7.5 LOGMARS
|
||||
|
||||
|
@ -2820,6 +2827,19 @@ A DPD Code can be marked as a “relabel” by specifying --vers=1 (API
|
|||
option_2 = 1), which omits the identification tag and prints the barcode at half
|
||||
height. In this case, an input of 27 alphanumeric characters is required.
|
||||
|
||||
6.1.10.8 UPU S10
|
||||
|
||||
[zint -b UPU_S10 --compliantheight -d "EE876543216CA"]
|
||||
|
||||
The Universal Postal Union S10 variant of Code 128 encodes 13 characters in the
|
||||
format "SSNNNNNNNNXCC", where "SS" is a two-character alphabetic service
|
||||
indicator, "NNNNNNNN" is an 8-digit serial number, "X" is a modulo-11 check
|
||||
digit, and "CC" is a two-character ISO 3166-1 country code.
|
||||
|
||||
The check digit may be omitted in which case Zint will add it. Warnings will be
|
||||
generated if the service indicator is non-standard or the country code is not
|
||||
ISO 3361-1.
|
||||
|
||||
6.1.11 GS1 DataBar (ISO 24724)
|
||||
|
||||
Previously known as RSS (Reduced Spaced Symbology), these symbols are due to
|
||||
|
@ -4745,6 +4765,7 @@ OPTIONS
|
|||
Channel Code 3 to 8 (no. of channels)
|
||||
DAFT 50 to 900 (permille tracker ratio)
|
||||
DPD 1 (relabel)
|
||||
PZN 1 (PZN7 instead of default PZN8)
|
||||
Ultracode 2 (revision 2)
|
||||
VIN 1 (add international prefix)
|
||||
|
||||
|
|
|
@ -487,6 +487,7 @@ For a few other symbologies, it specifies other characteristics:
|
|||
Channel Code 3 to 8 (no. of channels)
|
||||
DAFT 50 to 900 (permille tracker ratio)
|
||||
DPD 1 (relabel)
|
||||
PZN 1 (PZN7 instead of default PZN8)
|
||||
Ultracode 2 (revision 2)
|
||||
VIN 1 (add international prefix)
|
||||
\f[R]
|
||||
|
|
|
@ -385,6 +385,7 @@ Paintbrush (`PCX`), Portable Network Format (`PNG`), Scalable Vector Graphic (`S
|
|||
Channel Code 3 to 8 (no. of channels)
|
||||
DAFT 50 to 900 (permille tracker ratio)
|
||||
DPD 1 (relabel)
|
||||
PZN 1 (PZN7 instead of default PZN8)
|
||||
Ultracode 2 (revision 2)
|
||||
VIN 1 (add international prefix)
|
||||
|
||||
|
|
|
@ -72,6 +72,7 @@ zint -b EAN14 --compliantheight -d "9889876543210" --scale=$SCALE_LINEAR -o imag
|
|||
zint -b NVE18 --compliantheight -d "37612345000001003" --scale=$SCALE_LINEAR -o images/nve18.svg
|
||||
zint -b HIBC_128 -d "A123BJC5D6E71" --scale=$SCALE_LINEAR -o images/hibc_128.svg
|
||||
zint -b DPD --compliantheight -d "000393206219912345678101040" --scale=$SCALE_LINEAR -o images/dpd.svg
|
||||
zint -b UPU_S10 --compliantheight -d "EE876543216CA" --scale=$SCALE_LINEAR -o images/upu_s10.svg
|
||||
zint -b DBAR_OMN --compliantheight -d "0950110153001" --scale=$SCALE_LINEAR -o images/dbar_omn.svg
|
||||
zint -b DBAR_OMN -d "0950110153001" --height=13 --scale=$SCALE_LINEAR -o images/dbar_truncated.svg
|
||||
zint -b DBAR_LTD --compliantheight -d "0950110153001" --scale=$SCALE_LINEAR -o images/dbar_ltd.svg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue