Go to file
Amir Alexander Abdelbaki c9cf7f6484 fix: correct A4 landscape sizing math to avoid page overflow
a4_landscape_chars() was sizing the capture/preview to the *final*
landscape look (assuming the physical page gets fed sideways), but
txt2printr.sh actually rotates the ascii art 90 degrees in software on
a normally-fed page. Combining both produced ~107 printed lines,
overflowing the printer's page-length capacity onto a second sheet.

Since the software rotation is cancelled out by the reader turning the
finished page 90 degrees, the capture buffer's own dimensions equal
the final visual result, but its width becomes the printed line count
post-rotation - so it must be capped by the page's line capacity along
the long edge, with height derived from the target landscape aspect
ratio (corrected for non-square character cells) instead of just
filling the available character budget.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-14 09:41:13 +02:00
.gitignore add photobooth.py: curses TUI rewrite of the live preview loop 2026-07-03 13:07:53 +02:00
archbaseos-guided-install.sh copied archbaseos-guided-install.sh from The_miro/Dotfiles.git for base OS installation 2026-03-27 13:24:14 +01:00
ascii.conf add ascii.conf and keybinds.conf for converter options and rebindable keys 2026-07-03 11:33:33 +02:00
exec-cycle.sh rebind capture to the space bar 2026-07-03 11:52:57 +02:00
install-deps.sh add photobooth.py: curses TUI rewrite of the live preview loop 2026-07-03 13:07:53 +02:00
keybinds.conf add photobooth.py: curses TUI rewrite of the live preview loop 2026-07-03 13:07:53 +02:00
photobooth.py fix: correct A4 landscape sizing math to avoid page overflow 2026-07-14 09:41:13 +02:00
printer.conf feat: add PRINTER_A4 landscape option for A4 printers 2026-07-14 09:27:22 +02:00
txt2printr.sh feat: add PRINTER_A4 landscape option for A4 printers 2026-07-14 09:27:22 +02:00
webcam.conf add photobooth.py: curses TUI rewrite of the live preview loop 2026-07-03 13:07:53 +02:00
webcam2ascii.sh add ascii.conf and keybinds.conf for converter options and rebindable keys 2026-07-03 11:33:33 +02:00
yay-installer.sh removed the part in the yay installer that installs leahneukirchens nq 2026-03-27 10:58:13 +01:00