ilopez / GS1Parser

A GS1 Parser for C#
MIT License
28 stars 11 forks source link

Struggling to get the fnc1 working #3

Open polychromenz opened 6 years ago

polychromenz commented 6 years ago

be great to have some basic documentation for anyone learning gs1 at the same time.

Anyway, it sort of works for me but i can't work out how to encode an example barcode so that the AI has an FNC1 seperator. If i place my variable length AI at the end its all good but i want more than one variable length AI. I thought that parsing a string like

0134567890123457211718123]C117181231

would work for (01)34567890123457 (21)1718123]C1 (17)181231

but i testing this by making code and checking them here https://www.bcgen.com/linear-barcode-creator.html

and here

http://www.idautomation.com/barcode-properties/definitions/gs1-element-string-hri-tool.html

A couple of examples of working bar codes would go along way to documenting this code

Jonney3099 commented 6 years ago

I think you have to use "(" & ")" to indicate what is AI. Don't challenge the program.

polychromenz commented 6 years ago

Thanks for the feedback but the brackets around AI deosnt work with this parser and i can see it is looking for the FNC1 but im not sure of the syntax in the barcode