1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-09-13 09:09:58 +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:
Patrick Kanzler
2023-09-07 22:08:31 +02:00
committed by GitHub
parent 8f07c1da0f
commit cfa9ecf16d
19 changed files with 200 additions and 66 deletions

View File

@@ -110,7 +110,7 @@ SW_BARCODE_NAMES = {
class Escpos(object):
"""ESC/POS Printer object.
This class is the abstract base class for an esc/pos-printer. The printer implementations are children of this
This class is the abstract base class for an Esc/Pos-printer. The printer implementations are children of this
class.
"""
@@ -391,9 +391,11 @@ class Escpos(object):
def charcode(self, code: str = "AUTO") -> None:
"""Set Character Code Table.
Sets the control sequence from ``CHARCODE`` in :py:mod:`escpos.constants` as active. It will be sent with
the next text sequence. If you set the variable code to ``AUTO`` it will try to automatically guess the
right codepage. (This is the standard behaviour.)
Sets the control sequence from ``CHARCODE`` in :py:mod:`escpos.constants` as active.
It will be sent with the next text sequence.
If you set the variable code to ``AUTO`` it will try to automatically guess the
right codepage.
(This is the standard behavior.)
:param code: Name of CharCode
:raises: :py:exc:`~escpos.exceptions.CharCodeError`
@@ -848,7 +850,7 @@ class Escpos(object):
self.text("\n" * count)
def block_text(self, txt, font="0", columns=None):
"""Print text wrapped to specifiec columns.
"""Print text wrapped to specific columns.
Text has to be encoded in unicode.