-
Notifications
You must be signed in to change notification settings - Fork 103
Add structured append support to QR Code #126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add structured append support to QR Code #126
Conversation
|
Thanks for the contribution! It may be a few days before I'm able to review it, but I will get to it later this week. |
|
I just saw that there is a Checkstyle violation. I will take care about it asap. Update: I added the missing license header. |
557c76c to
c021f45
Compare
|
Starting to review, but can you add 7 test cases under
Here's the 4-symbol sequence in the standard which it would be nice to recreate for the first symbol sequence: |
|
Sure, i will work on that on the weekend. |
|
@gredler done. I detected an issue in the creation of the parity: I always used a fixed encoding. Now I use the same which will be used to encode the actual data (as defined in the spec). |
gredler
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good overall!
src/test/java/uk/org/okapibarcode/backend/QrCodeAutoStructuredAppendTest.java
Outdated
Show resolved
Hide resolved
src/test/java/uk/org/okapibarcode/backend/QrCodeAutoStructuredAppendTest.java
Outdated
Show resolved
Hide resolved
src/test/java/uk/org/okapibarcode/backend/QrCodeAutoStructuredAppendTest.java
Outdated
Show resolved
Hide resolved
src/test/resources/uk/org/okapibarcode/backend/qrcode/structured-append-1-of-4.properties
Show resolved
Hide resolved
...esources/uk/org/okapibarcode/backend/qrcode/structured-append-eci-japanese-1-of-3.properties
Show resolved
Hide resolved
Co-authored-by: Daniel Gredler <daniel.gredler@gmail.com>
Co-authored-by: Daniel Gredler <daniel.gredler@gmail.com>
Co-authored-by: Daniel Gredler <daniel.gredler@gmail.com>
Co-authored-by: Daniel Gredler <daniel.gredler@gmail.com>
Co-authored-by: Daniel Gredler <daniel.gredler@gmail.com>
Co-authored-by: Daniel Gredler <daniel.gredler@gmail.com>
Co-authored-by: Daniel Gredler <daniel.gredler@gmail.com>
Co-authored-by: Daniel Gredler <daniel.gredler@gmail.com>
Co-authored-by: Daniel Gredler <daniel.gredler@gmail.com>
Co-authored-by: Daniel Gredler <daniel.gredler@gmail.com>
Co-authored-by: Daniel Gredler <daniel.gredler@gmail.com>
Co-authored-by: Daniel Gredler <daniel.gredler@gmail.com>
Co-authored-by: Daniel Gredler <daniel.gredler@gmail.com>
Co-authored-by: Daniel Gredler <daniel.gredler@gmail.com>
Co-authored-by: Daniel Gredler <daniel.gredler@gmail.com>
Co-authored-by: Daniel Gredler <daniel.gredler@gmail.com>
Co-authored-by: Daniel Gredler <daniel.gredler@gmail.com>
Co-authored-by: Daniel Gredler <daniel.gredler@gmail.com>
Co-authored-by: Daniel Gredler <daniel.gredler@gmail.com>
|
@gredler thank you very much for the review. I resolved or responded to all comments, except the ones regarding the additional error test cases (I am still working on that). The commit history got a bit messy, as I took over the suggestions one by one, but I assume you agree if I squash my commits after all comments have been resolved. I will let you know as soon as I created the additional test cases. |
|
@gredler I am done with my changes. Let me know what you think. |
|
Did you regenerate the three ECI images after changing the parity? It looks like the tests are failing during the image comparison. |
Ah, I was just wondering why the test fails... thanks! |
gredler
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I may look at refactoring a few pieces to reduce duplication, but I need to check whether it makes sense or not. Thanks for the contribution!

Hello! I would like to use this library to generate QR codes, but need the structured append mode. I tried to stick to the style of the
QrCodeclass and the structured append mode implementation ofPdf417, but the implementation could be optimized (e.g. I could move the automated structured append symbol generation of both symbol classes to a common place). Please let me know what you think.