91
Rexx / Re: RFC: A pretty-print processor?
« on: 2010.07.25, 22:14:34 »
Hello,
paper.label='A4'
paper.dimensions="210,297"
paper.units = 'mm'
or
paper.label='A4'
paper.dimensions="21,29.7"
paper.unit = 'cm'
etc.
but also
paper.orientation = 'Portrait' (default, can be set with anything that begin with P)
or
paper.orientation = 'Landscape' (can be set with anything that begin with L)
//Jan-Erik
I personally would prefer not - paper size should be customizable... sotmeplace). A4 will cause all sorts of problems in the US, as I suspect that Letter would elsewhere. Many printers will hang on an A4 page, waiting for the user to put A4 sized paper into it (they are generally configured for Letter or Legal in the US - never seen A4 as a default). And in OS/2's case, often the print queue will just hold on to the document forever (Or until the printer settings are changed and A4 is loaded into it) with either a "Document mismatch" or "forms mismatch" error.In that case we need to specify the measurement unit to use
It should be very easy to create a small list of A4, Letter, Legal, non-US Legal size, maybe a few envelope sizes, etc that the user can then call by name. For instance (sizes totally made up because I am too lazy to look them up right now):
paper.Letter="320,480"
paper.A4="310x492"
etc...
Best,
Rob
paper.label='A4'
paper.dimensions="210,297"
paper.units = 'mm'
or
paper.label='A4'
paper.dimensions="21,29.7"
paper.unit = 'cm'
etc.
but also
paper.orientation = 'Portrait' (default, can be set with anything that begin with P)
or
paper.orientation = 'Landscape' (can be set with anything that begin with L)
//Jan-Erik


