lindell / JsBarcode

Barcode generation library written in JavaScript that works in both the browser and on Node.js
http://lindell.me/JsBarcode
MIT License
5.49k stars 1.11k forks source link

Arabic Support #82

Closed mhbu50 closed 8 years ago

mhbu50 commented 8 years ago

Could you add Arabic letter characters Support ?

lindell commented 8 years ago

Barcodes (as in: 1D) can only contain the characters specified in their specification. For example, EAN13 can only hold numbers, Code128 can contain numbers, US-ASCII letters and some special characters, etc.

If you are talking about 1D-Barcodes, look into their definition. I know of no 1D-barcode that can hold unicode (specifically arabic) letters.

http://stackoverflow.com/a/35427835

You might want to look into printing your data on a 2D barcode such as a QR-code.

mhbu50 commented 8 years ago

it is working only with Format: GenericBarcode: image

lindell commented 8 years ago

Generic Barcode is just that. A generic barcode that always generates the sequence 10101010...10101. It accepts everything but does not encode it.

lindell commented 8 years ago

If you have an barcode symbology that can encode Arabic characters, please link me to it and I'll see what I can do. But when searching for it I can't find any symbologies that support utf-8 so I think you are out of luck :unamused:

lindell commented 8 years ago

Have your question been answered? And can the issue be closed?