1
0
mirror of https://git.code.sf.net/p/zint/code synced 2025-12-17 09:57:02 +00:00
Commit Graph

1820 Commits

Author SHA1 Message Date
gitlost
40379fb093 CI: Windows: fix ${} syntax 2025-09-17 01:04:02 +01:00
gitlost
9b9142adaf CI: Windows: try GS1 Syntax Engine install again 2025-09-17 01:01:18 +01:00
gitlost
1321571f46 CI: Windows: try non-relative XXX_ROOTs 2025-09-17 00:40:52 +01:00
gitlost
35e35b6aa5 CI: Windows: don'try GS1 Syntax Engine install 2025-09-16 23:50:56 +01:00
gitlost
826bf11bb7 CI: Windows: try GS1 Syntax Engine install 2025-09-16 23:27:36 +01:00
gitlost
1d44330ea9 CI: Windows: specify WIN32 for zlib/libpng 2025-09-16 22:33:45 +01:00
gitlost
b4633af6e1 CI: Windows: try using libpng 2025-09-16 22:22:45 +01:00
gitlost
fa8800f094 CI: Windows: try slashes 2025-09-16 22:11:27 +01:00
gitlost
f30a58c6f6 CI: Windows: try ZLIB_ROOT 2025-09-16 22:05:54 +01:00
gitlost
e5d9aa7cb6 CI: Windows: try installing libpng 2025-09-16 21:49:39 +01:00
gitlost
39915dbb3f CI: Windows: wot's in build? 2025-09-16 21:30:25 +01:00
gitlost
3cea9c502f CI: Windows: leave out zconf.h mv 2025-09-16 20:47:13 +01:00
gitlost
1f9df62afd CI: Windows: separate cmds 2025-09-16 20:40:07 +01:00
gitlost
9c67499033 CI: Windows: try zlib again 2025-09-16 20:30:45 +01:00
gitlost
5cb193dce5 CI: Windows: leave for now 2025-09-16 11:41:54 +01:00
gitlost
55e89ae01f CI: Windows: try installing zlib 2025-09-16 11:04:36 +01:00
gitlost
5138d0703c CLI: --gs1XXX args now imply `--gs1
GUI: fix chkGS1Strict enabling on startup regression from previous
  commit; update CLI equivalence with --gs1strict & adjust for
  implied --gs1; add tests
CMake: allow lpng/zlib and gs1encoders to take paths (for Windows)
win32/README: simplify locating lpng/zlib/gs1encoders for cmake
  using above; add note on 64-bit build
manual/man page: adjust for various above changes
2025-09-16 10:10:30 +01:00
gitlost
e4e6143d87 GS1 Syntax Engine: update Windows README and various project files
to get working using nmake "makefile.vcwin32", added to fork at
  https://github.com/gitlost/gs1-syntax-engine;
  small updates to Linux, macOS READMEs
GUI: change "chkGS1Strict" to be hidden instead of manually adding
pandoc: latest version
2025-09-16 02:19:50 +01:00
gitlost
008dff4aec Suppress gcc-15 warning -Wunterminated-string-initialization
ci: macOS: try GS1 Syntax Engine agin
2025-09-12 22:49:28 +01:00
gitlost
7bccfc4915 github: macos: forget it 2025-09-12 05:17:14 +01:00
gitlost
95be8d1ae9 github ci: macos: try hack around ldconfig not found 2025-09-12 05:15:09 +01:00
gitlost
fdbd728867 github ci: macos: try installing GS1 Syntax Engine 2025-09-12 04:58:32 +01:00
gitlost
fd6948db8f github ci: ubuntu: try installing GS1 Syntax Engine 2025-09-12 04:48:54 +01:00
gitlost
e340a60adb And in tests cmake 2025-09-12 04:40:03 +01:00
gitlost
2084b33d5e cmake: fix GS1SE NOTFOUND test 2025-09-12 04:32:52 +01:00
gitlost
0650d5798e Integrate GS1 Syntax Engine 2025-09-12 04:20:55 +01:00
gitlost
ad95d8f2b0 general: fix some typos using https://github.com/crate-ci/typos
(see gs1-syntax-engine PR #15, props Viktor Szépe)
2025-09-07 17:40:43 +01:00
gitlost
9b4d097516 RAW_TEXT: change source to be unconverted, i.e. UTF-8 (unless
`DATA_MODE`); allows ZXing-C++ to be built in writer-only mode
  without needing "libzueci"
library: in GS1 mode check that ECI if any is ASCII compatible
general: some code fiddling, `mode` -> `modes`
2025-09-05 17:23:18 +01:00
gitlost
44e2099a65 library: use "filemem" for TXT dump_plot() -> txt_hex_plot()
filemem: remove NOLINTS (clang-tidy-20 bug fixed)
QRCODE: eliminate NOLINTs using some more asserts (clang-tidy-20);
  some "de-branching" of loops
general: various code fiddlings, in particular lessen no. of
  redundant parenthesized expressions, especially in conditionals,
  which reduce rather than aid readibility IMNSHO
manual: mention "--dump" option
2025-08-28 20:34:56 +01:00
gitlost
36364b4912 Tcl: run "autoconfig" and "./configure" after committing PR #9
"changes to build for non-standard Tcl/TkF", props Oleh Oliinyk
2025-08-27 00:25:36 +01:00
ooa64
5699dae022 backend_tcl: add tcl 9.0 compatibility define (CONST) 2025-08-27 00:22:34 +01:00
ooa64
be10559208 backend_tcl: configure tk 2025-08-27 00:22:34 +01:00
gitlost
39380d6767 general: prefix all INTERNAL funcs/tables with zint_, except
those in "backend/common.h", which are prefixed by `z_` - makes
  symbol clashes more unlikely when zint is statically linked
  (ticket #337, props Ulrich Becker)
DOTCODE: fix padding allowance (10 -> 52 - probable max 35) to
  cover cases with large no. of columns requested and little data,
  to prevent `codeword_array` buffer overflow
AZTEC/CODEONE: some code fiddling
general_field: prefix defines with `GF_`, shorten static funcs
  prefix `general_field_` -> `gf_`
2025-08-26 23:48:00 +01:00
gitlost
e18b047a45 gs1: update to latest gs1-syntax-dictionary (key -> gcppos1,
keyoff1 -> gcppos2)
2025-06-05 13:48:50 +01:00
gitlost
766fbd98bb gs1: update to latest gs1-syntax-dictionary (keyoff1 for 8006/8026) 2025-05-31 15:21:27 +01:00
gitlost
18096a25a7 AZTEC/PDF417: stripf ecc feedback (was getting 32-bit difference)
test suite: test for `arc4random_uniform()` before including
  "test_bwipp" & "test_random" in build
github/ci: try enabling Qt test for ubuntu
2025-05-24 02:51:18 +01:00
gitlost
578d3e4df9 iso4217: add 396 (XAD) ISO 4217 AMENDMENT NUMBER 179 2025-05-19 14:35:40 +01:00
gitlost
effb13cab8 DBAR_OMN/LTD: replace unnecessary large_uint with uint64_t
DBAR_OMN/LTD/EXP: add helpers `dbar_xxx_group()` to calc groups;
  `dbar_widths()` -> dbar_getWidths()` & make `noNarrow` boolean;
  new helper `dbar_widths()` interleaves;
  various other refactorings, fiddlings etc.
