Open fttx opened 4 years ago
Zxing has the ASSUME_GS1 option that enables the FNC characters decoding: https://github.com/zxing/zxing/blob/0cf3b9be71680f50c90a71ca26ce0d33664b0dd6/core/src/main/java/com/google/zxing/oned/Code128Reader.java#L239
Problem is, it supports only few FNC characters. It will output the non printable character using the SCAN_RESULT_BYTES array
To convert the FNC1 characters so that parenthesis are shown around the fields use this template:
Zxing alredy supports FNC1, FNC2, ecc. codes, but they're not passed by the phonegap-barcode-scanner plugin.
See:
Sample barcode:![image](https://user-images.githubusercontent.com/5663423/90759255-7adbd380-e2e0-11ea-8174-5bba18d0bd84.png)
Raw value:![image](https://user-images.githubusercontent.com/5663423/90759270-7fa08780-e2e0-11ea-8d8a-bd806e7c2592.png)
barcodeScanResult.text value:![image](https://user-images.githubusercontent.com/5663423/90759298-87602c00-e2e0-11ea-87d5-c84ee658b763.png)
Hex:
(read by columns)