🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #6336

Re: Ghostscript 2.2 at SIMTEL20 doesn't work

#6336
From: Jan van der Steen
Date: Tue, 18 Jun 1991 10:27
62 lines
2402 bytes
cdlee@iuvax.cs.indiana.edu (Chan-Do Lee) writes:

>gened@techbook.com (Gene Daniel) writes:

>>HOMH@QUCDN.QueensU.CA writes:

>>>I down loaded Ghostscript 2.2 from SIMTEL20 on Friday. I tested it
>>>with my SVGA monitor and an LQ800 compatible printer and it worked
>>>fine. 

>I cannot get it to work on my Epson LQ-510, either. It seems that it
>has problems with horizontal spacing. For example, a rectangle with 
>letters in it comes out something like:
>		
>		-----
>		| |
>		| a|
>		| ab |
>		_____
>		
>rather than
>		-----
>		|    |
>		| a  |
>		| ab |
>		_____

>Has anyone got it to work on an LQ-510?

I noticed in "gdevepsn.c" that the Espon printer codes used for
both horizontal and vertical positioning have been changed since
ghostscript version 2.1.1.

They used to set the linefeed and change the vertical position
with a <lf>. Now the "<esc>Jn" escape sequence is used.

The horizontal positioning used to be done by setting tabs.
Now, "dot tabs" are used:

	    /* Tab over to the appropriate position.  */
	    /* Relative tabs work in half-dots. */
	    tab *= 2;
	    fputc(033, prn_stream);
	    fputc('\\', prn_stream);        /* dot tab */
	    fputc(tab & 0xff, prn_stream);
	    fputc(tab >> 8, prn_stream);

So, it will go to the correct horizontal position by means of:

	"<esc>\<n1><n2>"

This control sequence was not in my Epson clone manual (I have
a Nakajima printer). So, maybe that's your problem too.


	Jan van der Steen

--
    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
     Jan van der Steen                 jansteen@cwi.nl
     Centre for Mathematics and Computer Science (CWI)
     Kruislaan 413, 1098 SJ Amsterdam, The Netherlands
Technical Details
Message-ID: <jansteen.677240870@piring.cwi.nl>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!hp4nl!cwi.nl!piring.cwi.nl!jansteen
References: <1991Jun15.132428.6646@monu0.cc.monash.edu.au> <80102@eerie.acsu.Buffalo.EDU> <7283@vela.acs.oakland.edu> <91167.000248HOMH@QUCDN.QueensU.CA> <1991Jun17.062936.26011@techbook.com> <1991Jun18.035010.19570@news.cs.indiana.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!hp4nl!cwi.nl!piring.cwi.nl!jansteen
From: jansteen@cwi.nl (Jan van der Steen)
Newsgroups: comp.lang.postscript,comp.sys.ibm.pc.misc
Subject: Re: Ghostscript 2.2 at SIMTEL20 doesn't work
Message-ID: <jansteen.677240870@piring.cwi.nl>
Date: 18 Jun 91 10:27:50 GMT
References: <1991Jun15.132428.6646@monu0.cc.monash.edu.au>  <80102@eerie.acsu.Buffalo.EDU> <7283@vela.acs.oakland.edu> <91167.000248HOMH@QUCDN.QueensU.CA> <1991Jun17.062936.26011@techbook.com> <1991Jun18.035010.19570@news.cs.indiana.edu>
Sender: news@cwi.nl
Followup-To: comp.lang.postscript
Lines: 62