Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #1935 > unrolled thread

Writing a Ghostscript uniprint driver

Started by"Stewart C. Russell" <scruss@scruss.com>
First post2014-07-31 00:39 +0000
Last post2014-07-31 14:05 -0400
Articles 3 — 3 participants

Back to article view | Back to comp.lang.postscript


Contents

  Writing a Ghostscript uniprint driver "Stewart C. Russell" <scruss@scruss.com> - 2014-07-31 00:39 +0000
    Re: Writing a Ghostscript uniprint driver Helge Blischke <h.blischke@acm.org> - 2014-07-31 12:45 +0200
      Re: Writing a Ghostscript uniprint driver tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2014-07-31 14:05 -0400

#1935 — Writing a Ghostscript uniprint driver

From"Stewart C. Russell" <scruss@scruss.com>
Date2014-07-31 00:39 +0000
SubjectWriting a Ghostscript uniprint driver
Message-ID<lfgCv.110314$LH2.38756@fx17.iad>
 <pIzg75!!FzS>D]ZDze,9L$TL)$oI8]\U6.`>Ou8&TrrpF{Jg,>_N\'P$\Q}d)`DibeD\0%~Uw;
	zte
 `9Hn7f@0|PTu%k?pcc9JO"yb40)KJIkkYU6L.T`,8~|\i%
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
 git://git.gnome.org/pan2)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Hi,

I've recently started experimenting with small roll-fed thermal printers, 
a bit like this one: <https://www.sparkfun.com/products/10438>. They all 
understand variants of Epson ESC-POS, which in turn is very similar to 
the ESC-P and ESC-P/2 command sets of Epson's older impact printers.

Ghostscript's uniprint driver - http://ghostscript.com/doc/7.07/
Devices.htm#Uniprint - looks perfect for supporting these little devices. 
Unfortunately, there's precious little documentation on this elderly 
"community supported" driver. Particularly:

* There's little explanation of the upOutputFormat option
* most of the parameters for terms like margins and print density are 
only hinted at, and never explained. Unsetting them, or removing them 
causes the output to fail.

These thermal printers are incredibly simple: 384 monochrome pixels 
across, 8 pixels/mm, effectively unlimited print length; printed (slowly, 
at 9600 baud) as 24 pixel deep by up to 384 pixel wide band.

Any suggestions, please, as to where I might find clearer guidelines?

thanks,
 Stewart

(if anyone wishes to print to these from a bitmap, I wrote a little 
Python filter that should work on most of them: https://gist.github.com/
scruss/95c61c9a1501ada2a6c5 )
-- 
 Stewart C. Russell — http://scruss.com/blog — OpenPGP Key: EB265B06
  ‘Remember the Golden Rule of Selling:
   “Do not resort to violence.”’        — McGlashan.

[toc] | [next] | [standalone]


#1936

FromHelge Blischke <h.blischke@acm.org>
Date2014-07-31 12:45 +0200
Message-ID<c3ul2tFfp0nU1@mid.individual.net>
In reply to#1935
Stewart C. Russell wrote:

>  
<pIzg75!!FzS>D]ZDze,9L$TL)$oI8]\U6.`>Ou8&TrrpF{Jg,>_N\'P$\Q}d)`DibeD\0%~Uw;
> zte
>  `9Hn7f@0|PTu%k?pcc9JO"yb40)KJIkkYU6L.T`,8~|\i%
> User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
>  git://git.gnome.org/pan2)
> MIME-Version: 1.0
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: 8bit
> 
> Hi,
> 
> I've recently started experimenting with small roll-fed thermal printers,
> a bit like this one: <https://www.sparkfun.com/products/10438>. They all
> understand variants of Epson ESC-POS, which in turn is very similar to
> the ESC-P and ESC-P/2 command sets of Epson's older impact printers.
> 
> Ghostscript's uniprint driver - http://ghostscript.com/doc/7.07/
> Devices.htm#Uniprint - looks perfect for supporting these little devices.
> Unfortunately, there's precious little documentation on this elderly
> "community supported" driver. Particularly:
> 
> * There's little explanation of the upOutputFormat option
> * most of the parameters for terms like margins and print density are
> only hinted at, and never explained. Unsetting them, or removing them
> causes the output to fail.
> 
> These thermal printers are incredibly simple: 384 monochrome pixels
> across, 8 pixels/mm, effectively unlimited print length; printed (slowly,
> at 9600 baud) as 24 pixel deep by up to 384 pixel wide band.
> 
> Any suggestions, please, as to where I might find clearer guidelines?
> 
> thanks,
>  Stewart
> 
> (if anyone wishes to print to these from a bitmap, I wrote a little
> Python filter that should work on most of them: https://gist.github.com/
> scruss/95c61c9a1501ada2a6c5 )

Read the item 
13.3 Godzilla's guide to the creation of Unified Printer Parameter (.upp)
files
and the following chapters.

Helge

[toc] | [prev] | [next] | [standalone]


#1937

Fromtlvp <mPiOsUcB.EtLlLvEp@att.net>
Date2014-07-31 14:05 -0400
Message-ID<dmxxuhpwv8bo.x9hnci8njzv2.dlg@40tude.net>
In reply to#1936
On Thu, 31 Jul 2014 12:45:48 +0200, Helge Blischke suggested:

> 13.3 Godzilla's guide to the creation of Unified Printer Parameter (.upp)
> files

You mean, as found in 

: <http://web.mit.edu/cygwin/cygwin_v1.3.2/usr/doc/ghostscript-6.51/Devices.htm>, 

as item 

: <http://web.mit.edu/cygwin/cygwin_v1.3.2/usr/doc/ghostscript-6.51/Devices.htm#Uni_make_pfile> ?

That's quite a treasure-trove :-) . Cheers, -- tlvp
-- 
Avant de repondre, jeter la poubelle, SVP.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.postscript


csiph-web