Add EAN-8 barcode support#341
Open
Joebu wants to merge 2 commits into
Open
Conversation
Adds end-to-end support for the EAN-8 barcode (^B8) symbology, which was
previously missing from the label, analyzer, and viewer projects.
- BinaryKits.Zpl.Label
- New ZplBarcodeEan8 element that emits ^B8 ZPL with the same parameters
as ZplBarcodeEan13 (orientation, height, interpretation line, etc.).
- Adds a unit test mirroring BarcodeEan13.
- BinaryKits.Zpl.Viewer
- New CodeEAN8BarcodeFieldData model and CodeEAN8BarcodeZplCommandAnalyzer
to parse ^B8 commands.
- FieldDataZplCommandAnalyzer creates a ZplBarcodeEan8 when the next field
data is an EAN-8 barcode.
- New BarcodeEAN8ElementDrawer renders the barcode using ZXing's
EAN8Writer and draws the standard 4|4 interpretation line below the
barcode with guard tails (67-module layout: 3 + 4*7 + 5 + 4*7 + 3).
- Registers the new analyzer and drawer in ZplAnalyzer and
ZplElementDrawer respectively.
Made-with: Cursor
Made-with: Cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds end-to-end support for the EAN-8 barcode (^B8) symbology, which was
previously missing from the label, analyzer, and viewer projects.
BinaryKits.Zpl.Label
as ZplBarcodeEan13 (orientation, height, interpretation line, etc.).
BinaryKits.Zpl.Viewer
to parse ^B8 commands.
data is an EAN-8 barcode.
EAN8Writer and draws the standard 4|4 interpretation line below the
barcode with guard tails (67-module layout: 3 + 47 + 5 + 47 + 3).
ZplElementDrawer respectively.