Commit graph

1410 commits

Author SHA1 Message Date
MakKi (makki_d) 6b3bf9ea40 fix typo (#1111) 2018-11-23 05:58:29 -06:00
MakKi (makki_d) 79bdb2c84e Continue in codeset A when character encoded single number or FNC1-4 in Code128Writer (#1108)
* Continue in code A when character encodes FNC1-4 in Code128Writer

* FNC1 in codeset A

* Single number also can continue in codeset A
2018-11-15 09:00:01 -06:00
MakKi (makki_d) e636498b5e Support Full-ASCII in Code93Writer (#1104)
* support extended characters in Code93Writer

* remove redundancy

* add test for convertToExtended

* thanks for review

* fix comment, use package-private for testing
2018-11-09 08:05:07 -06:00
MakKi (makki_d) b31e090239 Optimize code width calculation in Code39Writer (#1103)
Every code39 character has 9 bars containing 3 wide bars, and separated by a white bar.
(9-3)*1 + 3*2 + 1 = 13
2018-11-04 09:57:58 -06:00
MakKi (makki_d) 58feb44536 fix code93 extended character decoder (#1101) 2018-11-02 10:51:39 -05:00
Sean Owen 1f4aaad628 Minor dependency and inspection changes 2018-10-25 07:43:35 -05:00
Pasan Manudul Amarasiri 71f5773d8e Added a null check for relative points (#1096) 2018-10-23 07:36:11 -05:00
MakKi (makki_d) c13216ce08 Rewrite DataMatrix Detector (#1080)
* rewrite datamatrix detector

* comments

* remove unused

* modify test

* fix CI errors
2018-10-04 04:24:38 -05:00
Ben John c7c016a20f Corrected exception message in EAN8Writer (#1073)
- according to EAN13Writer, both possibilities should be reflected within the message
2018-09-24 07:54:10 -05:00
Ben John e6937d25e8 Corrected exception message in UPCEWriter (#1074)
- according to EAN13Writer, both possibilities should be reflected within the message
2018-09-24 07:53:11 -05:00
Ben John 5a282c5e05 Fixed duplicated assertion (#1072) 2018-09-21 19:55:15 -05:00
Sean Owen 36f38c5beb Many more changes from recent IJ inspections 2018-09-03 15:18:54 -05:00
Sean Owen 65992d408c Back out bnd plugin update 2018-08-30 11:24:10 -05:00
Sean Owen a010db7fe2 Explicitly specify javadoc encoding, fix a few doc warnings, update plugins again 2018-08-30 11:13:55 -05:00
Sean Owen 2179c52ee3 Tighten definition of what's accepted as a URI, to exclude some potentially malicious ones 2018-08-05 19:07:19 -05:00
Andreas Niederle e1b127c13a fix binary shift cost heuristics (#1044)
* fix binary shift cost heuristics

* corrected some indents
2018-07-23 08:59:35 -05:00
Koen van Vliet 48bb5fd860 Check if characters are digits for EAN_13, EAN_8, ITF and UPC_EAN_EXTENSION (#1039)
* Check if characters are digits

* Use regex to check if input is valid. Added tests

* Create checkNumeric method

* Remove unused locals, moved attributes to top of class.

* Simplify testcase

* Reduce repeated code

* Fixed indentation
2018-07-10 13:05:37 -05:00
MakKi (makki_d) 0cf3b9be71 Fix QR-code hanzi segment decoder (#1033)
* Fix QR-code hanzi segment decoder

* remove unicode character
2018-06-20 13:52:44 -04:00
MakKi (makki_d) 15b09aeda5 remove spacing from head of polynomial string (#1032) 2018-06-19 13:53:30 -04:00
Sean Owen d258efbed0 Oops, fix checkstyle 2018-06-02 23:07:13 -05:00
Sean Owen 7ff131b3cc Move and slightly add to new GenericGFPoly tests 2018-06-02 22:51:28 -05:00
MakKi (makki_d) 3778715156 String of zero polynomial be "0" (#1020)
* String of zero polynomial be "0"

* add test

* add more test

* modify test case
2018-06-02 22:32:30 -05:00
Sean Owen 4d39673d67 More stuff in response to static inspection 2018-05-30 10:55:44 -07:00
Sean Owen ebb206df3a [maven-release-plugin] prepare for next development iteration 2018-05-29 10:18:14 -05:00
Sean Owen 463d1ea7ed [maven-release-plugin] prepare release zxing-3.3.3 2018-05-29 10:18:05 -05:00
Sean Owen ba91ad5b05 [maven-release-plugin] rollback the release of zxing-3.3.3 2018-05-29 10:15:31 -05:00
Sean Owen 71b4ecf914 [maven-release-plugin] prepare release zxing-3.3.3 2018-05-29 10:15:15 -05:00
Sean Owen d6d72f2aab [maven-release-plugin] rollback the release of zxing-3.3.3 2018-05-29 09:57:26 -05:00
Sean Owen dd3498a01c [maven-release-plugin] prepare for next development iteration 2018-05-29 09:49:35 -05:00
Sean Owen 8c8525d12c [maven-release-plugin] prepare release zxing-3.3.3 2018-05-29 09:49:29 -05:00
Sean Owen b7e888dd4d Revert aQute plugin update as it requires Java 8 2018-05-29 08:47:27 -05:00
Sean Owen 7a64f483fd Various small improvements from inspection, dependency updates, preparing for 3.3.3 2018-05-29 08:26:06 -05:00
MakKi (makki_d) fa0e1d7556 Optimize buffer size (#1013) 2018-05-23 10:26:47 -05:00
Sean Owen a372dfe175 Apply checkstyle to test code too, and fix violations; minor updates from code inspections 2018-05-18 09:21:21 -05:00
Sean Owen 2c2c395afa Issue #217: copy result metadata (like EAN extension) even when return EAN-13 as UPC-A 2018-05-17 12:11:07 -05:00
Sean Owen 553b5e97a3 Update JAI ImageIO for JDK 9; other trivial inspection and plugin updates 2018-04-24 11:31:57 -05:00
Sean Owen d352c5f159 Fix a few typos in new PDF 417 test 2018-03-23 11:04:52 -05:00
Florian Schrag dbfd5520e9 Improve support for Macro PDF417 (#973)
* Improve support for Macro PDF417

* cleanup and move license to it's proper place

* add .editorconfig + proper indentation / add optionalFields array

* rename variables and use Arrays instead of System

* replaced length with to

* restore spaces & switch to package private
2018-03-15 14:44:55 -05:00
Michael Jahn a3bbebccba ZXing 3.3.2 snapshot still creates wrong barcode for text with leadin… (#967)
* ZXing 3.3.2 snapshot still creates wrong barcode for text with leading asterisk #960

* missing spaces
2018-03-04 15:17:40 -06:00
Christoph Läubrich c8da0c1a94 Fix #957 - Provide OSGi Metadata in Manifest (#958)
* Fix #957 - Provide OSGi Metadata in Manifest

* replace tabs by whitespaces

* Try once again to fix whitespace/indentation
2018-02-16 17:35:41 -06:00
Sean Owen 80fd5b1a1c [maven-release-plugin] prepare for next development iteration 2018-01-30 22:10:20 -06:00
Sean Owen 588e6ae4bd [maven-release-plugin] prepare release zxing-3.3.2 2018-01-30 22:10:15 -06:00
Sean Owen 229e5e34db Update plugins 2018-01-28 10:42:05 -06:00
Lakshmikant Avasarala 1861cf4f01 Proposed fix for Issue #836 - height and width parameters ignored when barcode_format is DATA_MATRIX (#933)
* Proposed fix for Issue #836 - height and width parameters ignored when barcode_format is DATA_MATRIX

* Adding requested changes for PR #933

* Wording change in Javadoc to make the description more sensible
2017-12-28 09:42:17 -06:00
Damian Peckett e54e0c781b Add support for encoding GS1 formatted QR (#927)
* Add support for encoding GS1 formatted QR

* Place FNC1 mode header after ECI header
2017-12-18 09:13:53 -06:00
Sean Owen a3018f8768 Remove obsolete unrolled loops 2017-11-20 14:12:13 -06:00
Sean Owen 3ae6b336e1 Issue #914: increase heuristic to allow version 11-20 in non-try-harder mode 2017-11-20 07:19:18 -06:00
Sean Owen 63bcf0ca9c Closes #909 2017-11-16 11:53:40 -06:00
Sean Owen 5409e6b6fd Closes #912 2017-11-16 11:40:33 -06:00
Sean Owen ea3b04289d Fixes issue #908 2017-11-13 19:36:57 -06:00
Aldracor 72a21d158b Add QRCode lenient diagonal check (#906)
* Add QRCode lenient diagonal check

Adding diagonal check to solve #897 to prevent false positives for centers

* update tests to expect the increased number of successes
2017-11-08 10:11:25 +00:00
Sean Owen 7eae23f659 Guard against a few rare errors from Play logs 2017-11-02 11:54:25 +00:00
Steffen Kieß 49d90b6457 Implement support for WPA2 Enterprise (EAP) (#865) 2017-10-29 20:40:53 +00:00
Sean Owen 5284daa336 Restore changed protected method to satisfy clirr, just in case something extends it. 2017-10-29 10:26:45 +00:00
Sean Owen c2a2245bb9 Remove unused cross-check-diagonal logic 2017-10-29 09:56:47 +00:00
Sean Owen 550afd451c [maven-release-plugin] prepare for next development iteration 2017-10-25 18:28:09 +01:00
Sean Owen 0edfaa0318 [maven-release-plugin] prepare release zxing-3.3.1 2017-10-25 18:28:02 +01:00
Sean Owen f4d5b1f785 [maven-release-plugin] rollback the release of zxing-3.3.1 2017-10-25 18:22:03 +01:00
Sean Owen cd97b100fa [maven-release-plugin] prepare for next development iteration 2017-10-25 18:12:27 +01:00
Sean Owen 06eb69b579 [maven-release-plugin] prepare release zxing-3.3.1 2017-10-25 18:12:21 +01:00
Sean Owen 05093ed3d2 Disable Android, proguard, appspot for JDK 9 2017-09-22 17:50:34 +01:00
Michael Jahn 24f170efb3 Add codeset A support to Code 128 (#877)
* add support of Codeset A for Code 128

* simplification, everything from 0 to 127 is supported by Codeset A and B
2017-09-20 07:44:23 +01:00
Michael Jahn 437db89b45 Code39 extended mode encoding support (#876)
* asterisk isn't a valid character which can be encoded with Code 39.
the following sample content results in an unreadable barcode: *123456789
because the asterisk is the start-stop character (special meaning, not valid in content)
the really encoded value is **123456789*. The barcode reader stops after reading the second asterisk
and throw the content away.

* remove wrong private modifier for ALPHABET_STRING

* cleanup comments

* add support for Code 39 extended mode encoding

* add support for Code 39 extended mode encoding

* clean ups

* clean ups
2017-09-18 17:17:38 +01:00
Michael Jahn 76d9dd5cf6 Fix extended mode decoding code39 (#873)
* fix extended mode decoding of Code 39

* beautification

* tests for Code 39 extended mode decoding, full supported ascii table
2017-09-17 21:31:40 +01:00
Michael Jahn 1d66d793ed asterisk isn't a valid character and should not be encoded as content with Code 39. (#872)
* asterisk isn't a valid character which can be encoded with Code 39.
the following sample content results in an unreadable barcode: *123456789
because the asterisk is the start-stop character (special meaning, not valid in content)
the really encoded value is **123456789*. The barcode reader stops after reading the second asterisk
and throw the content away.

* remove wrong private modifier for ALPHABET_STRING

* cleanup comments
2017-09-15 07:23:29 +01:00
Sean Owen 04595508b6 Require Android API 19, so fully use Java 7 try-with-resources, as well as a few other Java 7 features. Reduce deprecation warning count in android 2017-09-11 14:05:37 +01:00
Sean Owen 4ddc8c9e49 Issue 863: add limited support for VALUE=uri in vCard 2017-09-02 08:57:14 +01:00
Sean Owen ae6b9f4426 A few more touch-ups from Codacy 2017-06-16 13:51:08 +01:00
Sean Owen 3c64fa1e62 Fix Codacy warnings 2017-06-14 18:50:03 +01:00
Sean Owen 458923c3cd Closes issue #806: bad encodation switch in non-ASCII DataMatrix encodation (credit micjahn) 2017-05-31 10:49:41 +01:00
David Sanders 7df4aa6694 Clean up whitespace (#800) 2017-05-14 17:54:32 +01:00
David Sanders 5a5237b4a8 Drop debugging code from UPCEWriter (#803) 2017-05-14 17:53:42 +01:00
Sean Owen 5b14d23194 Update plugins/deps, fix bug in base64 decoding 2017-04-06 14:31:14 +01:00
David Sanders 8d12dc4155 Minor performance improvements to HybridBinarizer (#762) 2017-02-27 18:21:59 +00:00
David Sanders 6546dc5863 Add basic test case for ITFWriter (#758) 2017-02-25 01:18:12 +00:00
David Sanders 0ec5b9a260 Add new matrix tests in RGBLuminanceSourceTestCase (#757) 2017-02-20 05:58:12 -08:00
David Sanders 25776d82d9 Correct size of array in ITFWriter (#756) 2017-02-19 03:51:20 +00:00
Sean Owen 06ccbf72ae
Issue #751 fix misparsing of vCard phone vs type in case of blank value or type 2017-02-10 16:50:40 +00:00
Sebastian dcde8a30a6 Fix two typos in Javadocs (#750) 2017-02-02 17:28:13 +00:00
Sean Owen b8c3d08e19
Closes #738 : fix UPC-E encoding with system 1 2017-01-06 14:17:48 +00:00
Sean Owen f5b5c3a97e
Factor out boolean[][] -> BitMatrix parsing 2017-01-06 13:29:10 +00:00
Sean Owen dfe4819691
Minor updates / optimization from inspection; minor plugin / dependency updates 2016-12-12 15:50:30 +00:00
Sean Owen 0dfda08078
Fix typos; avoid use of java.util.Date; other small improvements from inspection; deprecate some accidentally-public methods 2016-11-29 12:16:07 +00:00
Sean Owen 28f8bd37f3
Update deps including Guava 20; use switch in pref to chained if-else for slightly more consistent style 2016-11-11 20:20:46 +00:00
Sean Owen c219e28d56
More on #679 : convert UPC-E to A before getting check digit 2016-10-01 08:48:55 -05:00
Sean Owen 24681e8488
Partial fix for #679: UPC/EAN min quiet zone is 9 modules for encoding 2016-09-30 20:04:34 -05:00
Sean Owen 2d02cb05ea
Partial fix for #679: add check digit if absent in UPC-A/E EAN-13/8 encoding, and reject those with invalid check digit 2016-09-30 17:41:40 -05:00
Sean Owen 75c51f93fe
Update lax count for qr code 2 2016-09-30 17:41:01 -05:00
Sean Owen 2434efd625
Add ECI segment whenever encoding is explicitly given, even when it's the default encoding 2016-09-29 23:53:22 -05:00
Sean Owen ec383d2411 [maven-release-plugin] prepare for next development iteration 2016-09-16 15:20:51 +01:00
Sean Owen 6b6ad7ff0b [maven-release-plugin] prepare release zxing-3.3.0 2016-09-16 15:20:45 +01:00
Sean Owen 47459f4bd7 Bump SNAPSHOT to 3.3.0 for next release 2016-09-11 22:07:04 +01:00
Sean Owen 1a444601d9 Move gh-pages branch into docs/, fix/overhaul site gen and javadoc, and regenerate site for 3.2.2-SNAPSHOT 2016-09-11 20:52:01 +01:00
Sean Owen 30dc420bab More coverage for Code93/39 writers, and for multiple barcode detection 2016-09-11 13:44:13 +01:00
Sean Owen 0718d8a45f A little more coverage for PDF417 writer and multi QR code 2016-09-11 09:51:20 +01:00
Sean Owen 28c3288094 Add more tests to better cover DataMatrix, Maxicode decoding 2016-09-10 17:36:02 +01:00
Sean Owen 75d6000c1d Add 'getNumBits' to Result objects to return when not all bits of the raw byte representation are valid (#664) 2016-09-09 18:44:09 +01:00
Sean Owen b639d5748d Deprecate MonochromeRectangleDetector and more coverage-related improvements 2016-09-05 21:00:59 +01:00
Sean Owen 0895b3cefa Improve code coverage in some core classes, plus fix a small BitMatrix bug 2016-09-05 17:29:59 +01:00
fgrieu e9e2bd280b Update DataMask.java (#653)
Further micro-optimize QR data mask recognition; more comment for earlier such changes.
2016-08-28 23:12:25 +01:00
Sean Owen 7b1e1ccadb Fix some warnings from new inspection tool 2016-08-26 16:21:05 +01:00
Sean Owen 33fd85e0c2 Minor changes from inspection 2016-08-22 10:46:41 +01:00
Sebastian Buchwald 70db62d11b Optimize QR data mask recognition (#652) 2016-08-22 10:33:43 +01:00
Sebastian Buchwald 7805a7551c Fix some typos (#651) 2016-08-22 10:29:31 +01:00
Sean Owen ba6ce9fb25 Minor follow on to last QR code version hint commit 2016-08-08 11:30:18 +01:00
germinator d60c0f14bd Add ability to specify a QR code version hint. (#637)
* Add ability to specify a QR code version hint.

* Checkstyle.
2016-08-08 11:22:35 +01:00
Sean Owen f6a1e20e1b Fix one code warning; update plugins 2016-08-08 11:16:57 +01:00
fgrieu b708f95a87 Aztec decoder fix: return to Upper mode after U/S B/S sequence. (#643)
* Update Decoder.java

* Add files via upload

dlusbs.png and dlusbs.txt is a test case for the D/L [digit] U/S B/S sequence, which should end in Upper mode, not Digit mode

* Update number of test cases

* Comment logic of the fix

* Mention fixed issue #642
2016-08-08 09:09:53 +01:00
Sean Owen 2f11529aa3 A bunch of inspection changes, including some dead code removal and tightening visibility, removing unnecessary casts 2016-07-24 18:29:42 +01:00
Sean Owen d3dd1827ba Don't interpret very long strings.with.dots.like.this to be interpreted as URIs 2016-07-08 15:21:18 +01:00
Sean Owen 7e2d7c0b21 Crush some PNGs that could benefit from it 2016-07-02 14:13:11 +01:00
Sean Owen a1a51de290 Oops, fix fat finger typo from last change 2016-06-24 10:48:25 +01:00
Sean Owen 08e5431d99 Implement more style checks around whitespace 2016-06-24 10:28:00 +01:00
Sebastian Buchwald ee150757ec Fix typo (#615) 2016-06-21 21:20:16 +01:00
Sean Owen 1a5b739cdc Closes #610 : avoid AIOOBE in pure-barcode mode for obviously wrong case 2016-06-20 09:20:16 +01:00
Sean Owen 5927f6ef09 Redirect to https://zxing.org directly, and touch up a build warning 2016-06-20 09:13:21 +01:00
Sean Owen c044a946e9 Put optimization behind a profile as it won't currently work with JDK9 2016-06-13 10:25:49 +01:00
Sean Owen 3d18e3e449 Update proguard plugin to 2.0.13 2016-06-10 13:59:08 +01:00
Sean Owen 6cdc7493d5 Closes Issue #607 : guard against very narrow images which would otherwise cause an exception 2016-06-10 13:58:51 +01:00
Sean Owen b1f4b5a269 Try local-only Proguard optimization for core library 2016-06-08 18:40:27 +01:00
Sean Owen 58f748a451 Remove unneeded .gitignore, and unneeded libs copy step for Android targets. Update plugins. Fix javadoc warning / checkstyle problem. 2016-06-08 15:15:06 +01:00
Sean Owen 032e1547ae Enable some additional checkstyle rules 2016-06-04 22:40:48 +01:00
Sean Owen 389f69f4b2 Add minimal javadoc to all classes (and enforce with checkstyle); minor refactoring to of array sum code 2016-06-04 15:36:32 +01:00
Nayuki 7cf49565c2 Simplified pieces of code (#601)
* Simplify code in bit-twiddling methods, using APIs introduced in Java 5.

* Align code by adjusting whitespace and adding `+0`.

* Convert qrcode DataMask to enum to reduce source code size, which shouldn't change behavior.

* Simplify lists of character constants using string initializer instead of array.

* Remove redundant `+ 0` operations from a recent change.

* Delete the function DataMask.forReference() and inline the logic into all its callers.
2016-05-25 06:46:44 -05:00
Sean Owen c2eb20d976 Compute locale-specific expected date strings in test for JDK 9 compatibility 2016-05-23 07:18:48 -05:00
Taneli Huuskonen cc16a72c85 Simplified some code (#596)
* Fixed bug #593

Bug #593 was misleadingly reported as pertaining to another project, but
testing revealed it affected this project as well.  The Code128 encoding
algorithm failed when an odd number of digits were followed by FNC1 and
other digits.  The code selection algorithm was rewritten.  A test case
showing the bug was added, and an old test case was updated to expect
the result of the new algorithm  -  another valid encoding of the same
length as the old one.

* Fixed bug #593

Bug #593 was misleadingly reported as pertaining to another project, but
testing revealed it affected this project as well.  The Code128 encoding
algorithm failed when an odd number of digits were followed by FNC1 and
other digits.  The code selection algorithm was rewritten.  A test case
showing the bug was added, and an old test case was updated to expect
the result of the new algorithm  -  another valid encoding of the same
length as the old one.

* Cleaning up

Added a private enum and changed some names to improve readability.
Also some trivial cosmetic changes.

* Further cleanup of Code128 writer test

Removed a private one-liner method used exactly once, alphabetized
imports.

* Simplify conversion RGB -> luminance

Removed testing every pixel for greyness in RGBLuminanceSource, as it
did not appreciably change the speed of converting a greyscale image and
slowed down the conversion of a colour image by a few percent.  Besides,
there was no need to treat every row separately; the total number of
pixels was enough.

* Minor improvements to BitArray

Simplified some code, added more accurate error checking, and corrected
small inaccuracies in comments.
2016-05-12 10:06:04 +01:00
Taneli Huuskonen f0dfcdfed5 Fix for bug #593
* Fixed bug #593

Bug #593 was misleadingly reported as pertaining to another project, but
testing revealed it affected this project as well.  The Code128 encoding
algorithm failed when an odd number of digits were followed by FNC1 and
other digits.  The code selection algorithm was rewritten.  A test case
showing the bug was added, and an old test case was updated to expect
the result of the new algorithm  -  another valid encoding of the same
length as the old one.

* Fixed bug #593

Bug #593 was misleadingly reported as pertaining to another project, but
testing revealed it affected this project as well.  The Code128 encoding
algorithm failed when an odd number of digits were followed by FNC1 and
other digits.  The code selection algorithm was rewritten.  A test case
showing the bug was added, and an old test case was updated to expect
the result of the new algorithm  -  another valid encoding of the same
length as the old one.

* Cleaning up

Added a private enum and changed some names to improve readability.
Also some trivial cosmetic changes.

* Further cleanup of Code128 writer test

Removed a private one-liner method used exactly once, alphabetized
imports.
2016-05-08 15:01:41 +01:00
Sean Owen 84d08ef61f Revert inadvertent change to non-private API 2016-05-08 09:30:51 +01:00
Sean Owen 30bb62bf4f Minor changes from inspection 2016-05-08 09:13:41 +01:00
Taneli Huuskonen ee48b3e5d3 Cleaned up previous commit
Following Sean Owen's suggestions, I cleaned up my code in the Aztec
decoder and its tests as follows:

1. Made convertBoolArrayToByteArray() package-private.
2. Replaced my own assertEqualByteArrays() with existing
   assertArrayEquals().
3. Replaced C-style array declarations with more Javaish ones.
2016-05-05 21:58:37 +03:00
Taneli Huuskonen e9896d03a6 Aztec decoder returns raw bytes
The Aztec decoder now packs the code bits into bytes and returns them as
"raw bytes", even though the error correction codes and stuffing have
been already removed.  Also added a couple of tests for the byte-packing
function.
2016-05-05 15:10:44 +03:00
Alex Hatzenbuhler 8b53e448db Fix spelling mistake in error message 2016-04-20 14:50:35 -05:00
Sean Owen 308d91de1c Update plugins, dependencies, and clean up small code inspection issues 2016-01-21 14:46:48 +01:00
Kbhredsox 79b8454186 Update ITFWriter.java
Fixed spelling of text within "invalid input" exception.
2015-12-02 19:05:48 -05:00
sato yoshiyuki 585f77bf39 QRCode Encoder: Support NUMERIC/ALPHANUMERIC Mode in Shift_JIS 2015-12-03 00:12:43 +09:00
Sean Owen 9910fcfaa9 Closes issue #496 : correct checksum for certain Code 39 inputs 2015-11-11 09:37:13 +00:00
mmagician 9cf93792d4 Added a Code 93 encoder 2015-10-18 23:39:03 +01:00
Sean Owen a6707cb440 Alter many encode hints to accept String equivalents 2015-10-05 14:13:17 +01:00
wood a2159ed0f4 change the comment
Change the comment
2015-10-02 00:23:07 +08:00
Sean Owen e0ea32f217 Fix two rare crashes from bad input / state 2015-09-22 22:24:38 +01:00
RX1226 17676d064a Add support encoding UPC-E format 2015-09-04 21:59:41 +08:00
Guenther Grau 825a31e4b5 Ignore additional PDF417 barcode rows
Some barcode generators (e.g. Okapi) seem to generate additional barcode
rows at the end of the barcode, which can be decoded as valid barcode
rows, but actually contain garbage. The barcode metadata states that
these additional rows are not part of the barcode. So we ignore those
addional rows when parsing the barcode. This could potentially also
happen (though quite unlikely) if data after the barcode looks like a
barcode row.
2015-09-01 14:12:17 +02:00
Sean Owen 585667bc31 [maven-release-plugin] prepare for next development iteration 2015-08-19 13:21:05 +01:00
Sean Owen e641a9c36b [maven-release-plugin] prepare release zxing-3.2.1 2015-08-19 13:21:00 +01:00
Sean Owen 4dd053a919 Merge pull request #441 from gredler/pdf417-error-correction-level
PDF417Writer shouldn't ignore ERROR_CORRECTION hint
2015-08-14 08:07:49 +01:00
Daniel Gredler 53875e4fd3 PDF417Writer shouldn't ignore ERROR_CORRECTION hint 2015-08-13 21:21:26 -04:00
Sean Owen c1c2fcfbb0 Issue #428 Fix Code 93 escapes above %F 2015-07-21 11:09:24 +01:00
Andreas Wenger cc1a7aa86a Set PDF_417 lineThickness to 1
- fine-grained scaling for PDF_417 generation
2015-07-15 15:51:24 +02:00
Sean Owen 3b8ab085d8 Merge pull request #412 from strguntbr/multibyteFix
Fixed substring call
2015-07-02 17:15:42 +01:00
Marcus Winkler 18a72279dd Added unittest for PDF417 encoder using ISO-8859-1 with special chars 2015-07-02 17:55:00 +02:00
Marcus Winkler e31ac261e3 Fixed substring call 2015-07-02 17:15:11 +02:00
Sean Owen 02d3697a59 Remove spurious stack trace from singleton exception, and various minor edits 2015-06-06 10:46:18 +01:00
Sean Owen ea9a260f0a Fix javadoc 8 error; actually enable enforcer; update plugins 2015-05-25 23:54:50 +01:00
Marcus Winkler 849f81354c Fixed multibyte charset problem when encoding PDF417 with Compaction AUTO 2015-05-20 13:01:26 +02:00
Marcus Winkler 060010253c Added unit test for multibyte problem 2015-05-20 13:00:38 +02:00
Sean Owen 8bae23a923 Revert another change that causes a whirr failure, fix rat warnings, and one more error on Android generated files 2015-05-15 16:23:18 +01:00
Sean Owen 867d580e66 Enable RAT check in build; enable checkstyle; fix some violations; update Jetty/Android plugin 2015-05-15 15:44:45 +01:00
Sean Owen ec9487c0b2 Fixes from coverity 2015-05-13 13:04:43 +01:00
Sean Owen 560cba85b0 Update plugins (now requires Maven 3.2); fix javadoc warning 2015-05-03 20:49:10 +01:00
Sean Owen 721723ecee Revert "minSize from provided sizes" 2015-05-03 20:47:43 +01:00
Sean Owen 8475bf6fd2 Remove system-dependent line separator logic in BitMatrix 2015-02-23 16:08:44 +00:00
Sean Owen e4bb497942 [maven-release-plugin] prepare for next development iteration 2015-02-15 12:48:15 +00:00
Sean Owen adfc4097ad [maven-release-plugin] prepare release zxing-3.2.0 2015-02-15 12:48:10 +00:00
Sean Owen 625d9b77d7 Additional fix for issue #300 (HT micjahn) 2015-02-06 21:39:28 +00:00
Sean Owen 4b02337709 Issue #300 : simplify X12 encodation at end of input stream to fix unlatch issue. HT micjahn 2015-02-04 07:45:35 -06:00
Bo Xu cfeb6758db Fix PDF417 numeric encoding grouping index check 2015-01-15 12:01:49 -08:00
Sean Owen 0fc1a267c0 Tiny fixes from coverity; fix SuppressWarnings for deprecation; just one Java 7 build now 2015-01-11 16:15:14 +00:00
Sean Owen 51bee78535 Supplement for #271 to deprecate alternative min/max size hint 2014-12-17 21:59:35 +00:00
Zavael ea00f5a51c minSize from provided sizes
create minSize Dimension from provided width and height
2014-12-17 15:41:33 +01:00
Sean Owen ce1fbe1b76 Cleanups while looking at issue #268 2014-12-13 17:13:39 +00:00
Sean Owen 344d55e688 Closes #262 : fix parsing of Data Matrix with dimension >= 144 2014-12-04 16:45:48 -06:00
Sean Owen d876b3e178 Follow up on commit for issue #242 2014-10-30 21:40:02 +00:00
Mark b04edfec68 squash changes 2014-10-27 18:35:26 +01:00
Sean Owen 79bd5f585e Add simple test for PDF417 high level encoder 2014-10-06 23:01:40 +01:00
Sean Owen 9dfeb03611 Add simple test to try codecov.io 2014-10-02 20:43:48 +01:00
Sean Owen 3b0145dbc8 Fix tiny java 8 javadoc warnings 2014-09-02 16:39:33 +01:00
Sean Owen 0111b72eaa Issue #202 correctly report absolute ResultPoint coordinates 2014-08-18 00:23:49 +01:00
Sean Owen e4ff7d9bb9 Issue #197 : handle escaped backslash preceding terminator 2014-07-30 12:18:04 +01:00
Sean Owen 281721f2d9 Avoid another NPE on null ResultPoint 2014-07-28 10:13:27 +01:00
Sean Owen 8158984458 Support multiple "to", and CC and BCC, throughout the email result API. 2014-07-25 22:53:17 +01:00
Sean Owen e715fec42a Avoid NPE when underlying result point is null, for some reason 2014-07-24 12:05:50 +01:00
Sean Owen a0c53e0558 Issue #179 : add default start/end guard to Codabar if not specified, for symmetry with decoder 2014-07-03 23:19:28 +01:00
Sean Owen 6c2a9b016c Touch up whitespace and other small issues from inspection 2014-06-28 22:34:37 +01:00
Sean Owen 787a4497ba Issue #166 let byte compaction proceed in cases where it 'thought' text compaction would take over, but it had not 2014-06-10 17:58:59 -04:00
Sean Owen d70ef416ec Issue #166 handle a shift to byte mode properly outside of a compaction mode handler 2014-06-10 08:41:53 -04:00
Sean Owen e28b0116e0 Add support for consuming and using ECI in PDF417, closing issue #166 2014-06-08 12:13:17 -04:00
Sean Owen b2f059b07b Return to ISO-8859-1 as default PDF417 encoding, as per discussion of spec in issue #166 2014-06-08 12:12:24 -04:00
Sean Owen 1b43233ba7 Issue #166 consume ECI in PDF417; still need to use it 2014-06-05 23:22:21 +01:00
Sean Owen cdcccab200 Issue #168 : don't emit symbols for empty numeric compaction in PDF417 2014-06-05 21:30:48 +01:00
Sean Owen f4b7264413 Issue #167 : recognize protocols like opc.tcp as valid URI schemes 2014-06-05 18:26:36 +01:00
Sean Owen 84643199a9 Closes issue #162 : PURE_BARCODE fails on certain dense QR codes 2014-05-31 21:04:54 +01:00
Sean Owen 90cc0b8b13 [maven-release-plugin] prepare for next development iteration 2014-05-22 16:24:03 +01:00
Sean Owen 4af41323ae [maven-release-plugin] prepare release zxing-3.1.0 2014-05-22 16:19:05 +01:00
Sean Owen 45da6416e6 [maven-release-plugin] rollback the release of zxing-3.1.0 2014-05-22 16:10:10 +01:00
Sean Owen d20a7ac375 [maven-release-plugin] prepare for next development iteration 2014-05-22 12:34:50 +01:00
Sean Owen edf35c7cac [maven-release-plugin] prepare release zxing-3.1.0 2014-05-22 12:33:24 +01:00
Sean Owen 6b9a59a593 Remove home-grown binary search function in PDF417Common 2014-05-22 09:21:55 +01:00
Sean Owen 77aabfc457 Issue #147 : handle corner case as normal failed read rather than AIOOBE 2014-05-15 13:26:04 +01:00
Sean Owen 151ad6818b Issue #127 : fix typo in table of PDF417 punctuation chars 2014-04-28 21:09:56 +01:00
Sean Owen 98bc57f5d1 Avoid error on malformed Aztec code 2014-04-25 13:36:43 +01:00