Postscript driver BUG

I have been writing a “Code editor” for a while and when I tried to print a
line like
the following, I got very strange result:

\\\

As you can see, I have 5 ‘’, however what gets printed is more like 10 ‘’
with a
space between each!

At first I tought that I had made a mistake somewhere in the code. Them I
tried it
with PED and got the same result. Is there a work around other than not
using the
‘’ character for the time being.

Thanks !
Jack.

Hi Jacques,

I passed this information on to the developer and he hasn’t been able to reproduce
the problem.

What version of RTP are you using?

Regards
Brenda

“Jacques Gagné” <gagneja@collegesherbrooke.qc.ca> wrote:

I have been writing a “Code editor” for a while and when I tried to print a
line like
the following, I got very strange result:

\\\

As you can see, I have 5 ‘’, however what gets printed is more like 10 ‘’
with a
space between each!

At first I tought that I had made a mistake somewhere in the code. Them I
tried it
with PED and got the same result. Is there a work around other than not
using the
‘’ character for the time being.

Thanks !
Jack.

Sorry for the delay, Christmas vacation !

Currently I am workink with version 6.0, but I have tried it with version
6.1 to see
if it had the same problem and it did.

I don’t have to send the file to the printer to see the problem. I can see
it if
I print to file and look at the postscript file.

Jacques.

This is to complete the previous message.

I have reinstalled RTP 6.1 including Patch A and tried the following file:

Test file for Postscript printer:

Font used: Courier 10BT → 10 Pts.
Printer: HP LaserJet 4100N
Communication: Using IP address of printer

01234567890123456789
\\\\\

Printer result:

I get the 10 “” but with a space between each.

Tried the same file in windows 98 using Borland C++ builder and it’s Ok.

Hope this helps

Jacques.

Hi Jacques,

I have spoken to the developer and are you reading the postscript ouput
instead of printing it. In postscript the backslash character is a
special escape character similar to its use in the C language. To
actually print a backslash you have to put two backslashes in the string

Let me know if this works
Regards
Brenda


Jacques Gagné wrote:

This is to complete the previous message.

I have reinstalled RTP 6.1 including Patch A and tried the following file:

Test file for Postscript printer:

Font used: Courier 10BT → 10 Pts.
Printer: HP LaserJet 4100N
Communication: Using IP address of printer

01234567890123456789
\\\\\

Printer result:

I get the 10 “” but with a space between each.

Tried the same file in windows 98 using Borland C++ builder and it’s Ok.

Hope this helps

Jacques.

I am not reading the Postscript file, I am printing it.

When I say that I get 10 ‘’ but with each followed by a space, it is at
printer output.

Jacques.

“GUI Group” <gui@qnx.com> a écrit dans le message de news:
3C3DC8FC.9000409@qnx.com

Hi Jacques,

I have spoken to the developer and are you reading the postscript ouput
instead of printing it. In postscript the backslash character is a
special escape character similar to its use in the C language. To
actually print a backslash you have to put two backslashes in the string

Let me know if this works
Regards
Brenda


Jacques Gagné wrote:

This is to complete the previous message.

I have reinstalled RTP 6.1 including Patch A and tried the following
file:

Test file for Postscript printer:

Font used: Courier 10BT → 10 Pts.
Printer: HP LaserJet 4100N
Communication: Using IP address of printer

01234567890123456789
\\\\\

Printer result:

I get the 10 “” but with a space between each.

Tried the same file in windows 98 using Borland C++ builder and it’s
Ok.

Hope this helps

Jacques.
\

Hi Jacques

Sorry for the slow response. Could you sent me a sample input file
and the exact commands you are using to print that will show this behaviour?

Thanks
Brenda


Jacques Gagné wrote:

I am not reading the Postscript file, I am printing it.

When I say that I get 10 ‘’ but with each followed by a space, it is at
printer output.

Jacques.

“GUI Group” <> gui@qnx.com> > a écrit dans le message de news:
3C3DC8FC.9000409@qnx.com> …

Hi Jacques,

