1
0
mirror of https://git.code.sf.net/p/zint/code synced 2026-01-09 13:05:58 +00:00

CODE128: Add minimal encodation algorithm (non-extended ASCII only)

from ZXing (props Alex Geller) - about 25-60% slower depending on
  data & stack heavy but does improve some outcomes when FNC1s
  present (GS1_MODE or manual) although not much else it appears
  (the previous algorithm was very good), but has a logical clarity
  the other lacked - funcs `c128_dxsmooth()` etc shared with
  CODE16K now moved there and renamed as `c16k_`;
  also fix extended char latching when exactly 4 extended chars
  at end
  also manual code set switching now honoured exactly even if
  immediate shift required;
manual: make explicit that AI "(00)" and "(01)" prefixes added by
  Zint are HRT-only
general: add `extern "C"` wrappers to a few header files
This commit is contained in:
gitlost
2024-09-07 12:44:16 +01:00
parent 10747d6385
commit 93c3e27fba
23 changed files with 1017 additions and 958 deletions

View File

@@ -3085,7 +3085,7 @@ or using the --gs1parens option:
[zint -b EAN14 --compliantheight -d "9889876543210"]
A shorter version of GS1-128 which encodes GTIN data only. A 13-digit number is
required. The GTIN check digit and AI (01) are added by Zint.
required. The GTIN check digit and HRT-only AI (01) are added by Zint.
6.1.10.5 NVE-18 (SSCC-18)
@@ -3094,7 +3094,7 @@ required. The GTIN check digit and AI (01) are added by Zint.
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 AI (00) are added by Zint.
Check digits and HRT-only AI (00) are added by Zint.
6.1.10.6 HIBC Code 128
@@ -3169,9 +3169,9 @@ to find out how to generate DataBar symbols with 2D components.
[zint -b DBAR_OMN --compliantheight -d "0950110153001"]
Previously known as RSS-14 this standard encodes a 13-digit item code. A check
digit and 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.)
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.)
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
@@ -3187,8 +3187,8 @@ Previously known as RSS Limited this standard encodes a 13-digit item code and
can be used in the same way as GS1 DataBar Omnidirectional above. GS1 DataBar
Limited, however, is limited to data starting with digits 0 and 1 (i.e. numbers
in the range 0 to 1999999999999). As with GS1 DataBar Omnidirectional a check
digit and Application Identifier of (01) are added by Zint, and a 14-digit code
may be given in which case the check digit will be verified.
digit and HRT-only Application Identifier of (01) are added by Zint, and a
14-digit code may be given in which case the check digit will be verified.
6.1.11.3 GS1 DataBar Expanded
@@ -4903,7 +4903,7 @@ OPTIONS
--bold
Use bold text for the Human Readable Text (HRT).
Use a bold font for the Human Readable Text (HRT).
--border=INTEGER
@@ -5227,7 +5227,7 @@ OPTIONS
--small
Use small text for Human Readable Text (HRT).
Use a smaller font for Human Readable Text (HRT).
--square
@@ -5520,7 +5520,7 @@ AIM ITS/04-023 (2022)
COPYRIGHT
Copyright © 2023 Robin Stuart. Released under GNU GPL 3.0 or later.
Copyright © 2024 Robin Stuart. Released under GNU GPL 3.0 or later.
AUTHOR