IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an
email to Administrator. User accounts are meant only to access repo
and report issues and/or generate pull requests.
This is a purpose-specific Git hosting for
BaseALT
projects. Thank you for your understanding!
Только зарегистрированные пользователи имеют доступ к сервису!
Для получения аккаунта, обратитесь к администратору.
f37831bfefGUI: About box: make smaller so fits on screen in most situations by removing "Currently supported standards" box (which was pretty unreadable anyway)
gitlost
2024-01-01 13:07:53 +00:00
3950b49050filemem: fix fwrite() return check in fm_write(); test ferror() also in fm_err() if err zero and file NetBSD: add instructions and some workarounds (getopt_long_only() in particular) qzint: check __GNUC__ version for "-Wstringop-truncation" suppression
gitlost
2023-12-29 19:34:44 +00:00
98f86727ccAdd BARCODE_MEMORY_FILE to symbol->output_options to allow outputting to in-memory buffer symbol->memfile instead of to file symbol->outfile, ticket #301 Add "README.clang-tidy" and ".clang-tidy" options file Suppress some warnings
gitlost
2023-12-27 19:20:19 +00:00
070162214b- raster/BMP/GIF/PCX/TIF: fix dealing with very large data (use size_t as appropriate) - BMP: lessen heap memory usage by only malloc()ing a row, not whole file - GIF: lessen heap memory usage by paging (also simplifies some function returns); use standard colour char map - raster: add raster_malloc() to fail > 1GB (avoids very large output files that most systems can't handle; also lessens to some degree chances of being victim of OOM killer on Linux) - GUI: printing scale dialog: set maxima on X-dim and resolution to keep scale <= 200
gitlost
2023-12-22 21:29:54 +00:00
6ff485e6faBump version to 2.13.0.9 (dev)
gitlost
2023-12-18 10:28:14 +00:00
f59bad1e6dwin32: update README, changing Visual Studio example from 2017 -> 2022 (2017 moved to "vs2017") and simplifying lpng build (use "nmake" - "libpng16_static.lib" -> "libpng.lib"); update various ".sln", ".vcxproj" & "*.pro" files update_version.php: update copyright year also in "*.rc" files manual: note Ultracode 2023 now released but not yet supported
gitlost
2023-12-16 13:06:48 +00:00
40a4bb9da0vector: make sure BIND_TOP trumps BIND/BOX always (fixes extraneous whjitespace at bottom of CODABLOCKF/CODE16K/CODE49 if BIND_TOP set); add left/right fudge to guard whitespace placements so appear closer to edge for SVG/qzint (undone by EMF/EPS)
gitlost
2023-12-15 10:51:51 +00:00
5e0458cb65Unconditionaly include <stdio.h>
Schaich, Alonso
2023-12-01 07:52:12 +09:00
888db0bf00QRCODE: fix out-of-bounds crash due to incorrect mode costings for GS1 percents in qr_in_alpha(), ticket #300, props Andre Maute; also defensively re-calc version 40 mode to prevent possible further crashes common: move debug_print_escape() from library to common
gitlost
2023-11-30 09:12:11 +00:00
db92c7de57UPCA_CC/EANX_CC: fix out-of-bounds crash in AI resolve loop in gs1_verify() by checking length before to_int(), ticket #300 (#11), props Andre Maute CODEONE: fix out-of-bounds crash for Version T by upping buffer size to same as for A to H, ticket #300 (#12), props Andre Maute GS1_128_CC: fix divide-by-zero crash in calc_padding_ccc() by allowing for min linear width 68 in cc_width calc, ticket #300 (#13), props Andre Maute BWIPP: update bwipp_dump.ps to latest version, update gen_gs1_lint.php to accommodate req "+" PDF417: change liste[] int -> short to lessen stack usage Some variable name and code fiddlings
gitlost
2023-11-28 08:58:56 +00:00
e9203439b7backend/tests: some tabs -> spaces
gitlost
2023-11-27 13:47:38 +00:00
a14fe77aa0EANX_CC/UPCA_CC: fix crash in dbar_date() on not checking length in cc_binary_string(), ticket #300 (#5 & #6), props Andre Maute; add other checks for length on processing encoding mode PDF417: fix out-of-bounds crash on overrunning string and codeword buffers by tripling size (convert to short instead of int to guard against too much stack), ticket #300 (#7 & #10), props Andre Maute; (TODO: add some checks instead to bail out earlier?) CODEONE: fix looping on latch crash in c1_encode(), ticket #300 (#8), props Andre Maute CODABLOCKF: fix crash on negative overflow of columns (option_2), ticket #300 (#9), props Andre Maute library: add debug_print_escape() helper for ZINT_DEBUG_PRINT
gitlost
2023-11-27 12:55:53 +00:00
77c1ef1139CODEONE: fix out-of-bounds crash in c1_c40text_cnt() not accounting for extended ASCII shifts, ticket #300 (no. 4), props Andre Maute
gitlost
2023-11-25 16:31:48 +00:00
dfc4049932API: add ZBarcode_Reset() to clear and restore zint_symbol to its default state library: fix dealing with ZINT_WARN_HRT_TRUNCATED in error_tag() when WARN_FAIL_ALL set
gitlost
2023-11-24 18:04:33 +00:00
0601b580b2aztec: GUI: fix layers calc from width; add overrun check of adjusted_string before padding in user-specified size case but probably can't happen; various fiddlings with code to make a bit more concise
gitlost
2023-11-24 15:34:08 +00:00
86748999a4AZTEC: fix another out-of-bounds crash when user-specified size given ticket #300 (no. 3), props Andre Maute
gitlost
2023-11-24 10:30:57 +00:00
7c4a538248AZTEC: fix out-of-bounds crash when user-specified size given, ticket #300, props Andre Maute; fix 4-layer compact block max (76 -> 64); fix encoding of byte-blocks > 11-bit limit library: fix 21-bit Unicode conversion in escape_char_process(); fix restricting escaped data length by using de-escaped length to check (escape_char_process() adapted to do length only calc also)
gitlost
2023-11-23 16:31:44 +00:00
06ae7c1b7aCODE11/C25XXX/CODE39/EXCODE39/HIBC_39/CODE93/CODABAR/PLESSEY/ MSI_PLESSEY/FLAT/DAFT/TELEPEN/TELEPEN_NUM: increase allowed lengths to max or near-max possible in 1152 modules for most (all?) variable length input linear barcodes USPS_IMAIL: suppress bogus clang-tidy warning re garbage value (doesn't take strlen() into account?)
gitlost
2023-11-22 00:45:30 +00:00
4b57fb8021PDF417: fix out-of-bounds crash in pdf_text_submode_length() by changing pdf_num_stay() to not call it if previous/next block is BYT; also extend pdf_asciix[] to full 256 byte range (defensive & also can use directly rather than checking range, ticket #300, props Andre Maute
gitlost
2023-11-21 22:39:07 +00:00
323b34502bzint.h: increase symbol->text size 160 -> 200; rename ZINT_CAP_EXTENDABLE -> ZINT_CAP_EANUPC (ZINT_CAP_EXTENDABLE marked as legacy) CODE128: increase no. symbol chars max 60 -> 99 EAN-2/EAN-5: fix BARCODE_BIND_TOP/BIND/BOX output GS1_128: warn if data > 48 (GS1 General Specifications max) common: is_extendable() -> is_ucpean() raster: add ZFONT_HALIGN_CENTRE/LEFT/RIGHT flags and process in draw_string() (for drawing EAN/UPC outside digits), and for ZFONT_HALIGN_CENTRE round when calculating centre (shifts some texts 1 pixel left) raster/vector: use offsets into symbol->text for EAN/UPC instead of out_upcean_split_text() (removed) BMP/EMF/GIF/PCX/PNG/PS/SVG/TIF: use new out_colour_get_rgb() routine (replaces colour_to_XXX()) general: simplify/fix some error_number handling/returning frontend: truncate overlong --primary instead of ignoring; negative floating pt option (for --textgap) man page: list size detail for matrix symbols (--vers) manual: further fiddling with scaling text; some typos
gitlost
2023-11-19 19:39:54 +00:00
ca964f9098DATAMATRIX: add DM_ISO_144 (--dmiso144) option for ISO placement of ECC codewords instead of default "de facto"
gitlost
2023-10-30 20:28:00 +00:00
b343409fb4gs1: update to latest gs1-syntax-dictionary (new AIs 4330-4333, hyphen)
gitlost
2023-10-27 13:51:32 +01:00
7080918350Fix compilation errors when using CMake to add a project through add_subdirectory.
ShiXiaodi
2023-10-17 15:19:49 +08:00
2287b9ab0abackend/tools/gen_eci_?b_h.php: get data from web (where possible) and remove *.TXT from backend/tools/data, adding GB2312.TXT README manual: try to make scaling info more exact, and re-iterate no text printed for raster with scale < 1; move CLI HRT section up; add one-page docs/manual.html to git - should do same for 3.1M manual.pdf?? other: remove some no longer used backend/tools, readme-cmake
gitlost
2023-07-24 12:56:40 +01:00
255107b588github: ok give up on 32-bit Ubuntu again
gitlost
2023-07-20 11:07:09 +01:00
189f115d13github: try just installing 32-bit library
gitlost
2023-07-20 10:50:59 +01:00
32c9e6a98eRemove bitmap_byte_length member from zint_symbol (was only set on BMP output to length of BMP pixel array) EXCODE39: change to display check digit in HRT by default CODE39/EXCODE39/LOGMARS: new hidden check digit option (option_2 = 2) qr.c: suppress bogus gcc-13 warning (only appears on optimize) GUI: move some symbology-specific options into Data Tab so separate tab unnecessary (those with few options and no Composite/ECI), namely: all C25XXX, CODE39/EXCODE39/LOGMARS, MSI_PLESSEY, CODABAR, DAFT, DPD, MAILMARK_2D, ITF-14, PZN, UPNQR, CHANNEL, CODE93 and VIN, adjusting grp uis. change Data dialog button (ellipsis) QToolButton -> QPushButton & vice versa zap/clear/eye/swap/scale buttons QPushButton -> QToolButton for better mac compat (also makes sense); remove some mac hacks that no longer seem necessary; use folder icon for Export dialog directory button manual: document new Symbology-specific groupbox & CODE39/etc hidden check digit option; add annexes on Qt and Tcl backends; narrow some tables for better txt output; remove echoed image tags in txt (pandoc 3.1.5 regression?); add one-page HTML output to Makefile; also tex output (debug); add class attributes to images to aid HTML styling; various other fiddlings
gitlost
2023-07-18 11:11:50 +01:00
d05373e7fcGUI: settings: fix embed_vector_font default 1 -> 0 manual: expand size/alpha details in Section "5.4 Buffering Symbols in Memory (raster)" (cf ticket #291); add BSD info (TODO: NetBSD); variable -> member (struct zint_symbol) frontend: fix missing static on validate_structapp() test suite: update to latest BWIPP (PDF417 needed adjusting) Changelog: trim some more uninteresting changes
gitlost
2023-07-12 19:00:17 +01:00
bbad6d3d83CODEONE: fix S/T quiet zone 1X bottom (props BWIPP issue #245 doc) GUI: fix Text Gap suffix, add "in X-dimensions" to tooltip; save/restore Preview Background color dialog geometry & dynamically show colour in preview on changing manual: Composite -> GS1 Composite; add some verbiage re Symbology tab & Sequence Dialog
gitlost
2023-07-08 01:02:51 +01:00
71914ba99fps.c: fix some clang-tidy-17 warnings
gitlost
2023-07-05 21:55:59 +01:00
6733e76be4gs1: update to latest gs1-syntax-dictionary (cset64, separate latitude/longitude, mediatype, new AIs 7241, 7242, 8030) TODO: integrate gs1-syntax-engine BWIPP: update to latest (bwipp_dump.ps) manual: README: pandoc latest
gitlost
2023-07-05 21:26:16 +01:00
a324fe90f6vector: reduce SMALL_TEXT font height 6 -> 5 to be more like raster; reduce antialiasing allowance for textoffset; adjust text to baseline using values for Arimo rather than percentage GUI: fix not enabling font combo "Small Bold (vector only)" by default raster/vector: rename text_height -> font_height
gitlost
2023-06-22 17:48:54 +01:00
ee6b4a0efcEPS: fix text rotation regression ([607e4ed]); remove legacy "T" prefix from def commands; reinstate previous R (TR) def so as to use I (TB) copy to save file size, & for ULTRA pre-group rects by colour to enable use; adjust H (TH) def so can use new J copy to save file size; various other fiddles manual: Royal Mail Mailmark - put Destination+DPS & RTS in tables for readability
gitlost
2023-06-18 14:37:05 +01:00
3c1980c284manual: add new ZINT_WARN_HRT_TRUNCATED warning; add missing Table caption "Micro QR ECC Levels"; update README for pandoc-3.1.3; remove TODO Windows instructions which never worked and likely never will
gitlost
2023-06-14 15:16:09 +01:00
acd52ac489Actually change SVG font to "Arimo, Arial, sans-serif" ([607e4ed]) Allow --embedfont for non-EAN/UPC SVG also (& update GUI) SVG: add "fonts/normal_woff2.h"; use array syntax for it & "fonts/upcean_woff2.h" to avoid large strings GUI: embed Arimo (via "fonts/normal_ttf.h"), same as OCRB Change textgap max 5X -> 10X README: make list of barcodes 2-col table for readability win32/README: note Visual Studio 2022 re CMake
gitlost
2023-06-13 18:12:20 +01:00
607e4ed33aEAN/UPC: add quiet zone indicators option (API output_optionsEANUPC_GUARD_WHITESPACE, CLI --guardwhitespace) (ticket #287) EAN-2/EAN-5: HRT now at top instead of at bottom for standalones, following BWIPP CLI: batch mode: don't close input if stdin EAN/UPC: fix excess 1X to right of add-ons Composites: fix excess whitespace; fix quiet zone calcs to allow for linear shifting CLI: use own (Wine) version of CommandLineToArgvW() to avoid loading "shell32.dll" Move "font.h" -> "raster_font.h" EPS/SVG: use new out_putsf() func to output floats, avoiding trailing zeroes & locale dependency EPS: simplify "TR" formula SVG: change font from "Helvetica, sans serif" to "OCR-B, monospace"; use single "<path>" instead of multiple "<rect>"s to draw boxes (reduces file size) Add EMBED_VECTOR_FONT to output_options (CLI --embedfont) to enable embedding of font in vector output - currently only for SVG output of EAN/UPC GUI: use "OCR-B" font for EAN/UPC and "Arimo" for all others (was "Helvetica" for both); paint background of screen preview light grey so as contrasts with whitespace and quiet zones EMF: prefix funcs with emf_; simplify string halign handling large: rename large_int -> large_uint CODE128/common: move c128_hrt_cpy_iso8859_1() to hrt_cpy_iso8859_1() and add ZINT_WARN_HRT_TRUNCATED warning (for future use) Various symbologies: replace printf() with fputs() (symbol->debug) QRCODE: better assert(), removing a NOLINT (2 left) CLI: add some more barcode synonyms for DBAR common: various fiddlings CMake: don't include png.c unless ZINT_USE_PNG (avoids clang warning)
gitlost
2023-06-12 01:25:55 +01:00
6d015d6a8fCLI: use own (Wine) version of CommandLineToArgvW() to avoid loading "shell32.dll" CLI: batch mode: don't close input if stdin, some fixing/fiddling with error checking
gitlost
2023-05-11 20:20:55 +01:00
15fdca2a03For Windows, assume outfile & API filename args are in UTF-8, & use xxxW() APIs accordingly, ticket #288, props Marcel **Backwards-incompatible change**
gitlost
2023-05-10 00:47:44 +01:00
cc69c86129Revert "CLI: For Windows, only convert data args to UTF-8, so as to avoid"
gitlost
2023-05-09 18:36:29 +01:00
fae3e6d9d5CLI: For Windows, only convert data args to UTF-8, so as to avoid code page issues with filename args, ticket #288, props Marcel
gitlost
2023-05-04 23:21:50 +01:00
d5235a914bTest suite: some fixes, additions
gitlost
2023-04-07 15:49:36 +01:00
217e7d240aTest suite: update for latest BWIPP
gitlost
2023-04-03 17:41:13 +01:00
2919a20384help question mark in dialogs disabled by default in Qt6
Sanych.by
2023-03-30 11:51:31 +03:00
Fix build on Windows with Qt6
sanych1by
2023-03-29 13:17:48 +03:00
90293ebcda- Add text_gap option to allow adjustment of vertical gap between barcode and text - EMF/EPS/SVG/GUI: ignore BOLD_TEXT for EAN/UPC - DAFT: up max to 250 chars - EMF/EPS/SVG: fix addon bars placement/length when text hidden - Qt backend: use QFontMetrics::horizontalAdvance() rather than boundingRect() to calc text width (seems to be more accurate) - library: make printf/sprintf() format arg always literal string - output: fix errtxt nos clash; use array for out_upcean_split_text() text parts - raster/vector: smallify addon text printing logic - frontend: warn if output file and direct options both given; add TODO note about CommandLineToArgvW() loading shell32.dll - manual: put HRT options in own section
gitlost
2023-02-10 14:44:10 +00:00
ab2abccdb6- zint_symbol->fgcolour & bgcolour buffer lengths extended 10 -> 16 to allow for "C,M,Y,K" comma-separated decimal percentage strings - API/CLI/GUI: allow foreground/background colours to be specified as comma-separated decimal "C,M,Y,K" strings where "C", "M" etc. are percentages (0-100) (ticket #281, 3rd point) - output.c: new funcs out_colour_get_rgb() & out_colour_get_cmyk() and use in bmp/emf/gif etc. - PCX: add alpha support - GUI: fix fg/gbcolor icon background not being reset on zap - GUI: Rearrange some Appearance tab inputs (Border Type <-> Width, Show Text <-> Font, Text/Font <-> Printing Scale/Size) to flow more naturally (hopefully) - GUI: save button "Save As..." -> "Save..." and add icon - CLI: add --bgcolor/colour & --fgcolor/colour synonyms
gitlost
2023-01-29 19:51:11 +00:00
48eaa0cc4eGUI: fg/bgcolor text edit: fix right-click context menu not working properly by checking for it on FocusOut
gitlost
2023-01-19 00:11:29 +00:00
6f7cdd660c- Add special symbology-specific escape sequences (Code 128 only) for manual Code Set switching via input_mode flag EXTRA_ESCAPE_MODE (CLI --extraesc) (ticket #204) - GUI: disable "Reset" colour if default; add "Unset" to Printing Scale dialog (allows unsetting of X-dim/resolution settings without having to zap) - library: guard against out-of-bounds rows (negative) - test suite: fix some clang-tidy warnings; slight coverage improvements
gitlost
2023-01-15 00:22:43 +00:00
5669addf01CMake: allow ctest to be run without having to install zint or manually set LD_LIBRARY_PATH and PATH (ticket #279, props Alexey Dokuchaev)
gitlost
2023-01-09 01:14:42 +00:00
53769c6ed1- 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
gitlost
2022-12-09 14:51:26 +00:00
25dacb2949- Add new symbology BARCODE_MAILMARK_2D (Royal Mail 2D Mailmark), renaming previous BARCODE_MAILMARK (Royal Mail 4-State Mailmark) to BARCODE_MAILMARK_4S - backend_tcl: update TEA
gitlost
2022-12-08 13:48:31 +00:00
1daa1ab0abGS1: add new AI 7011 (GSCN 22-163)
gitlost
2022-12-07 10:54:36 +00:00
2230c3a2ectest_output BMP/EMF/EPS/GIF/PCX/PNG/SVG/TIF: skip read-only test if root (ticket #274)
gitlost
2022-12-06 15:09:06 +00:00
831c704b7bCLI: mirror: use -o directory if any (ticket #193)
gitlost
2022-12-05 12:55:28 +00:00
ff18ff1cbctest_library: try stripf()ing a few calcs to get github 32-bit CI to pass (although works as was locally)
gitlost
2022-12-02 22:42:04 +00:00
309c4a5279test_tif: pixel_plot: disable running identify on 2 datasets for now as failing github CI (although work locally)
gitlost
2022-12-02 22:30:47 +00:00
c8033695d9- API: add new zint_symbol dpmm field for output resolution (BMP/ EMF/PCX/PNG/TIF only, i.e. excluding EPS, GIF & SVG) - Add support for specifying scale by X-dimension and resolution with new option --scalexdimdp for CLI/Tcl & new API function ZBarcode_Scale_From_XdimDp() (+ ZBarcode_XdimDp_From_Scale() & ZBarcode_Default_Xdim()) and new GUI popup; manual: document - BMP/EMF/PCX/PNG/TIF: use new dpmm resolution field (for EMF following Inkscape) - backend_qt: add dpmm(), vectorWidth(), vectorHeight(), noPng(), getVersion(), takesGS1AIData(), & XdimDp stuff incl. new QZintXdimDp struct for passing around scale vars & use in getAsCLI(); add comments - Raise scale limit to 200 (from 100) to allow for large dpmm - output: create directories & subdirectories as necessary for output path using new function out_fopen() and use in BMP/EMF/ EPS/GIF/PCX/PNG/SVG/TIF - DPLEIT/DPIDENT: format HRT according to (incomplete) documentation, and set default height to 72X (from 50X) - CODE128B renamed to CODE128AB as can use subsets A and/or B - CODABAR: fix minimum height calc - EMF: fix indexing of handles (zero-based not 1-based) - GUI: fix symbology zap (previous technique of clearing and re-loading settings without doing a sync no longer works); fix UPCEAN guard descent enable - MAILMARK: better error message if input < 14 characters - GUI: add "Default" button for DAFT tracker ratio & enable/disable various default buttons; use new takesGS1AIData() to enable/disable GS1-specific checkboxes - CLI: use new validate_float() to parse float options (7 significant digits allowed only, no scientific notation) - DATAMATRIX/GRIDMATRIX/PDF417/QR/ULTRA: micro-optimize structapp ID parse - library/CLI: fiddle with static asserts (make CHAR_BIT sensitive, supposedly) - win32/README: update building libpng (assembly removed) - README.linux: document incompatibility of Qt6 >= 6.3 - manual: expand Barcode Studio waffle - test suite: change range separator to hyphen and allow multiple excludes
gitlost
2022-12-02 21:39:01 +00:00
6393813cff- cmake: remove zintconfig.h.in for now as incompatible with MSVC project builds (will add back in future if go fully CMake) - NO_PNG -> ZINT_NO_PNG and new API function Zint_NoPng() to determine if no PNG support in libzint; replace use in GUI with backend_qt method noPng()
gitlost
2022-11-24 14:18:31 +00:00
2f8681b21a- API/CLI/Tcl/GUI: new output option BARCODE_BIND_TOP/--bindtop/ -bindtop/"Bind Top" - DPD: add top boundary (width 3X) by default, using new BARCODE_BIND_TOP; "relabel" option; some compliance checks - GUI: only skip encoded/errored signal processing if active modal ExportDialog (wasn't clearing/setting error text bar correctly for DataDialog) - CODE128: debug print checksum - CODE49/DATAMATRIX/QR/ULTRA: fix uniqueness of errtxt nos - manual: fuller DPD doc; some spelling typos, formatting
gitlost
2022-11-10 22:13:41 +00:00
e515f63fab- PDF417/MICROPDF417: use latch not ps shift for padding when spanning Text segments to avoid affecting 1st char of 2nd segment - PDF417/MICROPDF417: add optimized encoding, FAST_MODE for previous scheme; formatting changes - common.c/h: add cnt_digits(), comments in include and make more consistent, minor code fiddling - DOTCODE: replace dc_n_digits() with new cnt_digits() - test_qr: fix test_qr_perf() - composite: minor code fiddling - library: debug dump HIBC-processed input - BWIPP: update to latest
gitlost
2022-11-06 22:25:19 +00:00