Plain TXT output

Discussion about the various options for output of the data captured by the Retro-Printer Module
Post Reply
RWAP
Site Admin
Posts: 405
Joined: Wed Sep 13, 2017 9:20 pm
Location: Oswestry, Shropshire
Contact:

Plain TXT output

Post by RWAP »

At the moment, you can configure the simple_spool option for the Retro-Printer module to either Plain / Strip-escp2

If set, the Retro-Printer spools all incoming data to a single file data/raw/1.raw, which is then copied to data/txt/1.txt

1.txt differs in that line endings are changed according to the linefeed_ending setting; and if you chose Strip-escp2, all of the Epson ESC/P2 codes are removed from this file.

The problem comes if you move or delete 1.txt - this is not recreated until you reset the Retro-Printer.

Now this got us thinking....

If you are printing page by page, do Epson users want the ability to not only view the captured data in its raw format and as corresponding .txt files (stripped of all control codes) ?

Is this easier to retain the one 1.txt file as at present, or would users prefer that when printing the output (rather than simply spooling it), each page should have its own .txt file
Retro-Printer Specialists
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module

Also Involved in:
Icephorm
RWAP
Site Admin
Posts: 405
Joined: Wed Sep 13, 2017 9:20 pm
Location: Oswestry, Shropshire
Contact:

Re: Plain TXT output

Post by RWAP »

Thinking about it, it probably needs a configuration option to allow each captured page (or should it be captured job) to be assigned to a new .txt file - what do people think?
Retro-Printer Specialists
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module

Also Involved in:
Icephorm
RWAP
Site Admin
Posts: 405
Joined: Wed Sep 13, 2017 9:20 pm
Location: Oswestry, Shropshire
Contact:

Re: Plain TXT output

Post by RWAP »

Having spent some time thinking about this, the proposal is now:

Add more options to the /root/config/simplespool so that you have:

Plain-stream (same as existing Plain)
Strip-escp2-stream (same as existing Strip-escp2)
Plain-jobs
Strip-escp2-jobs
No

Plain-jobs and Strip-escp2-jobs would create a new file in home/pi/data/txt_jobs for each printer job received by the Retro-Printer.

The endless stream data (for the first two options) would be sent to home/pi/data/txt_stream
Retro-Printer Specialists
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module

Also Involved in:
Icephorm
RWAP
Site Admin
Posts: 405
Joined: Wed Sep 13, 2017 9:20 pm
Location: Oswestry, Shropshire
Contact:

Re: Plain TXT output

Post by RWAP »

If you know that the incoming data is all plain text with no control codes, then we have now added a faster plain text emulation to v3.12 of the software

Set /root/config/emulation to txt
Retro-Printer Specialists
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module

Also Involved in:
Icephorm
Post Reply