मुख्य सामग्री पर जाएँ

raygeo.barcode.code128

Code 128 encoding.

Long digit runs are packed as pairs in code set C; text uses code set B. The encoder switches at run boundaries automatically.

Functions​

encode()​

encode(text: str) -> barcode.Encoded

Encodes printable ASCII as Code 128.

ParameterTypeDescription
textstr
Returnsbarcode.Encoded

Code set B, code set C, and an automatic B-to-C switch

Code set B, code set C, and an automatic B-to-C switch