Open ctc87 opened 4 years ago
I tried a couple of barcode readers (including this one online), and the former barcode doesn't match the input string, but the generated one reads properly.
Can you clarify a bit more what's wrong?
@WhyNotHugo According to GS1 specs for GS-128, the parentheses enclosing the Application Identifiers (AIs) should be visible in the Human Readable Interpretation (HRI) (the string below the barcode) but should NOT be encoded in the barcode itself.
Oh, I'd no idea. Do you have a link to this spec?
I guess the right fix then would be for this lib to add the parenthesis to the generated label, but not to the barcode itself.
GS1 General Specifications For GS1-128 see Pages 272-286
Regarding the parentheses in HRI see page 229: chapter 4.15, rule 3
Keep the specs at hand. It's a great source of information and the fact that it is freely available makes it invaluable.
I'll be around if you need anything else and I can help!
Finally y use external string with the barcode to generate the final image. The problem was the parentesis . Thx for aswer.
Please reopen. This does not work as it should.
Srry.
I believe #100 (which has just been merged) should have fixed this.
Can you confirm this works fine?
Unfortunately it doesn't. I skimmed through the code and the PR has to do with EAN13 not GS128 (aka code128) and adding guard bars.
Parentheses are still encoded in the barcode. Am I missing something?
My bad, mixed up barcodes 😅
Any news on this one?
Hi, if you do :
gs1 = barcode.get_barcode_class('gs1_128')
barcode_img = gs1('90502087191121904229589045190400011980', writer=ImageWriter())
if you compare the image generated with the right image below, you can see they are diferent.
You read codebar generated, but in some cases it doesn't work.
When create barcode from string :
`
def generate_barcode(self):
` The expected result its: The result obtanides its: