-
Notifications
You must be signed in to change notification settings - Fork 22
Description
Thinking about fonts I ended up with the fundamental question: "What do you want?"
I am using a small utility called epsonps that is able to translate an epson raw printing to PostScript.
DESCRIPTION
The program epsonps converts epson printer codes from an input file file to POSTSCRIPT on standard output. Unknown, ignored or invalid epson codes are printed on standard error output. The program epsonps is an excellent ASCII listing printer. The program epsonps can convert pson LX-800 codes, Epson LQ-800 codes, and IBM text screen dumps.
Here is the original ZIP-Archive:
It is a little tricky to extract that!!!
1st you have to unzip the archive.
2nd it will extract two self extracting "shell archives" called epsonps.1 and epsonps.2.
3rd make make them executable (chmod u+x epsonps.*) create two different subdirectories for both shell archives and move each file in one of the different directories. Extract them by running them in their directories (./epsonps.#).
4th pay attention to the fact that epsonps.2 includes a file called epsonps.1 (man page) which is different to the shell archive epsonps.1
5th delete the shell archives (epsonps.1 and epsonps.2) from the subdirectories and merge the files of both subdirectories into one directory.
You are done!
I've created a little DOS text file (ASCII)
EPSONPS.TXT
and translated this to PostScript by using
epsonps -o outputfile.ps -ta4-12 inputfile
the output can be translated using
ps2pdf inputfile.ps outputfile.pdf
Result of that is here
EPDF-20170512072918.pdf
The result is a text file from which you can extract information by copy&paste.
The parameter -a4-12 converts 12" printing to an A4 page.
Why do I write this?
Because there are two different ways to convert Epson raw printing.
This first way is to meticulous reproduce what an Epson printer would have printed on paper. This would be 1:1 - assuming you have fonts that are identical with what the ROM of a printer contained - and the output would be a graphic.
The second way is to do it as good as possible but to keep text and reproduce it with fonts (scalable vectors, that look like the fonts the ROM of a printer contained but are embedded into the PDF) and attributes. This way has the big advantage that you can extract information from the printout by copy&paste. Hence you are crossing platforms (ASCII to PDF), you must pay attention to convert the ASCII characters to the PDF files the way that they can be extracted again. I've seen legible PDF files from which you could not extract plain text because translate tables were messy.
Ideal would be a command line switch with which you could decide what output you want, meaning you would have to code both ways.
So, what do you want?