Commit Graph

21 Commits

Author SHA1 Message Date
Patrick Kanzler 09a598883c
351 ean example fix (#537)
* bug/doc: Fix invalid EAN-13 barcode in examples

In the various examples and python-escpos CLI there are a number of uses
of `13243546557687` as an EAN-13 example.  This EAN barcode is invalid
as the checksum should be `0` and not `7`.

```
$ python test_print.py
Traceback (most recent call last):
  File "test_print.py", line 5, in <module>
    p.barcode('13243546557687', 'EAN13', 64, 2, '', '')
  File "/home/pi/fatt-display/lib/python3.7/site-packages/escpos/escpos.py", line 433, in barcode
    bc=bc,
escpos.exceptions.BarcodeCodeError: No Barcode code was supplied (Barcode '13243546557687' not in a valid format for type 'EAN13')
```

This patch set removes `13243546557687` and replaces it with the valid
number `40063813339310`.

In researching the list of [assigned prefixes issued by
G1][g1-prefixes] there seemed to be no "officially" defined test  prefix, so
this change was made to be minimally invasive using the number from the
existing test cases.

Resolves #350

Affects #176

[g1-prefixes]: https://www.gs1.org/standards/id-keys/company-prefix
[test-code]: https://www.barcodelookup.com/4006381333931

---------

Co-authored-by: Brian 'Redbeard' Harrington <redbeard@dead-city.org>
2023-07-28 18:23:18 +02:00
Patrick Kanzler fc17391b63
remove unused badges (#522) 2023-05-18 16:38:40 +02:00
Maximilian Wagenbach c57b9c35dc Use https links. 2020-05-31 16:21:42 +02:00
Romain Porte b0ea9aec41 barcodes: replace viivakoodi with python-barcode
python-barcode is yet another clone of the PyPI barcode library, but
which is still developped compared to viivakoodi.

Signed-off-by: Romain Porte <microjoe@microjoe.org>
2020-05-10 13:36:16 +02:00
Patrick Kanzler 142fc4af71 fix readthedocs badge 2020-05-09 03:05:58 +02:00
Patrick Kanzler 8f71372bb0 remove landscape io badge 2020-05-09 03:02:35 +02:00
Brian 2ee3ff7f87
Update README.rst 2020-03-09 23:19:11 +11:00
Brian ca45d25670
Update README.rst
Added example on serial.
2020-03-09 23:18:36 +11:00
Patrick Kanzler edd567785c fix whitespace 2019-06-04 23:57:19 +02:00
akeonly dc08792e72
Update README.rst : example for network printer
Add example for Network Printer
2019-05-11 18:33:33 +07:00
Patrick Kanzler fb0e4c28ba update README 2017-08-08 13:30:16 +02:00
Patrick Kanzler f3da6a9725 remove quanitifed-code-badge 2017-08-01 17:42:34 +02:00
Patrick Kanzler 662aa30f4b Update readme list of dependencies
add viivakoodi and links
2017-06-22 15:54:21 +02:00
Romain Porte a069009696 Lists should not be right-espaced in reST 2017-05-24 23:57:38 +02:00
Patrick Kanzler e904500312
link to escpos-printer-db 2017-01-29 23:20:11 +01:00
Patrick Kanzler 996b3fd332 DOC fix demo-code in README.rst
fixes #159
2016-08-11 11:25:40 +02:00
Michael Billington ddaf126c20 Converted references to readthedocs.org -> readthedocs.io. Resolves python-escpos/python-escpos#132
grep -irl --exclude-dir='.*' "readthedocs\." | xargs sed -i 's/python-escpos.readthedocs.org/python-escpos.readthedocs.io/g'
2016-04-30 23:22:14 +10:00
Patrick Kanzler bf3012b882 DOC fix example in readme
Example in readme would print only nonsense, because a newline was missing at the end of text
2016-04-02 10:44:28 +02:00
Patrick Kanzler 126e0e269a
ADD coverage analysis
* branch coverage
* visualization with codecov.io
* added codecov-badge to README
2016-03-22 12:07:21 +01:00
Patrick Kanzler 7fdccb7245 PCKG add CONTRIBUTING document to repository and documentation 2016-03-11 14:46:35 +01:00
Patrick Kanzler fee650faba PCKG rework and streamline Readme-file 2016-03-11 14:46:35 +01:00