1
0
mirror of https://github.com/woo-j/zint.git synced 2025-04-22 22:50:23 +03:00

Commit Graph

  • 51ebca182c Re commit [789e04] and [86363f] allow prefixes without check digit master gitlost 2025-04-21 18:45:23 +01:00
  • 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 gitlost 2025-04-16 22:26:43 +01:00
  • 9265abd9e1 Fix installation of cmake files Sandro Jäckel 2025-04-11 03:24:38 +02:00
  • 8758ebd420 test suite: testcommon.c: NOLINT clang-tidy-20.1.2 false positive gitlost 2025-04-13 17:45:19 +01:00
  • 0b7103e21e EAN-8: specify in check digit error test suite: deal with ZXing-C++ changes re DBAR and EAN/UPC with add-ons gitlost 2025-04-13 17:25:13 +01:00
  • ba86d5d082
    Fix installation of cmake files Sandro Jäckel 2025-04-11 03:24:38 +02:00
  • 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 gitlost 2025-04-11 13:02:59 +01:00
  • 182c84fa4d MAILMARK_2D: fix postcode validation: no limited alphanumerics, spaced-out DPS "outward"-only allowed, all-blank DPS allowed (ticket #334, props Milton Neal) gitlost 2025-04-09 00:10:51 +01:00
  • 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) gitlost 2025-04-07 17:25:44 +01:00
  • d886ecf5c7 test suite: test_upcean: fix test_hrt not actually testing BARCODE_RAW_TEXT gitlost 2025-04-07 13:32:56 +01:00
  • 8c09123d8b Re last commit, keep line length <= 118. gitlost 2025-04-05 01:35:42 +01:00
  • b423e260b9 dxfilmedge: make raw_segs consistent with zxing-cpp Axel Waggershauser 2025-04-04 23:36:33 +02:00
  • 789e049945 DBAR_OMN/DBAR_LTD/DBAR_STK/DBAR_OMNSTK: prefix raw_segs with implicit "01" prefix (see ZXing-C++ issue 883); allow and ignore prefixes "01", "[01]" and "(01)" if check digit given (ticket #333, props Axel Waggershauser); CODE128/PDF417: suppress some clang-tidy-20.1 warnings general: add ZUCP(), ZCUCP(), ZCCP() macro shorthands to cast away char pointer signedness gitlost 2025-04-05 00:19:13 +01:00
  • d0e8b15393 dxfilmedge: make raw_segs consistent with zxing-cpp Axel Waggershauser 2025-04-04 23:36:33 +02:00
  • 01c9b82504 Revert "[[fallthrough]]" -> "fall through" to avoid gcc warning gitlost 2025-04-04 09:35:55 +01:00
  • 5b74903da4 ZINT_CAP_STACKABLE: missed CODABLOCKF/HIBC_BLOCKF previously - not stackable gitlost 2025-04-03 17:21:44 +01:00
  • a74871a7de - CODABLOCKF: fix misencodation of extended ASCII 0xB0-0xB9 when followed by digit (ignore 2nd byte of FNC4 when categorizing Code C characters) - New ZBarcode_Cap() flag ZINT_CAP_BINDABLE, differentiated from ZINT_CAP_STACKABLE, and new Qt Backend method isBindable() - CLI: fix separator check to use new ZINT_CAP_BINDABLE instead of ZINT_CAP_STACKABLE - ZBarcode_Cap: add missing symbologies to ZINT_CAP_BINDABLE (was ZINT_CAP_STACKABLE) - DOTCODE: pad rows if given number of columns instead of failing if rows below min (5) - DBAR/composites: ensure stacked symbologies and composites are not stacked (set symbol->rows to 0) - test suite: move test_perf routines into single test "test_perf"; new "test_random" (based on "test_bwipp") to test various symbologies with random binary - discovered CODABLOCKF bug; expand "test_bwipp" manual: Feeback: mention AZTEC -1 meaning min & MICROPDF417: doc new ZINT_CAP_BINDABLE general: various code fiddlings and re-formattings gitlost 2025-04-03 16:08:15 +01:00
  • 2370fbfbb7 test_common: rt_cpy etc.: zeroize symbol gitlost 2025-03-28 11:19:40 +00:00
  • 59becc6e0a github: macOS: ctest -VV gitlost 2025-03-28 10:49:05 +00:00
  • a6c225447e general: change BARCODE_RAW_TEXT to write to new zint_symbol fields raw_segs and raw_seg_count instead of text, and to do so for all symbologies, using new common funcs rt_cpy() etc. MICROPDF417: return ECC percentage in top byte of option_1 DBAR_EXP_STK: return option_2/option_3 feedback CLI: change warning text "ignoring" -> "**IGNORED**" GUI: show feedback for DBAR_EXP_STK, MICROPDF417, UPNQR ctest: fix recent inability to run tests via "ctest" on Windows (MSVC) by using cmake 3.22 feature ENVIRONMENT_MODIFICATION manual: document feedback and RAW_TEXT in new "Feedback" section; rephrase some symbology descriptions test suite: new general-use arg "-a"; add func_name to context; new "test_bwipp" test for testing BWIPP against ZXing-C++ gitlost 2025-03-28 10:02:19 +00:00
  • d1bf02e156 gs1: csumalpha: improve warning, report both checksum chars (ticket #332, props Harald Oehlmann) gitlost 2025-03-18 18:47:04 +00:00
  • de8a62ca2a UPU_S10: fix Service Indicator warning re "H" (ticket #331, props Milton Neal), which is valid; quote invalid Service Indicator, Country Code in warnings gitlost 2025-03-18 03:03:27 +00:00
  • e12c5ed3ba DBAR_STK/DBAR_OMNSTK/DBAR_EXPSTK (including composites): output HRT if BARCODE_RAW_TEXT manual: default to always making html gitlost 2025-03-10 01:22:52 +00:00
  • 64fd01c73f - composite/MAXICODE: set option_1/2 to values used in encodation ("Feedback options"), and for composites use in GUI to give feedback on CC type automatically selected - composite: warn if CC type upped from requested - set_height: give up on giving minimal height in warning for now as too messy to calc and just report too small gitlost 2025-03-09 02:08:41 +00:00
  • 0d1f878661 - set_height: fix min warning message - need to multiply min_row_height by zero_count; use new precision modifier - errtxtf: add processing of precision modifier for "%f"/"%g" - test_qzint: fix "BARCODE_QRCODE no text" encodedOption1() default 0 -> -1 gitlost 2025-03-07 22:13:08 +00:00
  • d222add96d - AZTEC/CHANNEL/CODABLOCKF/CODE16K/CODE49/CODEONE/DATAMATRIX/ DOTCODE/GRIDMATRIX/HANXIN/MICROPDF417/MICROQR/PDF417/QRCODE/ RMQR/ULTRA: set option_1/2/3 to values used in encodation ("Feedback options"), and add new access methods encodedOption1() etc. to Qt Backend, and use in GUI to provide better feedback on "Automatic" selections - AZTEC: give more precise warnings in low ECC situations, and indicate via option_1 by setting to -1 (min 3 words), 0 (<5% + 3 words) (ecc_ratio) - set_height: fix non-compliance false positives by using epsilon in checks (prompted by CODABLOCKF non-compliant warning for zint-generated compliant height - floating point rows mult != zero_count div; one test regression for CODE93); better warning messages on non-compliant heights (min/max) - manual/man page: fix DATAMATRIX Sizes tables "28 12x26" -> "27 12x26" - GUI: AZTEC/CODEONE: add Zint versions to comboboxes - DOTCODE: improve error messages re size too small/large - ULTRA: better ZINT_TEST codeword dump (ZINT_DEBUG_TEST) - general: various tabs -> spaces; prettify main .rc files; trailing spaces; small amount of code fiddling (CODE16K) gitlost 2025-03-07 16:51:36 +00:00
  • d0465375bb Add convenience API funcs ZBarcode_UTF8_To_ECI() and ZBarcode_Dest_Len_ECI(), primarily for ZXingC++ but also useful in general gitlost 2025-03-02 20:50:55 +00:00
  • 99f94b1027 AZTEC: fix GS1 mode with Structured Append (wasn't outputting initial FNC1 (FLG(0)) gitlost 2025-02-28 18:21:51 +00:00
  • 81308f4957 Reinstate BARCODE_RAW_TEXT (note forgot to remove mention of ZINT_WARN_HRT_RAW_TEXT in man page zint.1.pmd last time) gitlost 2025-02-25 16:45:28 +00:00
  • d24ba5edc0 Bump to version 2.15.0.9 (dev) gitlost 2025-02-25 15:29:08 +00:00
  • 4896136bdb Version 2.15.0 To be released tomorrow 2025-02-25 2.15.0 gitlost 2025-02-24 20:21:03 +00:00
  • f747de3684 CODE39/PLESSEY/POSTNET/PLANET/TELEPEN: suppress MSVC6 warning C4761 (hrt_cat_chr_nochk()) gitlost 2025-02-24 18:12:12 +00:00
  • d9aebc1c72 CODABLOCKF: suppress clang-tidy-20 warning clang-analyzer-core.UndefinedBinaryOperatorResult gitlost 2025-02-24 15:46:13 +00:00
  • e4663e48cf Temporarily disable BARCODE_RAW_TEXT prior to 2.15.0 release, as it's not stable yet. text_length is kept. gitlost 2025-02-24 14:11:03 +00:00
  • c11ab5528d general: suppress some CodeQL warnings CODABLOCKF: tidy some comments gitlost 2025-02-23 19:48:55 +00:00
  • 174bbf06a8 CODE128: ***2.14.0 regression fix*** set C1 start latch lengths to max (was 0) to prevent C1 being selected initially - was causing StartC to be omitted, e.g. for "12é" gitlost 2025-02-23 15:53:47 +00:00
  • bfcc398c35 general: improve some wrong length error messages gitlost 2025-02-22 16:17:37 +00:00
  • c499620ff6 upcean: BARCODE_RAW_TEST: need "+" separator for add-ons, else can't differentiate between EAN-13 and EAN-8 + EAN-5 cli: append "Ital. Pharma" to Code 32 description dxfilmedge: code fiddle gitlost 2025-02-20 22:57:54 +00:00
  • 8e7931b147 Rename BARCODE_PLAIN_HRT -> BARCODE_RAW_TEXT and add warning ZINT_WARN_HRT_RAW_TEXT if set when outputting HRT (ZXing-C++ issue 883, props Axel Waggershauser) README: Pharmacode -> One-Track, Pharmacode 2-trace -> Two-Track gitlost 2025-02-20 02:10:19 +00:00
  • 888b4b5684 ZSANITIZEM: The 2 maybe issues due to -fsanitize=memory were also false positives so surround with ZSANITIZEM conditional gif.c: some code fiddling (remove unnecessary braces) output.c: out_colour_char_to_rgb: take unsigned char general: some casts gitlost 2025-02-19 17:51:23 +00:00
  • c7cf006e71 general: cmake: add ZINT_SANITIZEM (clang -fsanitize=memory) option and suppress errors in lib and backend tests (pretty sure they're nearly all false positives apart from maybe 2 non-initializations in "gif.c" (pOut buffer) and "raster.c" (rotated_pixbuf) github: install de_DE.UTF-8 locale in ubuntu-debug also gitlost 2025-02-19 01:15:58 +00:00
  • 33135fc146 DXFILMEDGE: suppress gcc warning -Wmaybe-uninitialized CMakeFile: don't disable -fno-var-tracking-assignments for gcc github: try installing de_DE.UTF-8 locale (for test_filemem) gitlost 2025-02-16 16:05:21 +00:00
  • f9878700ee DPD: fix no terminating NUL (required by c128_cost()), regression introduced by last commit [fef8b0], and only picked up in a fairly random test on the mac build :( gitlost 2025-02-16 00:53:29 +00:00
  • fef8b083b4 Add text_length (length of text) to zint_symbol, and new BARCODE_PLAIN_HRT option for output_options - for use primarily by ZXing-C++ but may be generally useful; centralize setting of HRT using new common hrt_cpy_nochk() etc. routines to ensure text_length always set PLESSEY: add show default check characters option CODE32: ignore option_2 (check digit options) PZN: ignore option_2 (check digit options) except when indicates PZN7 only DPD: exclude DEL from ident tag also out_maybe_mkdir: fix utf8_to_wide() return (Windows only) general: replace use of strcpy() etc. (except for test suite) with memcpy(), hrt_() etc. in lib & cpy_str() etc. in CLI & cpy_bytearray_left() in backend_qt clang-tidy: update README reflecting above backend_tcl: use sizeof(primary) to check length; tabs -> spaces general: various code fiddling docs: pandoc 3.6.2 -> 3.6.3 gitlost 2025-02-15 20:32:55 +00:00
  • ddedd00d2d iso4217: remove 191 (HRK), 694 (SLL), 931 (CUC); add 926 (VED) gitlost 2025-02-07 19:12:32 +00:00
  • b753382353 man page: fix Code 93 --vers=1 hide -> show default check digits gitlost 2025-02-06 22:45:54 +00:00
  • 3dcf99175e Bump to version 2.14.0.9 (dev) gitlost 2025-02-05 10:07:03 +00:00
  • 18453bb5d2 run_zxingcpp_tests.sh: remove defunct best_supported_set (maxicode) testcommon: comment BUILD_EXAMPLE_DECODER -> ZXING_EXAMPLE_DECODER 2.14.0 gitlost 2025-02-05 09:16:07 +00:00
  • b157911e78 manual: update other GUI images (no real change) gitlost 2025-02-04 20:36:36 +00:00
  • 8e72d1919d manual: update GUI images gitlost 2025-02-04 16:13:39 +00:00
  • 336ab8dc9d Allow tcl demo to load zint from parent or neighbour foulder by default Harald Oehlmann 2025-02-04 16:58:09 +01:00
  • e38185121e Version 2.14.0 To be released tomorrow 2025-02-05 gitlost 2025-02-04 15:17:47 +00:00
  • 01d72607c6 GUI: suppress shadow var warning (macOS); update year zint.h: update year man: mention no HRT for raster scale < 1 README.bsd: NetBSD 10.0 -> 10.1 README.linux: Fedora 40 -> 41 update_version.php: mention make manual.html gitlost 2025-02-02 09:58:41 +00:00
  • 8bd8802d44 iso4217: remove obsolete ZWL (932) update_version.php: use err_exit() gitlost 2025-02-01 18:14:48 +00:00
  • 21ed7b48dd gs1: fix keyoff1() last commit [3f7cfd], error position does not need adjusting (unfortunately no test possible currently as for AIs 00-03 lengths > 4 and numeric() catches it anyway) gitlost 2025-01-31 22:02:49 +00:00
  • 3f7cfd47c7 gs1: update to latest gs1-syntax-dictionary (new lint keyoff1()); in key() (& hence keyoff1()) check for GS1 Company Prefix length >= 4 (same as gs1-syntax-dictionary lints) manual: update some standard years gitlost 2025-01-31 21:20:43 +00:00
  • 53cb29dbc6 backend_tcl/zint_tcl.vcsproj: put ZINT_VERSION in general defines and remove from individual .c files; rename include dirs "C:\myprograms\tcl9.0" -> "C:\Tcl" and lib dirs "C:\myprograms\tcl9.0\lib" -> "C:\Tcl\lib"; suppress some warnings backend_tcl/zint.c: suppress some warnings tools/update_version.php: update for "backend_tcl/zint_tcl.dsp" -> ".vcxproj" manual.pmd: backend_tcl: fix "require package" -> "package require" and explain "C:\Tcl" may need adjusting general: update copyright years in ".rc" files library: remove needless eci zeroing in set_symbol_defaults() and make barcode_seg_funcs initialization consistent (147 now) gitlost 2025-01-29 16:54:59 +00:00
  • b377b14360 general: reenable -Wpedantic for gcc by using __extension__ (ZEXT) to suppress warnings about errtxtf operand number "%<n>$" args; enable some further warnings test suite: enable -Wpedantic and fix/suppress any warnings gitlost 2025-01-27 11:03:33 +00:00
  • a4b557786f backend_tcl: add "win/readme.txt"; fiddle with "readme.txt" README: copyright 2024 -> 2025; remove primarily Linux bit manual: update Tcl instructions; copyright 2024 -> 2025; Data Matrix ECC200 -> ECC 200, mention previous standards by name; manual/GUI: Pharmacode -> Pharmacode One-Track, 2-track Pharmacode -> Pharmacode Two-Track backend/DEVELOPER: update gitlost 2025-01-22 08:13:42 +00:00
  • 60e1c76858 Rebuild tcl windows build system Harald Oehlmann 2025-01-21 18:07:19 +01:00
  • 9e7b0290b4 Merge branch 'master' of ssh://git.code.sf.net/p/zint/code Harald Oehlmann 2025-01-21 16:42:05 +01:00
  • e8ce194152 Add zint_tcl project files Harald Oehlmann 2025-01-21 16:34:09 +01:00
  • 5c08226700 general: split up some source files to lessen ZXing-C++ bloat when ZXING_USE_BUNDLED_ZINT set gitlost 2025-01-19 13:44:43 +00:00
  • 62c54adb56 DATAMATRIX: fix mis-encodation by only doing special end-of-data processing on last segment DXFILMEDGE: error message XXX-XX -> NNN-NN, fix comments README.bsd: update to latest Free/Open/Net, "Run" section test suite: CODABLOCKF: extra tests from Okapi test suite: support DATAMATRIX ^PROG, ZXing++ AZRUNE manual/man page: CODEONE: fix WxH -> HxW and Version C width manual: backtick literals gitlost 2025-01-18 04:20:53 +00:00
  • fef00f8b92 filemem: fix stdout input under MSYS2, mailing list, props Frank https://sourceforge.net/p/zint/mailman/message/59113804/ also fix some warnings and suppress "-Wlong-long" gitlost 2025-01-15 23:47:40 +00:00
  • 7a9fdd6cd0 docs: fix url for DXFILMEDGE, add parity bit detail gitlost 2024-12-24 13:46:47 +00:00
  • c2d79836ba DXFILMEDGE: revert barcode # 127 -> 147 for TEC-IT compatibility gitlost 2024-12-23 22:05:33 +00:00
  • fe3907c2cb DXFILMEDGE: various tweaks: change # 147 -> 127 to use up barcode # holes; use "common.h" funcs str_to_uppercase() -> to_upper(), count_char_occurrences() -> chr_cnt(); prefix defines with DX_ and funcs with dx_; ZINT_DEBUG_PRINT -> symbol->debug & ZINT_DEBUG_PRINT; bools to ints; use posn() to check for slash (returns length); restrict line lengths to 118; suppress some clang-tidy warnings; normalize some error messages; check for single "A" if any (sscanf()); use compliant height default; some whitespace formatting; Tcl: add DXFILMEDGE support docs: document DXFILMEDGE; update to latest pandoc test suite: ZXingCPP: DXFILMEDGE support gitlost 2024-12-23 20:52:08 +00:00
  • d13a3aaf1a
    Add symbology: DX Film Edge barcode Antoine Merino 2024-12-19 18:57:18 +01:00
  • 1456af0e8b Add nmake.vc build system, add tcl 9 compatibility, half-fix unload, half-add version-info Harald Oehlmann 2024-12-09 19:33:45 +01:00
  • 041c74fe4d cmake: bump min version 3.5 -> 3.10 to avoid warning with cmake 31.1; also add min version to all CMakeLists.txt GUI: add missing accelerator to UPCA/UPCEAN.ui "Guard Whitespace"; add default value to some "Default" buttons; reformat DAFT examples again; add \^@ to special escs hint gitlost 2024-11-25 19:13:25 +00:00
  • e94727f07d MAXICODE: add minimal encoding by Bue Jensen (BWIPP PR #279), around 20% slower than current but much better; numerous other fiddlings reedsol: reverse result in rs_*encode*() routines & adjust clients appropriately (may replace later with something faster) test suite: cater for MAXICODE SCM better; add assert & dataset totals BWIPP: update to latest gen_gs1_lint.php: restrict line length to 118 for func calls gitlost 2024-11-25 09:22:37 +00:00
  • 1ae7815d95 zint.h: add version string, mention "manual.html" and website README: mention "manual.html" tools/update_version.php: update for "zint.h" version, README year test suite: fix some clang-tidy-20 warnings gitlost 2024-11-18 18:50:26 +00:00
  • 86b6a0553b CODE128: optimize for extended ASCII as well using techniques from BWIPP minimal encoding by Bue Jensen (BWIPP PR #278); new extra escape \^@ to turn off manual switching zint.h: increase symbol->text size 200 -> 256 (means that for the moment can no longer generate ZINT_WARN_HRT_TRUNCATED) GS1_128/GS1_128_CC: warn if READER_INIT option used CODE16K: move c16k_set_a/b/c() routines from "code128.c" and rename c16k_ (also C128_ defines to C16K_) common: make itoc() simple macro which adds '0' (>= 10 now ':', ';' etc) and adjust expand() accordingly for slight speed-up general: EXTRA_ESCAPE_MODE now implies ESCAPE_MODE tests: update BWIPP to latest and enable CODE128AB ("suppressc"); new test args '-n' (exclude func) and '-m' (match func) gitlost 2024-11-18 05:08:52 +00:00
  • c9909d3d91 tests: BWIPP: update CODE128/MAXICODE to use "newencoder" BWIPP: update to latest AZTEC/CODE16K/DATAMATRIX: harmonize GS1 and READER_INIT error messages gitlost 2024-11-12 11:25:22 +00:00
  • 88155343bf MAXICODE: maintain current set between segments to prevent invalid encodation; use code set E for padding as well, saves codeword, props Bue Jensen (BWIPP PR #279); add padding after all segments and limit loops to length to make NS compression work better; all the above temporary fixes until Bue Jensen's merge request with the BWIPP PR #279 algorithm GUI: expand linux "xcb" platform hack for >= Qt 5.1 gitlost 2024-11-08 16:54:38 +00:00
  • f1f283d6a1 docs: update doc images and ChangeLog for last commit [705b72] gitlost 2024-11-05 23:18:42 +00:00
  • 705b7254f2 UPCA/UPCE: descend add-ons to same level as guards following ISO/IEC 15420:2009 4.3.5 (and BWIPP) and adjust righthand outside digit to be 4X/2X instead of 5X/3X (ISO/IEC 15420:2009 Annex A.2) away from main symbol so as not to touch add-on TODO: revisit when standard clarified gitlost 2024-11-05 22:50:03 +00:00
  • 71b2dc50b7 library: move check for valid UTF-8 after de-escaping CODE128: fix bad index 0 -> i in c128_glyph_count() gitlost 2024-10-30 16:37:42 +00:00
  • 7e6da28761 tests: test_library: fix snafus from previous commit [5e2044] (Windows) gitlost 2024-10-27 22:19:43 +00:00
  • 5e2044ff2e CODE128: reduce extended latch cut-off from 5 to 4 for better encodation in certain cases (and no pessimizations found so far), props lyngklip (BWIPP); fix extended char latching when exactly 3 extended chars at end; count code set C (not digits) in loop deciding when to shift/latch to extended for better estimate AZTEC: return warning if ECC < 5% (due to bit-stuffing when version given); return error if > 22 layers (Zint 26) for Reader Initialisation symbol requested for better error message AZTEC/HANXIN/QRCODE: consolidate different ECC data size tables into one indexed by ECC DBAR_EXP: check for reduced length <= 77 up front for better error message HANXIN: use malloc() rather than z_alloca() for large binary array QRCODE: ecc_level now 0-based (not 1-based) MICROQR: consolidate different version end routines into one microqr_end() and use new microqr_data table to simplify code MICROPDF417: use table for max codewords per column library: centralize all error messages using new errtxt(), errtxtf(), errtxt_adj() funcs that protect symbol->errtxt from overflow, & try to make error messages more consistent thru-out, adding more feedback info to many, & use positional args "%n$" in prep for l10n (maybe); is_sane/is_sane_lookup() -> not_sane/not_sane_lookup(), returning 1-based position (zero on failure) instead of bool; long ints -> plain int (except those dealing with ftell(), fread() etc) as depend on int being 32-bits already GUI: in "grpDATF.ui" use "PlainText" rather than "RichText" for tracker ratio examples as height of text messing up sometimes manual: clarify Codablock-F length maximum & add examples docs: README: pandoc 3.5, Ubuntu 24.04 CMake: use "-Wpedantic" for Clang only as GNU complains about errtxtf() positional args "%n$" gitlost 2024-10-27 21:33:33 +00:00
  • 752c1fae5d MAXICODE: Zero-pad US postcodes that lack "+4" (Annex B.1.4a) Adapted from OkapiBarcode, with stricter interpretation (only pad if "+4" totally absent), props Daniel Gredler gs1: update to latest gs1-syntax-dictionary (linter mm -> mi) bwipp: update to latest gitlost 2024-10-09 18:25:38 +01:00
  • c1666cf350 GUI: use X11 (xcb) as platform instead of Wayland on Linux to avoid various weird behaviours tests: disable GUI-dependent tests (TestQZint::renderTest()) if ZINT_SANITIZE and on Linux for later versions of Qt (5 and 6) to avoid ASAN "detected memory leaks" errors on exit gitlost 2024-10-07 16:04:22 +01:00
  • 34be69d241 library: check d/o escape seq value <= 255, better error messages GUI: cliwindow: #if _WIN32 -> #ifdef _WIN32, add "-Wundef" check to cmake cmake: backend: add C90 (C89) compat compiler check docs: update "README" pandoc, "README.linux" (Fedora 39 -> 40) tests: test_png: add some more text examples gitlost 2024-09-29 15:18:56 +01:00
  • b42d5baf4c gs1: New AIs 7041 (GSCN 23-272) (packagetype) and 716 (GSCN-24-157) CODE49: Better error message on ZINT_ERROR_TOO_LONG manual: Use floating pt notation for floating pt args on options backend/tools/data: Remove overlooked "GB2312.TXT" from git raster: size2 -> prev_size; one line malloc()s C25/CODE128: some code fiddling tests/PNG: Add some more text examples gitlost 2024-09-18 03:40:45 +01:00
  • 93c3e27fba 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 gitlost 2024-09-07 12:44:16 +01:00
  • 10747d6385 CODE128: Add new extra escape \^1 for manual insertion of FNC1s, ticket #324, props Jim Shank; also improve encodation for a few limited cases; also some code fiddling BWIPP: update to latest raster: check for overflow on size + size2 in raster_malloc() vector: put malloc()s on one line for grep ease docs: pandoc-3.3, clang-tidy-20 gitlost 2024-09-03 11:55:55 +01:00
  • 7f4ccccb98 GS1: update to latest gs1-syntax-dictionary, new AI 8014 (GSCN 21-283) MUDI, and AI 03 MTO GTIN); hhmm -> hh,mm, mmoptss -> mm,ss, yymmddhh obsolete gitlost 2024-07-30 13:11:15 +01:00
  • 3c7a702169 test: BWIPP: add fixedeclevel to PDF417/QRCODE variants when eclevel given; update BWIPP to latest gitlost 2024-07-22 23:29:37 +01:00
  • 9c701f1009 2nd attempt to fix [857021] - add ZINT_NO_PNG define to tests gitlost 2024-07-18 01:38:29 +01:00
  • b3a8680a90 Fix previous commit [857021] - allow for ZINT_NO_PNG gitlost 2024-07-18 01:26:31 +01:00
  • 857021de84 png: allow for use of zlib-ng, a zlib replacement, by Fedora 40, by avoiding binary comparison in tests gitlost 2024-07-18 01:04:50 +01:00
  • fb3b3001aa - GS1: fix square brackets treated as FNC1 in GS1PARENS_MODE by changing internal FNC1 marker '[' -> '\x1D' (GS), ticket #319, props Moli Sojet; also fix non-AI square brackets -> round brackets in GS1_128 HRT - BWIPP: update to latest gitlost 2024-07-11 00:35:13 +01:00
  • 7246d67175 gs1/gs1_lint: update to latest gs1-syntax-dictionary, removing iso3166list linter and adjusting all others to allow for multiple optional linters (by checking data_len vs offset) library: change invalid input_mode reset to return warning; split func table into 2 - func declarations without prototype will be error in C23; make invalid symbology check a separate function using a table and call near beginning of ZBarcode_Encode_Segs(); in ZBarcode_BarcodeName() save some bytes by simplifying name table and removing "BARCODE_" prefix from entries output: fix pack logic to use pragma by default (actually more portable than __attribute__) common.h: remove C99 detection which was artifice of specifying "-std=", and rejig layout to be more logical BWIPP: update to latest version general: change ZINT_VERSION_BUILD tests to #ifs general: further fiddling with some tables to save a few bytes CLI: change function arg optarg -> arg so doesn't shadow global general: library now compilable with Comp Cert C (though as it doesn't support alloca() will have multiple memory leaks) gitlost 2024-06-27 23:00:13 +01:00
  • d70edce067 iso4217: new ISO 4217 currency code 924 for ZWG (amendment no. 177) (gs1-syntax-dictionary commit [d64e28d]) TODO: remove 932 ZWL 1 Sept 2024 gitlost 2024-06-21 16:31:19 +01:00
  • d97fc7e110 CMake: use "GNUInstallDirs" instead of old (2008) KDE "SetPaths.cmake" (removed) - resolves absolute paths in "zint-targets.cmake", ticket #318, props John Alexander; also remove "FindZint.cmake" install as not best practice (Daniel Pfeifer “Effective CMake"), but retain in tree for now; also remove APPLE stuff re UNIVERSAL build, obsolete, and setting of CMAKE_OSX_SYSROOT, seems unnecessary gitlost 2024-06-21 15:18:00 +01:00
  • 04e8cacb81 gs1: Update to latest version of gs1-syntax-dictionary with new AIs 7250-7259 (GSCN 22-246), new checkers yyyymmdd(), iso5218(), posinseqslash(); allow for new "?" flag in "gen_gs1_lint.php" gitlost 2024-05-29 22:52:34 +01:00
  • 83fe2f3fee getopt: fix previous #ifdef 1 -> #if 1 gitlost 2024-05-28 02:48:08 +01:00
  • a1aefdc50b test_library: suppress size_t -> int warning getopt: suppress -Wdeprecated-non-prototype warnings gitlost 2024-05-28 02:39:49 +01:00
  • eb035a6372 GUI: fix foreground/background picker invocations (broken [f3a982c1dd199a1a02b32d698844b2257c23f01b]) AZTEC/CODE16K/CODEONE/DATAMATRIX/DBAR_EXP/GRIDMATRIX/HANXIN /MAILMARK_4S/PDF417/MSI_PLESSEY/QRCODE/RMQR/TIF/ULTRA/USPS_IMAIL: lessen storage of some tables by using least integral size required (saves ~3K); reformat some tables, comments AUSPOST/AZTEC: remove unnecessary int casts on array indexing CODE11/CODE39: move start/stop chars into one entry in tables to save a few bytes; some reformatting, comments CODEONE: add c1_ prefixes common: more precise compiler/version checks composite: add cc_ prefixes; UINT -> unsigned short; use sizeof() instead of strlen() for in_linear_comp static; some reformatting, comments EMF: use table instead of string for ultra_chars[] GIF: remove unnecessary cast library: use sizeof() instead of strlen() for static; add consts to escape_char_process() & use unsigned for ch DBAR: use dbar_, dbar_ltd_, dbar_exp_ prefixes docs: update pandoc version gitlost 2024-05-27 23:19:45 +01:00