Hi!
Thank you for a great module. It looks very promising but I'm having some issues.
I'm trying to install the barcode module on my site to generate barcodes based on node id. I'm using hook_node_api() to change the value of my field to the desired code together with the theme_barcode_formatter_default().
It seems it generates the code fine but I get a small duplicate of the code below the 'main' code. I am a novice in barcodes and it could be that this is the way code128 is displayed but in all the examples I see of code128 on the net there is no 'small duplicate' under the 'main barcode'.
When I try to read the generated barcode with my reader it doesn't recoginze the code and can't scan it. I've attached an image of a code with the value 1064 for you to have alook at.
Is this a code issue or is it my ignorance in how this stuff actually works that is the problem? Is my reader broken an everything else is fine?
Could it be my font that is faulty? Attaching my ttf font as well. I've tried several different fonts but this is the one that has generated the barcode that looks 'most right'.
Span
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | barcode-Code128-reading-problem-799394-16.patch | 4.62 KB | eeahktzugr |
| #14 | barcode-Code128-reading-problem-799394-0-7.patch | 4.33 KB | sergey-serov |
| code128.ttf_.zip | 2.21 KB | span | |
| 1064CODE128.png | 375 bytes | span |
Comments
Comment #1
span commentedMore information about above:
After reading more and more about how barcodes work I'm wondering if the start and stop characters are implemented by the module itself or if I have to specify these in each value I want a barcode to be generated from? I've scanned the code and I do find that some HEX values are added so I assume that is the values for the prefix and suffix of the generated value?
Comment #2
gnugu commentedHi,
I'm having problem scanning Code128 generated by this module.
Did you have any luck? Does your code128 scan at all?
Thanks.
Comment #3
span commentedI gave up and started using this service instead:
http://www.barcodesinc.com/generator/index.php
Good luck.
Comment #4
span commentedComment #5
yonailo+1 subscribing as I also got the same problem.
Comment #6
davidhernandezI've been playing around with the Harish Chauhan barcode class from phpclasses.org and have found several mistakes with it, and have a lot of problems with the code128 barcodes it creates. A lot of it seems to depend on the length of the string. Has anyone else noticed this? It seems odd length codes get padded with a zero in the front, but the generated barcode is not correct either way.
Comment #7
skyredwangCan you submit a patch?
Comment #8
kpolymorphic commentedI have the same issue in 6.x-2.x-dev, I can add that I have troubleshot the thing down to generation of code128-C (numeric only) codes. It seems to do okay with code128-B (alpha-numeric) codes.
You can compare here: http://www.barcodesinc.com/generator/index.php. Their code128 generations work properly.
Comment #9
davidhernandezIs this module being actively developed? I could spend some time reworking the php class.
Comment #10
aCCa commentedSame problem for me on 6.x-2.x-dev. I can give help on testing it.
Subscribe.
Comment #12
cstoreoffice12 commentedthanks for your information. I have same problem. is there any way solve it. regards mark inventory control software
Comment #13
sergey-serovGood day!
I found as minimum one problem in the 'code128' algorithm. And how it may be fast avoid it.
If string contains only numbers - result barcode will be unreadable for scanner.
But if You add just one symbol into string - everything will be good!
To decode and check correctness online without scanner and printer (save paper, save trees) is possible here:
http://zxing.org/w/decode.jspx
Good luck!
Comment #14
sergey-serovGreetings to All!
I was found place where was mistake.
In array for encoded keys are using as values, which is necessary to encode.
For example:
So problem here that in algorithm "C" is necessary to encode TWO numbers. Always. Not one.
So we need to change array keys for "C" algorithm, make them double.
This is correct version:
Comment #15
alimbert commentedMy 128 barcodes aren't scannable. Will this fix the problem? Can you detail the solution?
Comment #16
eeahktzugr commentedThis is a fix for the sergey-serows patch. The patches fixes check numbers in Code128 C. The older patch didn't take count for that the check number comes in one digit, so there would be no coding in the table for them. This Patch fixes that issue and it also includes Sergey-Serows changes.