Skip to content

Add FNC1 (and GS1) support#97

Open
sh4dowb wants to merge 1 commit intoNaturalHistoryMuseum:masterfrom
sh4dowb:master
Open

Add FNC1 (and GS1) support#97
sh4dowb wants to merge 1 commit intoNaturalHistoryMuseum:masterfrom
sh4dowb:master

Conversation

@sh4dowb
Copy link

@sh4dowb sh4dowb commented Aug 3, 2023

Support FNC1 char function in libdmtx: dmtx/libdmtx#10

Simply pushing \x1d currently results in ASCII RS codeword (030) instead of actual FNC1 codeword (232), this commit fixes that.
As opposed to #96 FNC1 is not prepended by default since it can be used on non-GS1 barcodes, and substitution char is customizable like in the original libdmtx commit.

(fnc1=29 can be used to substitute \x1d)

dmtx/libdmtx#10

Simply pushing \x1d will result in ASCII RS codeword (030) instead of actual FNC1 codeword (232), this commit allows GS1 encoding.

`fnc1=29` can be used to substitute \x1d
Copy link

@alexis-via alexis-via left a comment

Choose a reason for hiding this comment

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

Tested successfully with a real GS1 barcode

@xjpf
Copy link

xjpf commented Oct 19, 2024

Support FNC1 char function in libdmtx: dmtx/libdmtx#10

Simply pushing \x1d currently results in ASCII RS codeword (030) instead of actual FNC1 codeword (232), this commit fixes that. As opposed to #96 FNC1 is not prepended by default since it can be used on non-GS1 barcodes, and substitution char is customizable like in the original libdmtx commit.

(fnc1=29 can be used to substitute \x1d)

Tested, doesn't work for FNC1. Adding anything to 'fnc=' won't make scanners find FNC1 injection in dmtx

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