Comments (8)
Actually it can be generated with the Code128
generator by prepending the FNC1 character \xf1
to the code generated.
For instance:
import barcode
GS1_FNC1_CHAR = u'\xf1'
code = u"00123456780000000001"
code_128_creator = barcode.get_barcode_class("code128")
gs1_128_code = code_128_creator(GS1_FNC1_CHAR + code)
code = gs1_128_code.render()
from python-barcode.
Fixed via #37. Version 0.10.0 released with this (and a few other) changes.
from python-barcode.
I could make a PR to make it more user friendly
from python-barcode.
From what I've read, for instance on https://www.gs1-128.info/:
In essence, GS1-128 is a derivative language of the Code 128 symbology, utilizing a flagging character (Function Code 1 (FNC1)) and application identifiers.
For the letter before the FNC1, it is already inserted by Code-128 as the first character of the code.
I will do the PR soon.
from python-barcode.
I would be very interested too.
from python-barcode.
it is better to support ean-128 and print to doc/docx.
from python-barcode.
I could make a PR to make it more user friendly
it would help a lot
from python-barcode.
@MDziwny Are you entirely sure there's not another letter before the FNC1 character? (I'm just making sure, since I haven't come across very clear information).
In any case, a PR is more than welcome. A subclass that wraps around the current code128 renderer should work fine, so if you want to address it, I'll be happy to merge it in. Thanks!
from python-barcode.
Related Issues (20)
- How to use with Pillow image
- ISBN-13 starting with 979 HOT 1
- Text placement in ImageWriter HOT 2
- UPC/UPCA final output doesn't include guard bars HOT 1
- Add some form of tests reading the barcodes
- no support for MSI (Plessey) barcodes HOT 2
- EAN13 calculate_checksum() generates inconsistent values HOT 6
- better formating for GS1_128 HOT 1
- Unable to generate PNG using pillow 10 HOT 3
- dpi HOT 1
- generating barcode error HOT 1
- Unexpected ">" symbol at the end of generated EAN-13 barcode HOT 2
- module_width not working HOT 1
- invalid ppem value with 0.15.1 but not with 0.14.0 HOT 5
- Incompatibility with pillow 10.0.1 HOT 10
- Error on the number generated HOT 11
- Redable text under bars is cut out from the image HOT 2
- Support for Code128 FNC4 / ISO-8859-1
- Why does `Barcode.build()` always return a singleton list? HOT 2
- GS1-128 images are cut-off HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-barcode.