-
Notifications
You must be signed in to change notification settings - Fork 26
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
Code 128 - Possibly invalid output - Check digit shown, Code-C issues #50
Comments
Hi @Zilhym, thanks for reporting.
Good news first! I just cross checked your encodings with my Code 128 Encoder and the results are consistent. Despite of the two Code-A lines, where my encoder also uses Code-B, but it's equivalent in length and encoded value.
Since I have no issue displaying those codes in Firefox and Chrome (on Linux) and since Microsoft Software is known to be problematic in its support of OpenType features, I tend to think this is a duplicate of #34 i.e. missing support for the What web-browser does produce incorrect renderings?
This sounds not good to me, I'm not sure if it needs to be followed up. Of what nature are the differences? In general, you can drop screenshots into these issues, that can greatly help with identifying what is going on. |
00000327-1 shows up as 000327-1 00000328-1 shows up as 000328-1 These results were on Firefox for Windows (and possibly on Microsoft Edge on Windows). This was one of the differences I mentioned between the .ttf rendering on Windows Applications and the .woff2 on the web browser. The workaround suggested, of substituting SPACE with  (LATIN CAPITAL LETTER A WITH CIRCUMFLEX) seems to fix this issue. If I find any other differences I'll post them later. Is the space substitution really always necessary, even on Web Browsers? If the above substitution is always safe in all contexts. maybe I should update my encoder to always substitute spaces? Any other substitutions or workarounds I should be aware of (Any place I can find a complete list)? If you think the .ttf issues are Microsoft Software bugs or Software Bugs in general, can you suggest an application (possibly available on PortableApps.com) for Windows, that does work correctly? This is a sample of what I get on Word, and possibly WordPad as well as Notepad. Do you believe the visibility of the check digit is also caused by the calt issue? It does seem to work correctly for at least two codes. I did a few tests before, but didn't keep a record of all the results. Need to do more tests. If you think I'm using your fonts incorrectly, please let me know... |
Ah, I figured out what was wrong on the browser. It was just a white-space collapsing issue. Adding |
Your encoder doesn't seem to encode control characters (Code-A ?). Have you tested that? I tried the implementation at graphicore.github.io I got a null return. What did I do wrong?
|
I take this as a feature request to add an option to the encoder that outputs
I don't think that type of input was really considered, because the use case was just user-input in a web browser. But I appreciate the suggestion and will look into it together with #46
This will have to be documented.
Well, since the invisibility of the check digit is actively made by a |
The following are a few sample codes that seem to render incorrectly, and also there are a few differences between the .woff2 available on Google Fonts and the .ttf versions.
The Code-C codes (first two) show up incorrectly on both Windows (Word/WordPad/Notepad) and Web Browser. Code-C sequences of zeros (00s) do not show up on web browser unless possibly followed by some other (non-space) character.
The rest, except the last two display the check digit, which I believe should be suppressed/invisible.
On Microsoft Edge, the print (i.e. Print Preview, Print to PDF) is garbled further.
The encoding was done using an algorithm ow my own devise, designed to attempt to produce optimal (shortest possible) codes when possible. I haven't yet found any problem or inconsistency in the encoder/decoder. One locale specific string-comparison issue recently discovered has already been fixed. The problems seem to be with your fonts.
I haven't yet published the Encoder/Decoder .NET libraries or the Source Code.
See also (for example):
Í "Î
The text was updated successfully, but these errors were encountered: