World: r3wp
[Postscript] Emitting Postscript from REBOL
older newer | first last |
Graham 8-Jun-2006 [1052x2] | my code is ugly, but it's not a beauty contest ... |
Just got to get it working :) | |
Henrik 8-Jun-2006 [1054] | it converts PS to DRAW? or does it create DRAW and PS from the same dialect? |
Graham 8-Jun-2006 [1055] | latter... |
Rebolek 8-Jun-2006 [1056] | Much better now. |
Graham 8-Jun-2006 [1057x5] | But I never got round to finishing the conversion to ps yet ... |
ie. for the text flow as I need to read up a bit more on postscript justification routines etc. | |
So, I can use it to generate graphs, and ordinary text for printing .. but fancy flowing text needs more work. | |
Henrik, I can't see why your preview takes 2 seconds to render. | |
What PC are you using? | |
Henrik 8-Jun-2006 [1062x2] | celeron 700 with a 1 MB graphicscard |
works ok on my test machine, but on the target machine, it's too slow... | |
Graham 8-Jun-2006 [1064x3] | yes, that is a slow PC. |
I find View runs quite slowly on anything less than 1Ghz | |
are you drawing your barcode and translating it to final location? | |
Pekr 8-Jun-2006 [1067] | huh, really, does it? I found View ok on Pentium 133MHz ;-) |
Graham 8-Jun-2006 [1068] | you're probably not running large applications then. |
Pekr 8-Jun-2006 [1069] | well, old View, as new one does not support W95 anymore ..... but it looked ok for small things :-) |
Graham 8-Jun-2006 [1070] | my encapped apps won't run on those slow PCs. |
Pekr 8-Jun-2006 [1071] | well, of course ... but then what is large application in View then? RebGui, tonnes of tabs? |
Graham 8-Jun-2006 [1072] | app that runs about 20Mb in ram. |
Pekr 8-Jun-2006 [1073] | isn't the problem of tab style that all tabs are in memory actually? |
Henrik 8-Jun-2006 [1074] | yeah, it can take a while to initialize |
Graham 8-Jun-2006 [1075] | My EMR runs about 60Mb in ram. |
Pekr 8-Jun-2006 [1076] | ok then .... never tried complex app. Hopefully, however, R3 is being said as more resources savy in View area, so .... |
Henrik 8-Jun-2006 [1077] | the slowness problem with view could be connected to that the event system has no throttling. I think I've mentioned that a couple of times :-) |
Graham 8-Jun-2006 [1078] | I'm sure dos runs okay on 486 ... |
Pekr 8-Jun-2006 [1079] | 1HGz PCs are not problem nowadays, really old machines, the thing is worse once we move to embedded machines/PDAs (400MHz, 64MB RAM) one day .... |
Graham 8-Jun-2006 [1080] | which are like old dos machines really |
Pekr 8-Jun-2006 [1081] | Henrik - try eat events script or what was the name ... done by Romano or/and Gabriele .... |
Henrik 8-Jun-2006 [1082x3] | pekr, made my own system so problem temporarily solved, but it's still a problem for those with a fast sampling mouse |
I tried running view on my old A4000/040 25 Mhz once. it was utterly useless. | |
graham, the barcode is drawn as an image and then pasted into the preview | |
Pekr 8-Jun-2006 [1085] | Henrik - View was several times optimised. E.g. all-over events it used initially, and later on, Holger did some other improvements. But yes, Graham may be right, that for complex apps it is slow. OTOH we could see things really optimised by gurus. E.g. when I last looked at EMR, it was based upon many tabs. If all tabs are in fact in memory, then it could be a resource hog. |
Graham 8-Jun-2006 [1086] | I doubt that windows 98/95 has the graphics heap to support it |
Henrik 12-Jun-2006 [1087x5] | graham, how long does it take for you to print the first page of the 20000 leagues... test page in your demo? |
oh... was a postscript error. | |
>> do http://www.compkarori.com/reb/psd2draw5.r ** PostScript error at: [ flow-translate 50x0 flowbox 0x140 250x720 grestore gsave flow-translate 310x0 flowbox ] | |
the error comes when I try to print | |
geomol, can you post the links to your postscript docs again? | |
Geomol 12-Jun-2006 [1092x2] | http://home.tiscali.dk/john.niclasen/postscript/postscript.r http://home.tiscali.dk/john.niclasen/postscript/test.txt http://home.tiscali.dk/john.niclasen/postscript/test.png |
I didn't make documentation. | |
Graham 12-Jun-2006 [1094x2] | Henrik, I mentioned above that I ran out of time to finish the translation to postscript |
I need to read up on postscript justification routines | |
Henrik 12-Jun-2006 [1096x2] | graham, sorry I missed it |
geomol, thanks. maybe it's worth mentioning on rebol weekly? | |
Geomol 12-Jun-2006 [1098x3] | sure, I'll make a post in rebolweek group. |
Some old news. REBOL PostScript dialect: http://home.tiscali.dk/john.niclasen/postscript/postscript.r Example of use:http://home.tiscali.dk/john.niclasen/postscript/test.txt Result should look like this:http://home.tiscali.dk/john.niclasen/postscript/test.png The dialect is useful for simple postscript output, even if I think, it has some design flaws. It require too many blocks, I think. I haven't had time to evolve the dialect further, but anyone is welcome to pick it up. There's no documentation, so you have to look in the source to figure out the keywords. | |
Do this in a REBOL prompt to run the test: do http://home.tiscali.dk/john.niclasen/postscript/postscript.r write %test.ps postscript load http://home.tiscali.dk/john.niclasen/postscript/test.txt Now the file %test.ps holds the postscript output. | |
Henrik 12-Jun-2006 [1101] | geomol, is page size locked to A4? |
older newer | first last |