I have spoken to the developer and are you reading the postscript ouput
instead of printing it. In postscript the backslash character is a
special escape character similar to its use in the C language. To
actually print a backslash you have to put two backslashes in the string

Let me know if this works
Regards
Brenda


Jacques Gagné wrote:


This is to complete the previous message.

I have reinstalled RTP 6.1 including Patch A and tried the following

file:

Test file for Postscript printer:

Font used: Courier 10BT → 10 Pts.
Printer: HP LaserJet 4100N
Communication: Using IP address of printer

01234567890123456789
\\\\\

Printer result:

I get the 10 “” but with a space between each.

Tried the same file in windows 98 using Borland C++ builder and it’s

Ok.

Hope this helps

Jacques.


\

Ok,

It seems that all my messaged got lost somehow, but I am glad to see that I
found
a response. I think I have found where the bug is comming from. The setup I
use
and the tests I have done follow.

I have first noticed the problem when I tried to print my C code
from the editor (Syntax highlighting) that I wrote in Photon. At first,
I tought that my code was wrong, but the following tests will show that
the “font” is the problem.

  1. The /etc/printcap file looks like this:

ls_300:
:rm=labo_300:sd=/usr/spool/output/lpd/ls_300:

  1. The /etc/hosts contains the following line:

192.219.68.11 labo_300

  1. The file ls_300.cfg which is the ps.cfg modified the following way:

FileVersion = 2
Filter = phs:ps:phs-to-ps
Filter = raw:$d:cat
Filter = ps:$d:lpr -h -Pls_300

  1. From PED, I print to LS_300 the following file:

Font used: Courier10 BT → 10 Pts. ==> THSI IS VERY IMPORTANT

01234567890123456789
\\\\\ ==> Count 10
‘’

  1. The printed results are as follows:

01234567890123456789
\ \ \ \ \ \ \ \ \ \ ==> Count 10
‘’ and 10 spaces

NOTE:IF I USE THE STANDARD “TEXTFONT 9”, IT PRINTS OK.

==> THE FONT SEEMS TO BE THE PROBLEM.
==> I HAVE ONLY TESTED THE “COURIER10” BECAUSE IT IS THE ONE
THAT I USE TO PRINT MY CODE.

Hope this helps


Jacques Gagné

Hi Jacques,

sorry for the late response, but we have finally been able to reproduce
the problem here! We are investigating further and I will get back to
you as soon as I have more information.

Thanks for bringing it to our attention.
Brenda

Jacques Gagné wrote:

Ok,

It seems that all my messaged got lost somehow, but I am glad to see that I
found
a response. I think I have found where the bug is comming from. The setup I
use
and the tests I have done follow.

I have first noticed the problem when I tried to print my C code
from the editor (Syntax highlighting) that I wrote in Photon. At first,
I tought that my code was wrong, but the following tests will show that
the “font” is the problem.

  1. The /etc/printcap file looks like this:

ls_300:
:rm=labo_300:sd=/usr/spool/output/lpd/ls_300:

  1. The /etc/hosts contains the following line:

192.219.68.11 labo_300

  1. The file ls_300.cfg which is the ps.cfg modified the following way:

FileVersion = 2
Filter = phs:ps:phs-to-ps
Filter = raw:$d:cat
Filter = ps:$d:lpr -h -Pls_300

  1. From PED, I print to LS_300 the following file:

Font used: Courier10 BT → 10 Pts. ==> THSI IS VERY IMPORTANT

01234567890123456789
\\\\\ ==> Count 10
‘’

  1. The printed results are as follows:

01234567890123456789
\ \ \ \ \ \ \ \ \ \ ==> Count 10
‘’ and 10 spaces

NOTE:IF I USE THE STANDARD “TEXTFONT 9”, IT PRINTS OK.

==> THE FONT SEEMS TO BE THE PROBLEM.
==> I HAVE ONLY TESTED THE “COURIER10” BECAUSE IT IS THE ONE
THAT I USE TO PRINT MY CODE.

Hope this helps


Jacques Gagné