# 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). PRINTER_MAX_LINES=64 PRINTER_MAX_COLS=54