improve spelling

This commit is contained in:
Patrick Kanzler 2023-09-06 00:49:20 +02:00
parent 544f7d964b
commit ba468bcb5a
4 changed files with 24 additions and 7 deletions

View File

@ -316,8 +316,15 @@ spelling_ignore_pypi_package_names = True
spelling_ignore_wiki_words = True spelling_ignore_wiki_words = True
spelling_ignore_python_builtins = True spelling_ignore_python_builtins = True
spelling_ignore_importable_modules = True spelling_ignore_importable_modules = True
spelling_ignore_contributor_names = True
spelling_word_list_filename = "spelling_wordlist.txt" spelling_word_list_filename = "spelling_wordlist.txt"
spelling_show_suggestions = True spelling_show_suggestions = True
spelling_suggestion_limit = 3 spelling_suggestion_limit = 3
spelling_warning = True spelling_warning = True
spelling_exclude_patterns = ["**/capabilities.json*"] spelling_exclude_patterns = [
"**/capabilities.json",
"../../capabilities-data/dist/capabilities.json",
"**/available-encodings.rst",
"**/available-profiles.rst",
"dev/todo.rst",
]

View File

@ -1,5 +1,7 @@
ESC ESC
Esc
POS POS
Pos
Escpos Escpos
Escpos Escpos
escpos escpos
@ -7,9 +9,15 @@ escpos
barcodes barcodes
baudrate baudrate
charcode charcode
dev
dialout
ean
Ean
lp lp
lsusb lsusb
printcap printcap
programmatically programmatically
Raspbian Raspbian
traceback Todo
traceback
udev

View File

@ -12,7 +12,7 @@ printers.
.. note:: .. note::
This driver is not suited for USB-to-Serial-adapters 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 .. autoclass:: escpos.printer.Usb
:members: :members:

View File

@ -110,7 +110,7 @@ SW_BARCODE_NAMES = {
class Escpos(object): class Escpos(object):
"""ESC/POS Printer 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. class.
""" """
@ -391,9 +391,11 @@ class Escpos(object):
def charcode(self, code: str = "AUTO") -> None: def charcode(self, code: str = "AUTO") -> None:
"""Set Character Code Table. """Set Character Code Table.
Sets the control sequence from ``CHARCODE`` in :py:mod:`escpos.constants` as active. It will be sent with Sets the control sequence from ``CHARCODE`` in :py:mod:`escpos.constants` as active.
the next text sequence. If you set the variable code to ``AUTO`` it will try to automatically guess the It will be sent with the next text sequence.
right codepage. (This is the standard behaviour.) 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 :param code: Name of CharCode
:raises: :py:exc:`~escpos.exceptions.CharCodeError` :raises: :py:exc:`~escpos.exceptions.CharCodeError`