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

Data Matrix - selectable encoding #41

Open
ken-sands opened this issue Jan 7, 2015 · 6 comments
Open

Data Matrix - selectable encoding #41

ken-sands opened this issue Jan 7, 2015 · 6 comments
Assignees

Comments

@ken-sands
Copy link

ken-sands commented Jan 7, 2015

There are cases where selecting a fixed encoding method is preferable over automatic selection for minimum barcode size. (some systems are fixed to read only certain types)

I'd suggest reintroducing the "encoding=???" options so the default can be overridden.

@ken-sands ken-sands changed the title datamatrix - selectable encoding Data Matrix - selectable encoding Jan 7, 2015
@terryburton terryburton self-assigned this Jan 7, 2015
@terryburton
Copy link
Member

Plan is to create a dedicated encoder for the Royal Mail Mailmark application of non-standard DataMatrix which mandates the use of C40 encoding except for the customer detail field where a latch to any other encoding can be used. Too specific a specialisation to pollute the datamatrix encoder with this.

Requires introducing a raw mode to the datamatrix encoder so that the encoded codewords can be passed directly.

@ken-sands
Copy link
Author

For anyone in need of enforcing a c40 encoding before that is done, the earlier version here https://github.com/bwipp/postscriptbarcode/blob/5dfc33e823c582a1ffa47e9d6c768095c637203e/src/datamatrix.ps allows passing the encoding=c40 flag, which will give you a compliant barcode (if not one that allows the freedom of any encoding for the last bit).

@luxlux
Copy link

luxlux commented Jun 19, 2016

Is there a way to use a base256 encoding, which is used by Deutsche Post?

When I try libdmtx with the -e8 option for base256, the resulting Data Matrix code is 100% the same as the matrix code generated by Deutsche Post. So it looks like they use a pure base256 encoding, for their completely HEX encoded stamps.
Unfortunately libdmtx does not help me, because i need to do it in javascript for a chrome app...

@andreygursky
Copy link

To have a control over encoding would be a good feature (e.g., auto, ascii, text, base256,..).

@terryburton
Copy link
Member

Coming, but stuck behind some tricky rendering enhancements...

@terryburton
Copy link
Member

Option added to support Royal Mail Mailmark encoding requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants