-
Notifications
You must be signed in to change notification settings - Fork 316
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 a C40 encoder #283
Added a C40 encoder #283
Conversation
@metafloor I'll pick this up in BWIPP here: bwipp/postscriptbarcode#216 |
@BiosencyAdmin BWIPP is the PostScript library that BWIP-JS transliterates. |
From BWIPP release 2013-02-16 you can now do:
|
I will roll the new BWIPP release into bwip-js later today (late evening Colorado time). |
Using @terryburton's example data and options, release v3.3.0 is generating the following: @BiosencyAdmin : Can you verify the format of the scanned barcode is correct for your needs? |
Hi ! Thank you both for your quick reply and your time !
Tested : it works properly :) |
Good to hear. I am going to close this out since the change was successfully incorporated upstream. |
This encoder is based on the mailmark encoder and allows to encode a given number of characters in C40 without other constraints.
In our case, we need this encoder to follow some requirements of the french government regarding the data digitization of the french health system. (probably the same problematic as asked by @Epono in #245)
References for the curious :
Since I'm not familiar with postscript, there may be some mistakes, but the generated datamatrix works on my side.
I also modified the mailmark encoder to use a
c40headerdatamatrix
variable instead ofmailmark
, for factorization's sake (behavior will be the same, with the newc40headerlength
having a default value of 45)