Re: [ql-users] How about scanning jobs in C68? Problem with mt_jinf

2004-10-23 Thread P Witte
James Hunkins writes:


 Looking at other assembly that does use this call, the examples do
 match the usage in the documentation.  I suspect that I fell for the
 old 'believing what you read' thing without thinking it out.  I bet
 that this does not recurse through the full tree on its own in most
 cases.  Will try to do some recursion (will check on a hand drawn tree)
 and see if that does it.

 Any suggestions in the meantime would of course be welcome.


The SBASIC routine below demonstrates the logic of scanning the job tree for
a matching job ID to see if it exists.

290 DEFine FuNction JobLives(jid)
300 LOCal nj, n
310 IF jid = 0: RETurn 1: REMark Job #0 always assumed to exist
320 n = 0: REMark Start here
330 REPeat nj
340  n = NXJOB(n, 0): REMark Top job = #0
350  IF n = 0 OR n = jid: EXIT nj: REMark End of tree or match
360 END REPeat nj
370 RETurn n
380 END DEFine JobLives
390

Per

___
QL-Users Mailing List
http://www.quanta.org.uk/mailing.htm


Re: [ql-users] QL2004

2004-10-23 Thread P Witte
Hi all,

Just got back from QL2004 last night. Great show! (too short.) Many thanks
to Geoff, Sjef and others who made it possible. Great to put faces to so
many familiar names! Hopefully well all meet up again sometime soon.

Per

___
QL-Users Mailing List
http://www.quanta.org.uk/mailing.htm


Re: [ql-users] Printers

2004-10-23 Thread Marcel Kilgus
Dilwyn Jones wrote:
 So it looks like the chain of software is:
[snip]
 4. A final 'driver' then takes care of the fine detail of sending
 raster graphics to the printer itself, which will be different for
 every printer.

 Step 4 is possibly not needed if the Postscript interpreter such as
 Ghostscript can drive the printer in question direct, or if the end
 printing is done by the underlying operating system's drivers. The
 need for a separate driver for each and every different type of
 printer basically means this will never happen I suppose.

Yes, you still need a driver, of course. Here is the list of printers
Ghostscript natively supports:
http://www.cs.wisc.edu/~ghost/doc/printer.htm

However, it doesn't necessarily stop there. There's also GIMP
Print, for example, which provides more drivers for Ghostscript. I
think their range of supported printers is pretty impressive:
http://gimp-print.sourceforge.net/p_Supported_Printers.php3

Note that I have NO IDEA how difficult it is to port those drivers to
SMSQ/E. But at least there is available source at all that could be
ported. In the ideal case they just need to be recompiled (but I
haven't had a look at them at all).

And of course, Ghostscript can also be used to produce PDF files or
different other graphics formats instead of output for the printer.

One problem is that the Ghostscript for QDOS is pretty old, because at
some higher version it just broke and Jonathan didn't want to
investigate why. Perhaps with the help of QDOS-GCC later versions
could be ported (I think it was some compiler problem).

  Or do we then need a 'postscript printer' or 'postscript to
  non-esp/p(2)' converter to finally get the output to the printer.
 Right.
 I was afraid of that.

Of course only on non-postscript printers. Postscript printers are
available and will be for a while, I guess, but not in the low cost
market.

 In QPC this would indeed be how you could do it.
 ...because Windows handles the postscript to raster process.

No, it's still Ghostscript that does this, but it can be included in a
way that looks like a printer to applications.

 In other words, not that much better than printing existing control
 codes as we know them and have Windows send that to the printer as
 QPC does now?

Well, I do think being able to print to any available Windows
printer is much better than being able to only print to a few select
printers.

 Unfortunately, I am even less confident of a solution now. Especially
 with QL, Q40 or something else which would need specific drivers.

I don't see any solution for the QL. It's too slow and has not enough
memory. The Q40 (or maybe even SGC) should however be able to cope
with Ghostscript just fine, I guess. And then you could potentially
drive any printer the Linux guys wrote a driver for.

Marcel

___
QL-Users Mailing List
http://www.quanta.org.uk/mailing.htm


Re: [ql-users] How about scanning jobs in C68? Problem with mt_jinf

2004-10-23 Thread James Hunkins
Thanks for the help guys.  I still seem to have a problem with the 
original routing mt.jinf falling out of the tree when I leave it up to 
it to run the full structure.

So instead I am simply walking through the entire job table (good 
suggestions).

One last question on this one, how do I know if a job table entry is 
valid?

Thanks,
jim
___
QL-Users Mailing List
http://www.quanta.org.uk/mailing.htm