diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 04b1e5b..0c16632 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -9,13 +9,15 @@ be aware that the API will still change until v3.0 is released. changes ^^^^^^^ -- feature: add "capabilities" which are shared with escpos-php +- feature: add "capabilities" which are shared with escpos-php, capabilities are stored in + `escpos-printer-db `_ - feature: the driver tries now to guess the appropriate codepage and sets it automatically (called "magic encode") - as an alternative you can force the codepage with the old API - updated and improved documentation - changed constructor of main class due to introduction of capablities - changed interface of method `blocktext`, changed behavior of multiple methods, for details refer to the documentation on `python-escpos.readthedocs.io `_ +- add support for custom cash drawer sequence contributors ^^^^^^^^^^^^ diff --git a/README.rst b/README.rst index e79b279..1a10540 100644 --- a/README.rst +++ b/README.rst @@ -37,6 +37,11 @@ Text can be aligned/justified and fonts can be changed by size, type and weight. Also, this module handles some hardware functionalities like cutting paper, control characters, printer reset and similar functions. +Since supported commands differ from printer to printer the software tries to automatically apply the right +settings for the printer that you set. These settings are handled by +`escpos-printer-db `_ which is also used in +`escpos-php `_. + Dependencies ------------ @@ -56,11 +61,11 @@ The basic usage is: from escpos.printer import Usb - """ Seiko Epson Corp. Receipt Printer M129 Definitions (EPSON TM-T88IV) """ - p = Usb(0x04b8,0x0202,0) + """ Seiko Epson Corp. Receipt Printer (EPSON TM-T88III) """ + p = Usb(0x04b8, 0x0202, 0, profile="TM-T88III") p.text("Hello World\n") p.image("logo.gif") - p.barcode('1324354657687','EAN13',64,2,'','') + p.barcode('1324354657687', 'EAN13', 64, 2, '', '') p.cut() The full project-documentation is available on `Read the Docs `_.