nos expected result with gs1_128 #75
Labels
No labels
api-inconsistency
automerge
bug
contributions welcome
documentation
duplicate
enhancement
good first issue
invalid
more-information-needed
question
sync
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
WhyNotHugo/python-barcode#75
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When create barcode from string :
`
def generate_barcode(self):
`


The expected result its:
The result obtanides its:
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 :
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.