diff --git a/doc/user/methods.rst b/doc/user/methods.rst index 055c3b0..12a076c 100644 --- a/doc/user/methods.rst +++ b/doc/user/methods.rst @@ -88,6 +88,7 @@ set("align", "font", "type", width, height, invert, smooth, flip) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Set text properties. + * ``align`` set horizontal position for text, the possible values are: * CENTER @@ -106,6 +107,7 @@ cut("mode") ^^^^^^^^^^^ Cut paper. + * ``mode`` set a full or partial cut. *Default:* full **Partial cut is not implemented in all printers.** @@ -132,6 +134,7 @@ control("align") ^^^^^^^^^^^^^^^^ Carrier feed and tabs. + * ``align`` is a string which takes any of the following values: * LF *for Line Feed* diff --git a/doc/user/printers.rst b/doc/user/printers.rst index cdf3c0f..073aef3 100644 --- a/doc/user/printers.rst +++ b/doc/user/printers.rst @@ -32,6 +32,7 @@ Network("host", port) ^^^^^^^^^^^^^^^^^^^^^ Based on socket + * ``host`` is an alphanumeric host name, could be either DNS host name or IP address. * ``port`` to write to (default = 9100) @@ -40,7 +41,8 @@ Problems with a network-attached printer can have numerous causes. Make sure tha Often you can check the IP address by triggering the self-test of the device. As a next step try to send text manually to the device. You could use for example: -:: +.. :: + echo "OK\n" | nc IPADDRESS 9100 # the port number is often 9100 @@ -50,4 +52,5 @@ File("file\_name") ^^^^^^^^^^^^^^^^^^ Printcap printers + * ``file_name`` is the full path to the device file name