Brother HL-L2340D printer and lpd?

Victor Sudakov vas at sibptus.ru
Wed May 6 02:21:33 UTC 2020


Polytropon wrote:

[dd]

> > > > Now two questions are left:
> > > > 
> > > > 1. How the heck do I print text files with this setup? Should I convert
> > > > them to PostScript first, and how? UTF-8 Cyrillic support is crucial.
> > > 
> > > Yes, gs expects PS as its input. For programs that print
> > > (except here: Firefox), PS is the default output anyway.
> > > But if you have ASCII text, you need to turn it into PS.
> > > 
> > > The easiest way to do this is the port "a2ps" (ASCII to
> > 
> > a2ps from packages is broken:
> > 
> > $ a2ps /etc/rc.conf
> > a2ps: unknown medium `libpaper'
> 
> Install "libpaper" package and manually set a symlink in
> /usr/local/etc: papersize -> papersize.a4 for standard ISO A4
> paper, or papersize -> papersize.letter for US letter.

The package is installed and the files are present:

$ pkg info -o libpaper
libpaper-1.1.24.4              print/libpaper
$ file /usr/local/etc/papersize.*
/usr/local/etc/papersize.a4:     ASCII text
/usr/local/etc/papersize.letter: ASCII text

This does not work. And I really think if a2ps does not have
UTF-8/Cyrillic support, there is not much sense for me to try and fix
it.

[dd]

> > > Personally, I use "encript" for turning ASCII reports
> > 
> > enscript is good, but it has huge problems with Cyrillic, and is totally
> > lacking multibyte support (UTF-8).
> 
> Correct. That's why I had to use it with ISO-8859-1 standard
> western europe character set (single byte per symbol) in order
> to get Umlauts displayed correctly. Maybe another processing
> step ("recode utf-8..koi8 <file>") can be used in the printer
> filter.

Too much info (too many glyphs) are lost this way. I'm already used to
non-koi8-compatible characters in my texts, even when they are plain
texts.


> > > > 2. How do I convince Mozilla Firefox that I now have a PostScript
> > > > printer and it can print directly to it, not just to a PDF file? It does
> > > > not seem to care for /etc/printcap.

[dd]

> > 
> > Oh! I wish I knew how to add something to Firefox's print dialog! 
> > Do you?
> 
> If you define several printers in /etc/printcap (and not
> forget to run cap_mkdb), a system running lpr should have
> the available printers listed in Firefox's print dialog.
> Unless, of course, Firefox is hard-wired with CUPS, and
> no CUPS - no printer selection.

Looks like it's hardwired with GTK, and GTK is hardwired with
something else, and nobody knows any more how it all works.

> 
> Another idea might be to use the variable $PRINTER to name
> the printer before starting Firefox. 


Does not help either. 

I've also tried tinkering with print.printer_list in about:config to no
avail.

> 
> Currently I don't have access to a system that has both
> Firefox and lpr installed so I cannot verify this suggestion.

Anyone any ideas please?

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49 at fidonet http://vas.tomsk.ru/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20200506/d6bc523b/attachment.sig>


More information about the freebsd-questions mailing list