r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Postscript] Emitting Postscript from REBOL

Graham
22-Apr-2006
[835]
And with postscript, you can create your own fonts
Henrik
22-Apr-2006
[836]
I just think PDF Maker is a bit too hard to build layouts in
Graham
22-Apr-2006
[837]
if the ones you need are not supported.
Henrik
22-Apr-2006
[838]
yes that's a problem. I will need OCR fonts at some point
Graham
22-Apr-2006
[839x2]
Has anyone looked at the image format for postscript?
How easy would it be to convert rebol's image format to that needed 
for postscript?
Henrik
22-Apr-2006
[841]
haven't looked at it. some people say that it's "tricky"
Graham
22-Apr-2006
[842]
I presume it is similar to the way images are handled in pdf ...
Henrik
22-Apr-2006
[843]
possibly, but it doesn't work properly in PDF Maker
Graham
22-Apr-2006
[844x2]
Oh ?
I've created pdfs with jpegs .. and they seemed to be okay.
Henrik
22-Apr-2006
[846]
I've tried without luck. that's why I started doing barcodes as vectors
Graham
22-Apr-2006
[847x4]
http://www.compkarori.com/images/test.pdf
is a page I created in pdf-maker a few years ago.
the image is not correctly apportioned but that was beacause I was 
lazy.
the script was written in 2002.
Henrik
22-Apr-2006
[851x2]
pretty neat looking
but maybe it was because it was an external bitmap and not one created 
by rebol
Graham
22-Apr-2006
[853]
the image there was loaded off a camera
Henrik
22-Apr-2006
[854x2]
newlines are made with \
that should be easy to do...
Graham
23-Apr-2006
[856x5]
Looking at algorithms for text justification.  One I looked at says, 
collect all the words that will fit on a line with a space, count 
the spaces, and the area left over, and allocated part of that extra 
space to all of those spaces.
No kerning involved in this one.
Text flow, with justification, word wrapping, and footnotes is not 
a simple task.
Since your centering routine didn't work, I just stuck with my original 
one, and that seems to work for me.
I've got a box with text in it, and all the text is centred.  I can 
translate that box to anywhere on the screen.
Henrik
23-Apr-2006
[861]
is that in DRAW?
Graham
23-Apr-2006
[862x2]
Yes.
and postscript.
Graham
24-Apr-2006
[864]
Hmm.  Lengths of text strings is different when measured as one string 
including spaces, or adding the lengths together of each word with 
a space in a sentence.
Gabriele
24-Apr-2006
[865]
Text flow, with justification, word wrapping, and footnotes is not 
a simple task.
 you bet :) that's 60% of TeX.
Pekr
24-Apr-2006
[866x2]
insert REBOL 3.0 compress load unpack %tech-sources.zip ;-)
... the smiley was not grin, I just tried to produce valid rebol 
line :-) .... insisting we are able to read archives in 3.0 :-)
Graham
24-Apr-2006
[868x8]
w
Without re-writing TeX, what I am trying to do is allow text to flow 
from one text box to another on the same page, and then on to other 
pages.
Although this is not too bad to do if you know in advance how much 
text there is, it's somewhat harder when you don't.
http://www.compkarori.com/reb/psd2draw1.r
Is a "fudged" example of page with two textboxes where the text flows 
down one textbox and then into the other while nearly being justified.
If you use the "edit data" button, and change the word "justify" 
to "left", and save, the text reappears without the full justification.
As you can see, the justification algorithm is imperfect .. and it's 
still a little ragged on the right.
I guess it doesn't matter too much as it is just a preview for postscript. 
 the output to postscript is yet to be done.
Graham
25-Apr-2006
[876]
All this stuff is harder than I first thought.  I now have to implement 
floating text tables so that one follows the other when the text 
amount is unknown.
Gabriele
26-Apr-2006
[877]
so maybe you now have an idea why i haven't done pdf maker 2 yet. 
:)
Graham
26-Apr-2006
[878x2]
Hey, Gabriele .. you're forgiven !!
Have you got some ideas on reading the TeX sources ?
Gabriele
26-Apr-2006
[880x2]
i have studied TeX a lot in the last couple months.
my plan is to be as good as TeX in pdf maker 2 (no math formatting 
planned though)
Graham
26-Apr-2006
[882x2]
So, port TeX to Rebol ?
Neat :)
Gabriele
26-Apr-2006
[884]
and of course i plan to document it very well (again, as good as 
TeX) so that everyone will be able to use it