Skip to content
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

Added two feature flags and charset selection on init #223

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fefc
Copy link

@fefc fefc commented Mar 25, 2024

Feature flag: enable_optimization
To me it seems like the optimization could create a wrong barcode so I have added the ability to enable or disable the optimization
Example: Say you would like to generate a CODE128C barcode with a payload like 995560. The optimization would remove the 99 from the barcode. If you then scan the barcode the content is 5560.

Feature flag: enable_hybrid_charset
In some cases you might want to have a pure CODE128A, CODE128B or CODE128C barcode so I have added the ability to enable or disable the current way of generating barcode which allows hybrid charset.

Looking at some specs, hybrid char set is not really the standard: https://en.wikipedia.org/wiki/Code_128

All changes I've made don't change the current way of generating barcode unless you disable the new flags. It's 100% backwards compatible.

Feature flag: enable_optimization
To me it seems like the optimization could create a wrong barcode so I have added the ability to enable or disable the optimization
Feature flag: enable_hybrid_charset
In some cases you might want to have a pure CODE128A, CODE128B or CODE128C barcode so I have added the ability to enable or disable the current way of generating barcode which allows hybrid charset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant