ESC/P 2: EX-1000 printer, selectable paper#6770
Merged
Merged
Conversation
The four versions are: - EX-1000 and 7 other early printers (including FX-80, the only Epson available OOTB for Windows 1.03), have ESC i and ESC j. - 9-pin ESC/P, a superset of EX-1000 besides ESC i and ESC j. - 24-pin ESC/P in 360 DPI instead of 240. - ESC/P 2 with raster graphics. As for paper, four sizes: Letter, A4, Legal, B4. The former ones are mainly for EX-800, the latter two are sideways and meant for EX-1000. I did some other minor changes, like converting a bunch of defines to enum.
Also removed forward declarations.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
EX-1000 is a superset of FX-80, the only Epson printer available OOTB on Windows 1.03. These two, along with 6 other early printers, have two ESC commands that were removed in later models: ESC i and ESC j. Thus, it makes sense to make a printer version selectable.
There are 4 main versions, each slightly backwards-incompatible. The dropdown so far lists two entries: EX-1000 and ESC/P 2. There's some code for other 9-pin and 24-pin ESC/P printers but it's currently commented-out.
There are four paper sizes to choose from: Letter, A4, Legal and B4. The latter two are sideways as that's what the manual for EX-1000 suggests. To use it properly on Windows 95, dimensions need to be specified manually (width 3530 * 0.1 mm, height 250 * 0.1 mm) and, to print with the longer side being vertical, orientation needs to be set to horizontal.

While filtering the commands per printer type, I realized there are some for IBM Proprinter II. Since I didn't quite know what to do about these without implementing that printer, it's limited to ESC/P 2 printer.
Remaining things to do regarding EX-1000:
Checklist
References
https://files.support.epson.com/pdf/general/escp2ref.pdf
https://archive.org/details/ex800ex1000
https://files.support.epson.com/pdf/ex800_/ex800_u1.pdf