Comments (6)
Sorry, was wrong. Those specifications are truly horrible.
I added a --gs1 flag that adds a proper FNC1 at the start. It also removes any possible ]d2 identifier at the start.
FNC1 in the middle still won't work, at least if they need to be encoded as FNC1 (some specs talk about using the GS ASCII code instead, but it is unclear if that is only the representation on the DataMatrix decoder output side or if it is allowed inside the DataMatrix code).
from iec16022.
As far as I can tell FNC1 is simply a byte of the value 232.
So all you need to do is pass it a string with that.
On Linux, something like this should do it: ./iec16022 -f UTF-8 "$(printf \xE8test)"
I don't have reader that understands GS1 data matrix though to check.
from iec16022.
Thanks for your response rdoeffinger.
I see that I am running 2.4, so I do not have the UTF-8 format. I am having trouble using make on my linux distro with the source code I downloaded from the releases page. Attempting to follow the INSTALL directions, I simply type
"make" which results in "make: *** No targets specified and no makefile found. Stop."
or
"make -f Makefile.am" which results in "make: *** No targets. Stop."
Obviously I have never ran make before. Am I performing the install incorrectly?
In the meantime, I know that this site identifies the FNC1 and notes the DataMatrix as a GS1 code if you want to test your output before I get through the install: https://online-barcode-reader.inliteresearch.com/default.aspx .
Thanks for your help.
Rex
from iec16022.
You don't need the UTF-8 output, it's just more convenient than having to use an image viewer to see and test the result.
Due to the numerous and somewhat serious bugs you'll probably want to use a newer version anyway though.
I fixed the instructions, in particular autogen.sh and configure were missing. I hate autotools and the extra complexity they create but I don't want to replace the build system for now.
In addition my comment was wrong. The GS1 specification is a mess. FNC1 is encoded as byte value 29 (\x1D), however that only applies if it is used as a separator.
A FNC1 at the start is simply encoded as ]d2.
Thus encoding the string "]d200123456780000000001" results in a GS1 datamatrix.
from iec16022.
Wow! Thanks rdoeffinger! I was able to update to the master file with your updated install doc (I did not have any of the autotools installed). You definitely have the GS1 tag working, thanks! I will do some attempts for the separation character and let you know.
Also, for that online code reader link I posted earlier, I needed to scale up the image in GIMP since it can't read the single-pixel PNG iec16022 generates. From what I recall on using other software, it should show {GS} if it is correct.
from iec16022.
Alright! I think you got it! I was able to duplicate the results from an image from a GS1 guidance doc.
From guidance:
The actual datamatrixes look a little different though. I plan to have access to a verifier soon so I can test it out more rigorously.
Thanks again for your help rdoeffinger!
from iec16022.
Related Issues (16)
- Barcode with newlines creates unreadable Stamp and Eps images HOT 4
- GPLv3 HOT 3
- ./configure: syntax error near unexpected token `POPT,' HOT 5
- Incorrect results HOT 4
- Missing tag for release 0.3.1 HOT 2
- Unchecked writes may cause corrupted output file
- Publish mail address of signing public key of iec16022 at keys.openpgp.org? HOT 3
- Stripped characters from data in barcode HOT 2
- SONAME version should have been increased
- Update package meta data HOT 1
- Consider adding "make dist" packages to releases HOT 1
- How to compile in macOS? HOT 5
- Windows binary does not output HOT 3
- Windows PNG HOT 2
- Change text version characters HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iec16022.