Re: hplip-printer-app hangs and oddities (Re: Cups automatic duplex printing problems)

Michael Sweet <[email protected]> Mon, 8 Jul 2024 18:21:15 -0400
Newsgroups dev.linux.lists.printing-users
Message-ID <[email protected]>
Valentijn,

Does the PPD file in question have any JCL options (look for JCLOpenUI)?

It is possible that the JCL code is missing a trailing newline which =
could cause this - in which case we should append one to make sure the =
JCL code doesn't prevent language switching...


> On Jul 8, 2024, at 2:29=E2=80=AFPM, Valentijn Sessink =
<[email protected]> wrote:
>=20
> Hi list,
>=20
> I'm replying to a very old message of mine. I tried to fix =
ttps://github.com/OpenPrinting/hplip-printer-app/issues/17 because I =
like my postscript printers to actually print postscript. Yes, I'm that =
kind of nerd.
>=20
> Anyway, I sort of fixed the bug but I don't know why. So it's probably =
rubbish that I made, I just don't grasp the code path here.
>=20
> I switched the last two lines of ppdEmitJCL() and suddenly
>=20
> On 02-02-2024 16:10, Valentijn Sessink wrote:
>> %%@PJL ENTER LANGUAGE =3D PostScript
>=20
> ... the two %% are gone.
>=20
> But this code has been there for ages. Has postscript with PJL been =
broken since 2014? I can't imagine that.
>=20
> Would anyone please know why a normal Postscript printer with a PJL =
definition in its PPD file
> *JCLToPSInterpreter: "@PJL ENTER LANGUAGE =3D PostScript <0A>"
> ... would print %%@PJL ENTER LANGUAGE (with two extra %% signs)?
>=20
> Sorry for the voodoo code (semi-randomly switching two lines of code). =
With printers, I just cannot seem to avoid it :-(
>=20
> Best regards,
>=20
> Valentijn
> --=20
> Durgerdamstraat 29, 1507 JL Zaandam; telefoon 075-7100071
>=20

________________________
Michael Sweet