🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: vmsnet.sysmgt
Article #36

Re: need help with LPS20 ansi selection stuff

#36
From: coleve
Date: Wed, 05 Aug 1992 23:49
69 lines
3463 bytes
In article <1992Aug4.160421.12560@tron.bwi.wec.com>, eikenber@tron.bwi.wec.com (Daniel E. Eikenberry Jr.) writes:
> 
> supposedly these are document in some printserver manual, but I have not
> found them yet.

The FM to R is DEC AA-JP25B-TK, "PostScript Translators Reference Manual"
At least that's the version I have.

It's not one of DEC's best, IMHO, but is a little better than guesswork.
The translator seems to (?) run in the host computer.  It converts the
"other" formats into PostScript.  It should take about the same escape
sequences as a normal DECwriter -- except sometimes you don't get the same
results.  For example, on an LA120, etc. changeing the horizontal pitch to
16.5 automatically gives you a smaller font.  On the Printserver it doesn't.

Here's my guess at decoding...

> 170 column landscape control chars ...
> 
> <esc>[?27 J<ESC>[4w<ESC>[15m<ESC>[?7l<ESC>[1;180s
> 
<esc>[?27 J  -- PFS page format select landscape extended B private
<ESC>[4w     -- DECSHORP set horizontal pitch to 16.5 cpi
<ESC>[15m    -- SGR select graphic rendition (use Courier 6.7 point font)
<ESC>[?7l    -- DECAWM set mode auto wrap off
<ESC>[1;180s -- DECSLRM set left margin to 1, right to 180

> 270 column landscape control chars
> <ESC>[27 J<ESC>[4w<ESC>[15m<ESC>[?7l<ESC>[1;270s
<ESC>[27 J   -- PFS page format select (undocumented, should it be "?27"?)
<ESC>[4w     -- DECSHORP set horizontal pitch to 16.5 cpi
<ESC>[15m    -- SGR select graphic rendition (use Courier 6.7 point font)
<ESC>[?7l    -- DECAWM set mode auto wrap off
<ESC>[1;270s -- DECSLRM set left margin to 1, right to 270

arguments for PFS:
I will give the even numbers for portrait orientation, add 1 for landscape.
"Normal" gives an ANSI standard 1/2 inch left and top margin and 5/6 bottom.
"Ext" or Extended gives a minimum top and bottom margin.
"private" adds a minimum left margin.
0   (same as ?20) default.
2   normal A4
4   normal North American letter
6   Extended A4
8   Extended legal
?20 Ext North American private
?22 Ext A4 private
?24 Ext legal private
?26 Ext B private

For fudging character sizes, the GSM and GSS sequences look interesting.
(I haven't tried them, mind.)

GSM (Graphic Size Modification) sets the height and width:
    <esc>[Pn1;Pn2 B        -- the space IS significant
          Pn1 is a decimal number for percent of GSS height
          Pn2 is a decimal number for percent of GSS width

    so it seems that <esc>[200;50 B  will give a character twice as high and
half as wide as the GSS setting.

GSS (Graphic Size Selection) sets the height. (width is implicit)
    <esc>[Pn C             -- the space is part of the syntax
          Pn is a decimal number for percent of "font height set by SSU
             sequence" (whatever that is.)

Good luck.
-- 
-- Vern Cole -- Systems Manager -- Utah Valley Community College --
Technical Details
Message-ID: <1992Aug5.164958.1@cc.uvcc.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!rutgers!uwm.edu!cs.utexas.edu!hellgate.utah.edu!fcom.cc.utah.edu!park.uvcc.edu!cc.uvcc.edu!coleve
References: <1992Aug3.162749.679@fps.mcw.edu> <1992Aug4.160421.12560@tron.bwi.wec.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!rutgers!uwm.edu!cs.utexas.edu!hellgate.utah.edu!fcom.cc.utah.edu!park.uvcc.edu!cc.uvcc.edu!coleve
From: coleve@cc.uvcc.edu
Newsgroups: vmsnet.sysmgt,comp.os.vms,comp.sys.dec
Subject: Re: need help with LPS20 ansi selection stuff
Message-ID: <1992Aug5.164958.1@cc.uvcc.edu>
Date: 5 Aug 92 23:49:58 GMT
References: <1992Aug3.162749.679@fps.mcw.edu> <1992Aug4.160421.12560@tron.bwi.wec.com>
Sender: news@park.uvcc.edu
Organization: Utah Valley Community College
Lines: 69
Nntp-Posting-Host: uvadm.uvcc.edu