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

Fixed problems with S25 barcode #611

Merged
merged 1 commit into from
Sep 6, 2023
Merged

Conversation

theonlytruth
Copy link
Contributor

Using your S25 barcode generator I found a problem. The representation of the digit 8 was the same as 0. I fixed it. Now it is recognized correctly.

Additionally you were using different bar widths for the start and stop values. I changed this too.

One thing I did not change till now is the part where you add an leading 0 if the string is odd. Why do you do so? I can't find anything that S25 has to be even. Maybe you mixed it up with interleaved 2 of 5 bar code where you need the even number because the digits are represented from pairs of bars and whitespaces?

Using your S25 barcode generator I found a problem. The representation of the digit 8 was the same as 0. I fixed it. Now it is recognized correctly.

Additionally you were using different bar widths for the start and stop values. I changed this too.

One thing I did not change till now is the part where you add an leading 0 if the string is odd. Why do you do so?
@CLAassistant
Copy link

CLAassistant commented May 4, 2023

CLA assistant check
All committers have signed the CLA.

@nicolaasuni
Copy link
Member

Can you please check/use the https://github.com/tecnickcom/tc-lib-barcode instead?

@theonlytruth
Copy link
Contributor Author

Can you please check/use the https://github.com/tecnickcom/tc-lib-barcode instead?

I checked it and if I'm not wrong S25 is not implemented yet. No code in the formatCode function.

@williamdes williamdes mentioned this pull request Aug 2, 2023
Copy link
Member

@nicolaasuni nicolaasuni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was already fixed in tc-lib-barcode.

@nicolaasuni nicolaasuni merged commit 26d2eed into tecnickcom:main Sep 6, 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.

3 participants