Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Feb 2013 12:06:15 +0100
From:      Matthias Apitz <guru@unixarea.de>
To:        freebsd-ports@freebsd.org
Subject:   Re: FreeBSD port for redirecting printer
Message-ID:  <20130228110614.GA1592@tiny.Sisis.de>
In-Reply-To: <512EFA34.3080004@bananmonarki.se>
References:  <alpine.BSF.2.00.1302261814330.27474@wojtek.tensor.gdynia.pl> <20130226180645.GA1161@tiny.Sisis.de> <alpine.BSF.2.00.1302261929020.27796@wojtek.tensor.gdynia.pl> <20130226183646.GA2351@tiny.Sisis.de> <20130227115646.GA1821@tiny.Sisis.de> <20130228060342.GA2462@tinyCurrent> <512EFA34.3080004@bananmonarki.se>

next in thread | previous in thread | raw e-mail | index | archive | help
El día Thursday, February 28, 2013 a las 07:33:24AM +0100, Bernt Hansson escribió:

> 2013-02-28 07:03, Matthias Apitz skrev:
> > El día Wednesday, February 27, 2013 a las 12:56:47PM +0100, Matthias Apitz escribió:
> >
> >> another issue, how do you print an UTF-8 encoded text file, containing
> >> for example Hebrew and Greek? With CUPS' lpr(1) you just say:
> >>
> >> $ lpr -Pfoo myfile.txt
> >
> > And now? Big silence? Nobody wants to step-up with a proposal? :-)
> 
> You have already proposed the correct answer.
> 
> 
> /usr/bin/lpr -Pbar file instead of your cups /usr/local/bin/lpr

Here is what you could do to render UTF-8 text files to Postscript (for
printing it with the normal lpr(1) / lpd(8) chain:

$ CHARSET=utf-8; export CHARSET                                                           
$ PPD=any-ppd-file.ppd; export PPD                          
$ texttops 1 rleigh myfile 1 "" file.utf8 > file.ps
$ /usr/bin/lpr -Pbar file.ps

'texttops' is from CUPS and ofc makes use of fonts etc. from the CUPS
distribution; but you do not have to configure anything in CUPS to make
'texttops' working;

maybe there are other such tools and fonts; Pango+Cairo for example...

	matthias

-- 
Sent from my FreeBSD netbook

Matthias Apitz               |  - No system with backdoors like Apple/Android
E-mail: guru@unixarea.de     |  - Never being an iSlave
WWW: http://www.unixarea.de/ |  - No proprietary attachments, no HTML/RTF in E-mail
phone: +49-170-4527211       |  - Respect for open standards



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130228110614.GA1592>