added templates for old hp printer and for rollpaper printer
parent
c1d5c7d9cb
commit
8ecb5cd558
|
|
@ -0,0 +1,26 @@
|
|||
# ASCII Photobooth printer configuration
|
||||
# Sourced by txt2printr.sh and photobooth.py.
|
||||
|
||||
# Is the printer loaded with A4 paper for a landscape printout? (true/false)
|
||||
# Needle/dot-matrix printers have no hardware page-rotation command: the
|
||||
# print head only scans across a fixed carriage width while the paper feeds
|
||||
# in one fixed direction, so there is no way to make the physical page
|
||||
# itself "landscape". Instead, when this is true:
|
||||
# - txt2printr.sh rotates the ascii art 90 degrees in software before
|
||||
# sending it to the printer (turn the printed page 90 degrees to read it)
|
||||
# - photobooth.py sizes its live-preview viewfinder to an A4-landscape
|
||||
# character grid instead of just following the terminal size, so what you
|
||||
# see in the preview matches the shape of what gets printed
|
||||
PRINTER_A4=true
|
||||
#PRINTER_A4=false
|
||||
|
||||
# Your printer's real per-page capacity in the normal (portrait, unrotated)
|
||||
# orientation, used to size the A4 viewfinder above and to know when a print
|
||||
# job already fills the page (see txt2printr.sh). Paper geometry and stated
|
||||
# pitch don't reliably predict this - measure it directly with pagetest.sh:
|
||||
# ./pagetest.sh && PRINTER_A4=false ./txt2printr.sh pagetest.txt
|
||||
# then read off the last line number on page 1 (-> PRINTER_MAX_LINES) and
|
||||
# how many characters of the 64-wide test lines actually printed before
|
||||
# being cut off (-> PRINTER_MAX_COLS).
|
||||
PRINTER_MAX_LINES=64
|
||||
PRINTER_MAX_COLS=77
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
# ASCII Photobooth printer configuration
|
||||
# Sourced by txt2printr.sh and photobooth.py.
|
||||
|
||||
# Is the printer loaded with A4 paper for a landscape printout? (true/false)
|
||||
# Needle/dot-matrix printers have no hardware page-rotation command: the
|
||||
# print head only scans across a fixed carriage width while the paper feeds
|
||||
# in one fixed direction, so there is no way to make the physical page
|
||||
# itself "landscape". Instead, when this is true:
|
||||
# - txt2printr.sh rotates the ascii art 90 degrees in software before
|
||||
# sending it to the printer (turn the printed page 90 degrees to read it)
|
||||
# - photobooth.py sizes its live-preview viewfinder to an A4-landscape
|
||||
# character grid instead of just following the terminal size, so what you
|
||||
# see in the preview matches the shape of what gets printed
|
||||
PRINTER_A4=false
|
||||
|
||||
# Your printer's real per-page capacity in the normal (portrait, unrotated)
|
||||
# orientation, used to size the A4 viewfinder above and to know when a print
|
||||
# job already fills the page (see txt2printr.sh). Paper geometry and stated
|
||||
# pitch don't reliably predict this - measure it directly with pagetest.sh:
|
||||
# ./pagetest.sh && PRINTER_A4=false ./txt2printr.sh pagetest.txt
|
||||
# then read off the last line number on page 1 (-> PRINTER_MAX_LINES) and
|
||||
# how many characters of the 64-wide test lines actually printed before
|
||||
# being cut off (-> PRINTER_MAX_COLS).
|
||||
#
|
||||
# Set PRINTER_MAX_LINES=0 for a roll/continuous-feed printer that has no
|
||||
# fixed page length. In that mode photobooth.py sizes captures to fill
|
||||
# PRINTER_MAX_COLS width and lets height follow the image's own aspect
|
||||
# ratio instead of cropping to a row count, and txt2printr.sh always feeds
|
||||
# the paper out at the end of a print instead of skipping the feed when a
|
||||
# page is already full (there's no page to fill).
|
||||
PRINTER_MAX_LINES=0
|
||||
PRINTER_MAX_COLS=77
|
||||
Loading…
Reference in New Issue