Christoph Heuel
dd228c9fda
Add text wrapping
...
* The base class supports to give columns, how much it should wrapped.
* This is meant for longer text.
* The special instances need to initialize the super class with the
* columns
2015-06-04 14:11:11 +02:00
Christoph Heuel
7da2e32e3c
Integer is needed, not float
...
* The size of the image can only be integer, not float.
Using round to convert it back
2015-06-04 13:20:17 +02:00
Christoph Heuel
b99c076bae
Fix for string operation
...
* With Python version 3 data and text are treated different. Convert the
* text accordingly.
2015-05-19 02:52:55 +02:00
Christoph Heuel
afc6834082
After running 2to3 tool
2015-05-07 20:54:32 +02:00
manpaz
d93e76e904
Merge pull request #45 from Krispy2009/master
...
Raising the right error when wrong charcode is used
2015-04-21 14:07:36 -07:00
Kristi
f3933d5d20
Merge pull request #1 from Krispy2009/Krispy2009-patch-1
...
Raising the right error when wrong charcode is used
2015-04-20 10:58:49 +01:00
Kristi
517435efad
Raising the right error when wrong charcode is used
2015-04-20 10:58:04 +01:00
Davis Goglin
debac0a532
keep track of google code differences
2014-08-22 20:35:14 -07:00
Davis Goglin
5f97596224
Merge pull request #2 from inversesandwich/patch-1
...
Many fixes :)
2014-08-22 18:53:33 -07:00
Nathan Bookham
6fdea1234d
Adjusted QR error correction
...
Maxed out the error correction on QR code generation for vastly improved recognition. The trade-off is that the amount of bytes that can be stored are reduced.
2014-08-16 14:28:20 +01:00
Stephan Sokolow
5a99c73e7a
Start on a command-line interface to the library (still hard-codes USB ID)
...
(...and still needs better documentation)
2014-08-15 20:20:02 -04:00
Stephan Sokolow
64c36a74ed
Allow bandsize to be varied in fullimage()
2014-08-15 20:17:35 -04:00
Adusso
1ce7be523a
vastly faster image printing supported
2014-06-03 13:36:33 +03:00
Adusso
b78f8c9807
escpos module fixed for python 3?
2014-05-31 17:36:00 +03:00
Adusso
916de838e0
python 3 readiness
2014-05-31 17:05:46 +03:00
Stephan Sokolow
2a8f852c68
Ensure QR codes have a border large enough for successful scan
...
(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)
2014-05-22 01:41:02 -04:00
Stephan Sokolow
b6216403c4
Apply the cash drawer fix detailed in Issue 10 on the Google Code repo.
...
https://code.google.com/p/python-escpos/issues/detail?id=10
2014-05-22 01:11:27 -04:00
Stephan Sokolow
6e72d2778d
Allow bypassing the resizing and height-cropping steps in fullimage()
2014-05-22 01:08:58 -04:00
Stephan Sokolow
a8ff446229
Add the setup.py-produced "build" folder to .gitignore
2014-05-22 00:55:09 -04:00
Stephan Sokolow
5b1e6348e5
Accept "CODABAR" as an alias for "NW7" in barcode()
2014-05-22 00:55:09 -04:00
Stephan Sokolow
9885deaa59
Make BarcodeSizeError and BarcodeTypeError display the erroneous value
...
(MUCH more helpful for debugging)
2014-05-22 00:55:09 -04:00
Stephan Sokolow
b5f68f6895
Actually use the barcode height and width parameters
...
(And reverse their order in the method signature so corrections to the
range checks don't break existing code)
2014-05-22 00:55:09 -04:00
Stephan Sokolow
ac640785cc
Make the structure of the ESC/POS commands less opaque
...
(The commands are intended to be readable by people who grew up with ANSI
escape codes so represent them that way in the code)
2014-05-22 00:53:48 -04:00
Manuel F Martinez
122ff9a363
Updated version
2014-05-20 23:51:39 -07:00
Manuel F Martinez
708f7e97d1
fixed code tabulators
2014-05-20 23:50:06 -07:00
Manuel F Martinez
8a3850ea64
Added quad support
2014-05-20 22:43:40 -07:00
Manuel F Martinez
34f562d64a
Added density support
2014-05-20 22:31:49 -07:00
Manuel F Martinez
2b37185003
Updated version
2014-05-20 22:16:44 -07:00
Manuel F Martinez
f6f1a4278f
Fixed tabs and added charcode tables
2014-05-20 22:15:54 -07:00
Davis Goglin
42309fedfe
Update README.md
...
Clarify character support
2014-03-14 10:32:10 -07:00
Davis Goglin
4795664cbe
Reformatted and added more sections
2014-03-14 10:01:15 -07:00
Davis Goglin
fa8d961e6d
google code revision ef4c58851474 (Added quad-area characters)
2014-03-14 09:18:23 -07:00
Davis Goglin
417476030e
we probably want to send all the data
2014-03-14 09:05:47 -07:00
Davis Goglin
ea1364bcc8
Update README.md
...
Make code description consistent with code.
2014-03-14 08:33:09 -07:00
Davis Goglin
9fdb382c99
Merge pull request #1 from freeyoung/master
...
Several small improvements
2014-03-14 08:23:45 -07:00
freeyoung
8c115bce27
use doge.jpg as the example of p.image
2014-03-14 02:20:57 +08:00
freeyoung
0590ec90a2
use my own examples
2014-03-14 02:09:10 +08:00
freeyoung
6a4fbc191f
add Chinese support via cp936
2014-03-14 02:05:41 +08:00
freeyoung
9f7e5861cd
adjust import order and fix `qr` method
2014-03-14 01:58:55 +08:00
freeyoung
b68b3dc6c0
import Image from PIL, or Pillow
2014-03-14 01:51:14 +08:00
freeyoung
442e523956
fix README path
2014-03-14 01:48:12 +08:00
freeyoung
5617571f31
tab -> spaces
2014-03-14 01:46:24 +08:00
Manuel F Martinez
51faf0a622
Added base package files
2014-02-23 23:10:41 -08:00
Manuel F Martinez
a2dcd45c15
Added quad-area characters
2014-02-23 23:09:35 -08:00
Manuel F Martinez
27b393d45c
Added exception for PIL import
2014-02-23 21:10:34 -08:00
Davis Goglin
f1d7afded2
minor cleanup
2013-08-22 08:42:31 -07:00
Davis Goglin
b8102acd45
Merge noio/python-escpos with latest google code
...
Merge branch 'master' of https://github.com/noio/python-escpos
Conflicts:
escpos/__init__.py
escpos/escpos.py
escpos/exceptions.py
escpos/printer.py
2013-08-22 08:37:10 -07:00
Davis Goglin
f8c34e8748
imported latest google code repo
2013-08-22 08:16:57 -07:00
Thomas van den Berg
84e316ac32
Update README.md
2013-06-25 22:32:14 +03:00
Manuel F Martinez
9023d22e71
Added syntax to have print working on windows
2013-05-30 08:56:33 -07:00