518 Commits

Author SHA1 Message Date
csoft2k
67a834893f Change complex if identation. 2017-07-26 09:39:14 +02:00
Patrick Kanzler
efd698525d Merge branch 'development' into development 2017-07-26 09:09:54 +02:00
Romain Porte
9e47ff2505 Added test for cut without feed, fixed raw code for it 2017-07-26 09:09:32 +02:00
Romain Porte
9bc3b30a60 Optional feed for cut (closes #213) 2017-07-26 09:09:32 +02:00
csoft2k
7eaae65cd0 Merge remote-tracking branch 'origin' into development 2017-07-25 21:27:04 +02:00
csoft2k
ddde986576 Remove overriden author 2017-07-25 21:25:16 +02:00
csoft2k
493bfa9aa5 Update AUTHORS 2017-07-25 21:25:16 +02:00
csoft2k
ee29d42a5c Fix tabs behaviour.
The changes done in this commit should help with the open issues:
#5, #27 and #161.
The old implementation lacked the NUL char at the end of the command, as
defined on the Epson ESC/POS Reference Guide (see
https://reference.epson-biz.com/modules/ref_escpos/index.php?content_id=53
). Also, the horizontal tab control character (CTL_HT) shouldn't be
there.

This implementation allows setting up to 32 tabs with a given tab width.
Both values are checked to be in the valid ranges defined on the guide.
Also, the TabPosError exception text has been rewritten to define the
stated above.
2017-07-25 21:25:16 +02:00
csoft2k
1c34d5618e Remove overriden author 2017-07-25 21:25:16 +02:00
csoft2k
cd705e9378 Update AUTHORS 2017-07-25 21:25:15 +02:00
csoft2k
ad7e9d2d03 Merge from upstream 2017-07-25 21:21:07 +02:00
csoft2k
8cdcf112e7 Fix tabs behaviour.
The changes done in this commit should help with the open issues:
#5, #27 and #161.
The old implementation lacked the NUL char at the end of the command, as
defined on the Epson ESC/POS Reference Guide (see
https://reference.epson-biz.com/modules/ref_escpos/index.php?content_id=53
). Also, the horizontal tab control character (CTL_HT) shouldn't be
there.

This implementation allows setting up to 32 tabs with a given tab width.
Both values are checked to be in the valid ranges defined on the guide.
Also, the TabPosError exception text has been rewritten to define the
stated above.
2017-07-25 21:20:47 +02:00
csoft2k
8a1816476a Remove overriden author 2017-07-25 21:20:47 +02:00
csoft2k
f28795daa2 Update AUTHORS 2017-07-25 21:20:45 +02:00
csoft2k
26502eb45b Fix tabs behaviour.
The changes done in this commit should help with the open issues:
#5, #27 and #161.
The old implementation lacked the NUL char at the end of the command, as
defined on the Epson ESC/POS Reference Guide (see
https://reference.epson-biz.com/modules/ref_escpos/index.php?content_id=53
). Also, the horizontal tab control character (CTL_HT) shouldn't be
there.

This implementation allows setting up to 32 tabs with a given tab width.
Both values are checked to be in the valid ranges defined on the guide.
Also, the TabPosError exception text has been rewritten to define the
stated above.
2017-07-25 21:07:01 +02:00
Romain Porte
759cb5ac64 Ensure QR codes have a border large enough (#235)
*  Ensure QR codes have a border large enough
(The QR code spec requires a border at least 4*box_size thick but we can't
 just set border=16 because that results in a QR code more than 255px tall
 and I'm not yet ready to use fullimage() as a backend for it)
This fix was originally commited by Stephan Sokolow on 2014-05-22
* Let the user print stuff using qr example
* fix tests
2017-07-25 21:07:01 +02:00
csoft2k
bc046d77ac Remove overriden author 2017-07-25 21:07:01 +02:00
csoft2k
c0307e40b1 Add entry to .mailmap 2017-07-25 21:07:01 +02:00
csoft2k
7e9cbf611a Syntax changes.
Change the value check syntax.
Change the offline array returned to use a constant.
2017-07-25 21:07:01 +02:00
csoft2k
05cd028ac6 Remove semicolons, syntax enhancements, remove unused constant. 2017-07-25 21:07:01 +02:00
csoft2k
2d8a774b9f Corrections to pull request 237.
Create a _read function in the Escpos abtract class, which throws a
NotImplementedError.
Rename the isOnline function.
2017-07-25 21:07:01 +02:00
csoft2k
9ba284cf84 Update AUTHORS 2017-07-25 21:07:01 +02:00
csoft2k
4a3b4353bd Update AUTHORS 2017-07-25 21:07:01 +02:00
K
574d6d86fa Added the DLE EOT querying command.
Added a function to check whether the printer is online or not, as well
as a reading method for USB printers.
2017-07-25 21:07:01 +02:00
Patrick Kanzler
962208063b Update readme list of dependencies
add viivakoodi and links
2017-07-25 21:07:01 +02:00
TAHRI Ahmed
69462bbe13 Fix SerialException when trying to close device on __del__ without verifing if is actually opened. 2017-07-25 21:07:01 +02:00
Patrick Kanzler
ecf701d380 cat authorsfiles during check 2017-07-25 21:07:01 +02:00
Romain Porte
b27adf1cad Using viivakoodi instead of pyBarcode 2017-07-25 21:07:01 +02:00
Patrick Kanzler
f38e720fc7 Clarifiy and update usage.rst
relevant to #230
clarifies the config-file  in the usage.rst
2017-07-25 21:07:01 +02:00
Patrick Kanzler
8cf2563208 integrate author check into travis 2017-07-25 21:07:01 +02:00
Romain Porte
5c6031c67b Added authors file and generate_authors.sh (#227)
* Added authors file

Generated using `git shortlog -s -n` and sorted by alphabetical order
using vim.

* Added generate_authors.sh script and ordered author list

* Regenerated AUTHORS with .mailmap
2017-07-25 21:07:01 +02:00
Romain Porte
667ef1d5bb Lists should not be right-espaced in reST 2017-07-25 21:07:01 +02:00
Patrick Kanzler
c93164e26b added new trove for 3.6 and 3.7 2017-07-25 21:07:01 +02:00
Patrick Kanzler
5cbbabfac8 add .mailmap in order to normalize shortlog 2017-07-25 21:07:01 +02:00
Romain Porte
9df37bbc2c Added ImageWidthError and its implementation (#226)
* Added ImageWidthError and its implementation

* Added unit tests for ImageWidthError

* Parse max_width to int before compare
2017-07-25 21:07:01 +02:00
Romain Porte
89401418ca PEP8 software barcode example 2017-07-25 21:07:01 +02:00
Romain Porte
760df24eee Allow users to change impl for soft_barcode 2017-07-25 21:07:01 +02:00
Patrick Kanzler
e2f0aad1c9 rewrite to Dummy() 2017-07-25 21:07:01 +02:00
TAHRI Ahmed
386b138a86 Preliminary support of pos 'line display' printing 2017-07-25 21:07:01 +02:00
Romain Porte
ca7c257e18 Using booleans for handling text size 2017-07-25 21:07:01 +02:00
Romain Porte
6815e76bd0 Updated documentation of set method 2017-07-25 21:07:01 +02:00
Romain Porte
0f6e799bf7 Refactor of the set method, with tests 2017-07-25 21:07:01 +02:00
Romain Porte
e16d158401 First implementation of software barcode
Actually the hardware barcode implementation is very specific and not
generic enough for just adding a `soft_render=True` argument to it. This
is a first work that can be improved with other commits, maybe for
merging this method in the `barcode` method after some cleanup.

The width, height and text_distance were set using empiric
print-and-retry tests so that the generated barcode looks nice to the
eye (and to the eye of an Android scanner tool.

!WARNING! Printing a barcode that is too large in width will result in
the printer to go crazy trying to print an image that is too large for
it. This may be fixed by raising an exception in the `image` method.
2017-07-25 21:07:01 +02:00
Romain Porte
b3b8606f23 Fixed bad format of :code: in documentation 2017-07-25 21:07:01 +02:00
Romain Porte
5bd6dcf471 Ensure QR codes have a border large enough (#235)
*  Ensure QR codes have a border large enough
(The QR code spec requires a border at least 4*box_size thick but we can't
 just set border=16 because that results in a QR code more than 255px tall
 and I'm not yet ready to use fullimage() as a backend for it)
This fix was originally commited by Stephan Sokolow on 2014-05-22
* Let the user print stuff using qr example
* fix tests
2017-07-24 15:04:54 +02:00
csoft2k
89dfb6cf86 Added the DLE EOT querying command. (#237)
* Added the DLE EOT querying command.
Added a function to check whether the printer is online or not, as well
as a reading method for USB printers.
* Update AUTHORS
* Add entry to .mailmap
* currently USB only
2017-07-24 13:57:02 +02:00
Patrick Kanzler
662aa30f4b Update readme list of dependencies
add viivakoodi and links
2017-06-22 15:54:21 +02:00
TAHRI Ahmed
efec3e508c Fix SerialException when trying to close device on __del__ without verifing if is actually opened. 2017-06-19 13:42:46 +02:00
Patrick Kanzler
c3e952befa
cat authorsfiles during check 2017-06-19 11:15:04 +00:00
Patrick Kanzler
83b426f5fd Merge pull request #222 from MicroJoe/software-barcode
First implementation of software barcode
2017-06-19 12:57:05 +02:00