mirror of
https://github.com/python-escpos/python-escpos
synced 2025-08-24 09:03:34 +00:00
Enable spell checking (#563)
* add spellchecking * improve spelling * improve spelling config * extend word list * improve spelling * improve spelling * escalate warning in spell check to failure * fix spelling * fix spelling * add plural * Update doc/spelling_wordlist.txt * do not stop on warning * require newest sphinxcontrib spelling * remove old comment * add authors as single line entry to spelling list * reenable stop on warning
This commit is contained in:
@@ -4,14 +4,14 @@ Printing Barcodes
|
||||
:Last Reviewed: 2023-08-10
|
||||
|
||||
Many printers implement barcode printing natively.
|
||||
This hardware renderered barcodes are fast but the supported
|
||||
These hardware rendered barcodes are fast but the supported
|
||||
formats are limited by the printer itself and different between models.
|
||||
However, almost all printers support printing images, so barcode
|
||||
rendering can be performed externally by software and then sent
|
||||
to the printer as an image.
|
||||
As a drawback, this operation is much slower and the user needs
|
||||
to know and choose the image implementation method supported by
|
||||
the printer's commandset.
|
||||
the printer's command-set.
|
||||
|
||||
barcode-method
|
||||
~~~~~~~~~~~~~~
|
||||
|
@@ -63,7 +63,8 @@ Setup udev for USB-Printers
|
||||
|
||||
Enabling tab-completion in CLI
|
||||
------------------------------
|
||||
python-escpos has a CLI with tab-completion. This is realised with ``argcomplete``.
|
||||
python-escpos has a CLI with tab-completion.
|
||||
This is realized with ``argcomplete``.
|
||||
In order for this to work you have to enable tab-completion, which is described in
|
||||
the `manual of argcomplete <https://argcomplete.readthedocs.io>`__.
|
||||
|
||||
|
@@ -12,7 +12,7 @@ printers.
|
||||
|
||||
.. note::
|
||||
This driver is not suited for USB-to-Serial-adapters
|
||||
and similiar devices, but only for those implementing native USB.
|
||||
and similar devices, but only for those implementing native USB.
|
||||
|
||||
.. autoclass:: escpos.printer.Usb
|
||||
:members:
|
||||
|
@@ -146,7 +146,7 @@ And for linux::
|
||||
|
||||
$HOME/.config/python-escpos/config.yaml
|
||||
|
||||
If you aren't sure, run::
|
||||
If you are not sure, run::
|
||||
|
||||
from escpos import config
|
||||
c = config.Config()
|
||||
@@ -206,10 +206,12 @@ For normal usage you can simply pass your text to the printers ``text()``-functi
|
||||
the right codepage and then send the encoded data to the printer. If this feature does not work, please try to
|
||||
isolate the error and then create an issue on the GitHub project page.
|
||||
|
||||
If you want or need to you can manually set the codepage. For this please use the ``charcode()``-function. You can set
|
||||
any key-value that is in ``CHARCODE``. If something is wrong, an ``CharCodeError`` will be raised.
|
||||
After you have manually set the codepage the printer won't change it anymore. You can revert to normal behaviour
|
||||
by setting charcode to ``AUTO``.
|
||||
If you want or need to you can manually set the codepage.
|
||||
For this please use the ``charcode()``-function.
|
||||
You can set any key-value that is in ``CHARCODE``.
|
||||
If something is wrong, an ``CharCodeError`` will be raised.
|
||||
After you have manually set the codepage the printer won't change it anymore.
|
||||
You can revert to normal behavior by setting charcode to ``AUTO``.
|
||||
|
||||
Advanced Usage: Print from binary blob
|
||||
--------------------------------------
|
||||
|
Reference in New Issue
Block a user