From owner-freebsd-questions@freebsd.org Thu May 7 04:14:58 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 935AB2EC5B4 for ; Thu, 7 May 2020 04:14:58 +0000 (UTC) (envelope-from vas@sibptus.ru) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49Hg8x4H9cz4mmZ for ; Thu, 7 May 2020 04:14:57 +0000 (UTC) (envelope-from vas@sibptus.ru) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=In-Reply-To:Message-ID:Subject:To:From:Date; bh=Twe/cO51YGPIYFLSlARWd8ECtLu1HgcjDDB/oYTehSg=; b=JFLJlf5iwPlyQVmgvd72fFzZnZ KzoLdwDB55e3QWVY7gz8sMhuWaRNu/b0q/nKIs95ndfQxJWLyAQVhUXtzW9b0DifUciW1EjWhruR1 aPRMri/sk2TEwf7dqr55B981ErUeF8tEfTqrncOGZHdjYwqDvByJJLQv/nVOzNbBtMLA=; Received: from vas by admin.sibptus.ru with local (Exim 4.93.0.4 (FreeBSD)) (envelope-from ) id 1jWXvz-00023m-15; Thu, 07 May 2020 11:14:55 +0700 Date: Thu, 7 May 2020 11:14:55 +0700 From: Victor Sudakov To: freebsd@johnea.net Cc: freebsd-questions@freebsd.org Subject: Re: Brother HL-L2340D printer and lpd? Message-ID: <20200507041455.GA6626@admin.sibptus.ru> References: <20200503171259.GA48627@admin.sibptus.ru> <20200505161952.GA34844@admin.sibptus.ru> <20200505185510.00b622e3.freebsd@edvax.de> <20200505180101.GA35751@admin.sibptus.ru> <2c213d5f-8c18-812e-8770-dd5312b1edf7@panix.com> <55f0a9dd-1089-9e80-4e8e-6eb181824864@johnea.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/9DWx/yDrRhgMJTb" Content-Disposition: inline In-Reply-To: <55f0a9dd-1089-9e80-4e8e-6eb181824864@johnea.net> X-PGP-Key: http://admin.sibptus.ru/~vas/ X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 X-Rspamd-Queue-Id: 49Hg8x4H9cz4mmZ X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sibptus.ru header.s=20181118 header.b=JFLJlf5i; dmarc=pass (policy=none) header.from=sibptus.ru; spf=pass (mx1.freebsd.org: domain of vas@sibptus.ru designates 2001:19f0:5001:21dc::10 as permitted sender) smtp.mailfrom=vas@sibptus.ru X-Spamd-Result: default: False [-7.31 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[sibptus.ru:s=20181118]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; IP_SCORE(-3.21)[ip: (-9.89), ipnet: 2001:19f0:5000::/38(-4.94), asn: 20473(-1.18), country: US(-0.05)]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[sibptus.ru:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[sibptus.ru,none]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:20473, ipnet:2001:19f0:5000::/38, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 May 2020 04:14:58 -0000 --/9DWx/yDrRhgMJTb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable freebsd@johnea.net wrote: > On 2020-05-05 11:49, Kurt Hackenberg wrote: > > On 2020-05-05 14:01, Victor Sudakov wrote: > >=20 > >> A PostScript translator (GhostScript or any other) can be expected to > >> "raster" the PS input incorrectly if this input contains encodings it = does > >> not understand, or glyphs/fonts it is lacking. > >> > >> I've seen so many problems with Cyrillic in my life, believe me. I've > >> seen PDFs with some Cyrillic glyphs replaced by garbage, and much more > >> of such weird stuff than I wish to see. > >=20 > >=20 > > It would be nice if you could send plain Unicode to a printer. Ideally,= =20 > > I guess, either compressed or not -- UTF-8, UTF-16, or UTF-32. I don't= =20 > > expect it to happen. >=20 > In support of the "I don't expect it to happen" statement: >=20 > For many many years, in many many printers, no rendering of any kind > is performed inside the printer. >=20 > These printers expect all input in the form of a binary raster, many > times this raster itself is in a proprietary non-standard format. This > is regardless of interface type: network, USB, LPT, etc. >=20 > All rendering of all fonts, embedded images, everything, is performed > in a "driver" running on the computer interfaced to the printer. Often > these "drivers" are also proprietary binary blobs which only function > on a specific operating system.=20 The above observation is true only about el cheapo winprinters. I have 30 years of experience with different office grade printers (beginning =66rom dot matrix Epsons and some Soviet clones thereof) and I can assure you that any decent printer (above the minimum budget level) attached to a DOS box could print text by simply typing COPY CON LPT1 at the DOS prompt. No "driver" required. More expensive printers could print PostScript directly: COPY /b BOOK.PS LPT1 Again, no driver required. >=20 > Conclusions: >=20 > 1) Why, at this point, would anyone be surprised that a printer will > not take plain text directly as input?=20 Experience, just experience. I've seen numerous Canons, HPs, Xeroxes, Kyoceras and what not with a built-in TCP/IP printserver, or attached to printserver appliances - they all could print plain text when sent to the appropriate queue ("rp"). True, very often they would not print Cyrillic, and I had to install printcap filters to load a Cyrillic font into printer before actual printing. The Cyrillic font was usually a blob to be concatenated with the text job (before it). It has always worked. Moreover, in some recent larger office color printers I've seen the ability of uploading a PostScript or PDF file via FTP or even from a USB flash drive which is then printed autonomously. Speaking about this particular Brother HL-L2340D printer - I read the specifications, found out that it supported the LPD protocol and was sure that this one was like others. Probably I was being too optimistic.=20 With this new experience, I'll be more cautious in the future, but I don't have an idea yet how to filter out printers without line printing capability. --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --/9DWx/yDrRhgMJTb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJes4s+AAoJEA2k8lmbXsY0iXQH/24Rytm/Z8WCbSkYovuDSO6S 5RGzm5m/LFhS7OSuzdEtgtnH4nRO9RhHKCmKEFxDKcmKiOr/Z0qq/GDBSH+pwy1z 9Z+0XrQR0C65+pkO6Oj32VHHH2CLOvZ7kx5lxdSuPr52SdfN2pTefYskcSAotVw7 0QSd/B2Xolg0GNlUUmEkDSqmeIXOhQ2ooG5hMkDNMvL+wAlBgmr9OAI+f91DNtJ6 tQoF9N//ejklu1UkFmy8gVHyMEOHGKMGqdFXdklBMKyaO5enqIGuboBcoKiMylGo Cb/g5yDDiesPxtIm2Zir2rUR73F0Txf0n8D/DDxXNYoQPdTwRYIxJKfcdmkE584= =d64M -----END PGP SIGNATURE----- --/9DWx/yDrRhgMJTb--