Currently Code128::new constructor expects valid Code128 byte data, where user must manually specify all the control codes to switch character sets as appropriate.
As a user, I'd rather leverage this conversion onto the library itself. I.e., I expect that I could pass any ASCII string to the constructor, and let it do the magic it needs. Unfortunately, I don't see any such functionality in this crate.
Alternatives
- JsBarcode has auto-detection mode for Code128 input string.