Skip to content

Code 128 - Possibly invalid output - Check digit shown, Code-C issues #50

@Zilhym

Description

@Zilhym

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.

Encoded			Original		As displayed on web browser (.woff2)
-------			--------		------------------------------------
Í  #;É-1ÈÎ		00000327-1		000327-1
Í  #<É-1!Î		00000328-1		000328-1
ÌPa-KKKBN-198UÎ		Pa-KKKBN-198	
ÌEC-10mDÎ		EC-10m
ÌEC-2myÎ		EC-2m
ÌEC-72mfÎ		EC-72m
ËBA-AP-LiÎ		BA-AP-L
ËASDL-260RÎ		ASDL-260
ÌBa-GBP-L9Î		Ba-GBP-L
ÌBa-GBP-SqÎ		Ba-GBP-S
ÌBA-P-RackÅÎ		BA-P-Rack
ÌBa-LBP-SÉÎ		Ba-LBP-S

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):

Í "Î

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions