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 a C40 encoder #283

Closed
wants to merge 3 commits into from
Closed

Added a C40 encoder #283

wants to merge 3 commits into from

Conversation

BiosencyAdmin
Copy link

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 of mailmark, for factorization's sake (behavior will be the same, with the new c40headerlength having a default value of 45)

@terryburton
Copy link

@metafloor I'll pick this up in BWIPP here: bwipp/postscriptbarcode#216

@terryburton
Copy link

@BiosencyAdmin BWIPP is the PostScript library that BWIP-JS transliterates.

@terryburton
Copy link

terryburton commented Feb 16, 2023

From BWIPP release 2013-02-16 you can now do:

encoder: datamatrix
data: IS010000000000000000000000S1110086322083060S21.2.250.1.213.1.4.8^029S3MICHELINE JEANNE DENISE^029S4MICHU^029S5FS611/05/1945S706220
options: c40headerlength=26 parse

@metafloor
Copy link
Owner

I will roll the new BWIPP release into bwip-js later today (late evening Colorado time).

@metafloor
Copy link
Owner

Using @terryburton's example data and options, release v3.3.0 is generating the following:

image

@BiosencyAdmin : Can you verify the format of the scanned barcode is correct for your needs?

@BiosencyAdmin
Copy link
Author

Hi ! Thank you both for your quick reply and your time !

Using @terryburton's example data and options, release v3.3.0 is generating the following:

image

@BiosencyAdmin : Can you verify the format of the scanned barcode is correct for your needs?

Tested : it works properly :)

@metafloor
Copy link
Owner

Good to hear. I am going to close this out since the change was successfully incorporated upstream.

@metafloor metafloor closed this Feb 21, 2023
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.

4 participants