DBAR_EXP: `dbar_date()` -> `dbar_exp_date()`
upcean: make `cc_rows` const
2025-04-28 16:18:13 +01:00
gitlost
fcb3f9b422 GS1PARENS_MODE: allow parentheses in AI data if backslashed and
in `ESCAPE_MODE`
composite: empty primary now returns `ZINT_ERROR_INVALID_DATA`
  rather than `ZINT_ERROR_INVALID_OPTION`;
  check that primary NUL-terminated
library: check that `outfile` NUL-terminated
gs1: preface all routines and linters with "gs1_"
general: some code fiddling
2025-04-24 18:40:50 +01:00
gitlost
51ebca182c Re commit [789e04] and [86363f] allow prefixes without check digit 2025-04-21 18:45:23 +01:00
gitlost
3592edd64e - 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
2025-04-16 22:26:43 +01:00
Sandro Jäckel
9265abd9e1 Fix installation of cmake files
When binaries, libs and development files like include or cmake files
are installed to different target directories then those where before
relatively installed to the binary and not in the correct directory
where other development related files where installed.

Tested inside of nixpkgs with zxing using the system library of zint.
2025-04-13 17:51:37 +01:00
gitlost
8758ebd420 test suite: testcommon.c: NOLINT clang-tidy-20.1.2 false positive 2025-04-13 17:45:19 +01:00
gitlost
0b7103e21e EAN-8: specify in check digit error
test suite: deal with ZXing-C++ changes re DBAR and EAN/UPC with
  add-ons
2025-04-13 17:25:13 +01:00
gitlost
26805338f8 RAW_TEXT: expand UPC-A, UPC-E to EAN-13, and EAN-8 if has add-on,
and place any add-on data directly after (no separator)
EAN-8 + add-on: warn as non-compliant (see ZXing-C++ issue #883,
  https://github.com/zxing-cpp/zxing-cpp/issues/883)
test suite: BWIPP: use new EAN-8 + add-on option "permitaddon";
  fix dumps of RAW_TEXT `memcmp()`s fails; various re-formatting
bwipp_dump.ps: update to latest BWIPP
2025-04-11 13:02:59 +01:00
gitlost
182c84fa4d MAILMARK_2D: fix postcode validation: no limited alphanumerics,
spaced-out DPS "outward"-only allowed, all-blank DPS allowed
  (ticket #334, props Milton Neal)
2025-04-09 00:10:51 +01:00
gitlost
86363ff0f7 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)
2025-04-07 17:25:44 +01:00
gitlost
d886ecf5c7 test suite: test_upcean: fix test_hrt not actually testing
`BARCODE_RAW_TEXT`
2025-04-07 13:32:56 +01:00
gitlost
8c09123d8b Re last commit, keep line length <= 118. 2025-04-05 01:35:42 +01:00
Axel Waggershauser
b423e260b9 dxfilmedge: make raw_segs consistent with zxing-cpp
Details see here:
https://github.com/zxing-cpp/zxing-cpp/issues/883#issuecomment-2776593838
2025-04-05 01:26:35 +01:00