PDF-Maker
[1/20] from: g:santilli:tiscalinet:it at: 23-Jun-2001 18:15
PDF-Maker
Hi! This is just a small note regarding pdf-maker.r
I quickly added color; now you can find it on my REB site
(Rebol.it) and in the script library.
Regards,
Gabriele.
[2/20] from: brett:codeconscious at: 24-Jun-2001 12:46
Hi Gabriele,
Could you give me the direct address to goto.
I can't see it on the Sites desktop. I think I've still got proxy problems
AND I've changed ISP ! :(
Brett.
[3/20] from: gchiu:compkarori at: 24-Jun-2001 15:05
On Sun, 24 Jun 2001 12:46:52 +1000
"Brett Handley" <[brett--codeconscious--com]> wrote:
> Could you give me the direct address to goto.
>
> I can't see it on the Sites desktop. I think I've still
> got proxy problems
> AND I've changed ISP ! :(
>
http://web.tiscalinet.it/rebol/index.r
is not accessible to me either.
--
Graham Chiu
[4/20] from: larry:ecotope at: 23-Jun-2001 20:18
Hi Brett
There are two files,
http://web.tiscalinet.it/rebol/pdf-maker.r
http://web.tiscalinet.it/rebol/pdf-maker-doc.
The second one produces the sample pdf file and calls the first expecting it
in the same dir.
-Larry
[5/20] from: brett:codeconscious at: 24-Jun-2001 13:32
Thanks Graham and Larry.
[6/20] from: g:santilli:tiscalinet:it at: 24-Jun-2001 12:45
Hello Brett!
On 24-Giu-01, you wrote:
BH> Could you give me the direct address to goto.
http://web.tiscalinet.it/rebol/index.r
Regards,
Gabriele.
--
Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer
Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/
[7/20] from: g:santilli:tiscalinet:it at: 15-Jul-2001 19:42
Hi!
I just wanted to note that I'm currently adding graphics to
pdf-maker.r. It now does lines and boxes as well as coordinate
transformations (nested at any level). I'll add generic shapes
very soon, together with clipping etc. I've also added comments to
the code so that you'll be able to see how it is working (and use
the lowlevel dialect if needed).
For the graphics I decided to go this way:
; simple commands
'line x1 y1 x2 y2
'box x y w h
'solid 'box x y w h ; for filled box
; you can also set line width etc.
'line 'width w 'cap 'round
; or set and draw
'line 'width w x1 y1 x2 y2
; for BOXes
'box 'line 'width lw x y w h
; which is the same as
'line 'width lw
'box x y w h
; line color can be set with
'line opt ['color] tuple!
; fill color with
'fill opt ['color] tuple!
; transformations can be done with
'apply 'translation x y [
; ...
]
; you can nest them...
'textbox ...
'line ...
'apply 'rotation angle 'translation x y [
'line ...
'textbox ...
'apply 'scaling sx sy [
'box ...
'textbox ...
]
]
; and so on... (apply has other nice features, too)
; for paths, I plan to go this way
'stroke options [path] ; draw a path
'fill options [path] ; fill a path
'paint options [path] ; fill and stroke a path
; where the options are the same as for LINE etc.
; and set a new state
I'd like to have comments on these.
Regards,
Gabriele.
--
Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer
Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/
[8/20] from: g:santilli:tiscalinet:it at: 16-Jul-2001 22:08
Hello [sqlab--gmx--net]!
On 16-Lug-01, you wrote:
s> I really appreciate your work,
Thanks! I appreciate your comments!
s> How about a path notation in using the options,
s> as in
s> 'box
s> 'box/solid
s> 'box/line/width
s> 'line
s> 'line/width
Hmm... these would be harder to parse, and I don't think
box/solid
would be more readable than "solid box"... Anyway I'll
think about it. What do others think?
Regards,
Gabriele.
--
Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer
Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/
[9/20] from: arolls:bigpond:au at: 17-Jul-2001 6:58
I reckon your original dialect
seems pretty optimal.
[10/20] from: max:ordigraphe at: 16-Jul-2001 17:51
Isn't the human brain a nice thing....
it categorises stuff differently from people to people....
> > s> 'box
> > s> 'box/solid
<<quoted lines omitted: 5>>
> > "box/solid" would be more readable than "solid box"... Anyway I'll
> > think about it. What do others think?
I prefer "USING" a line of code like:
solid box boxsize
vertical arrowed line here to there
bold text "Title"
normal Text "hey"
rather than:
box/solid boxsize
line/arrowed/vertical here there
text/bold "title"
text/normal "hey"
BUT when LEARNING code, I find the later IS easier to structure and
seems easier to "try-out" as it is VERY clear that bold is a property of
text and "theoretically" ;-) any other thing which has a "text" should
also have the bold attribute... its also clear how you supply arguments
(if it stays in line with REBOL's optional arguments scheme).
in the former example, its a little bit confusing to try out new code
and sometimes a little bit harder to edit, because it can become unclear
as to what attributes are attached to what.
imagine if REBOL's function all supplied their optional args as
space-delimited parameters.. "@@@@AAAAAAAAAHHHH" that would be insanely
hard to maintain.
BUT, IMHO, I do think that for a rather conscice dialect such as a
printing language... the former is more fun to use... as long as the
tags stay very clear and the options aren't overwhelmingly numerous for
each tag (which I don't really see being possible).
just my two cent's worth. ;-)
-Max
<< Don't rush me Sonny - you rush a miracle man, you get lousy miracles
>>
Miracle Max (Princess Bride)
-------------
Maxim Olivier-Adlhoch
[11/20] from: louisaturk:eudoramail at: 16-Jul-2001 19:49
Can someone tell me where to get the documentation to pdf-maker.r?
Many thanks!
Louis
>> write read http://web.tiscali.it/rebol/pdf-maker-doc
** User Error: Error. Target url: http://web.tiscali.it/rebol/pdf-maker-doc
could not be retrieved. Server response: HTTP/1.1 404 Not Found
** Near: write read http://web.tiscali.it/rebol/pdf-maker-doc
[12/20] from: rene:villa-cossio at: 30-Aug-2001 13:32
Hi,
on which reb-page can I find the "pdf-maker" with manuals...
cu
Rene
[13/20] from: mario:cassani:icl at: 30-Aug-2001 12:20
Hi Rene,
> on which reb-page can I find the "pdf-maker" with manuals...
>
On Rebol-it or in the rebol-it folder of R-Forces.
Nihao
Mario
[14/20] from: sqlab:gmx at: 16-Jul-2001 9:32
Hi Gabriele
I really appreciate your work,
Some comments.
How about a path notation in using the options,
as in
'box
'box/solid
'box/line/width
'line
'line/width
regards
AR
> Hi!
> I just wanted to note that I'm currently adding graphics to
<<quoted lines omitted: 49>>
> Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer
> Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/
AR
[15/20] from: arolls:bigpond:au at: 17-Jul-2001 17:16
Provided you have the following files:
http://web.tiscalinet.it/rebol/pdf-maker.r
http://web.tiscalinet.it/rebol/pdf-maker-doc.r
You can just
do %pdf-maker-doc.r
then
browse %pdf-maker-doc.pdf
[16/20] from: g:santilli:tiscalinet:it at: 17-Jul-2001 17:10
Hello Maxim!
On 16-Lug-01, you wrote:
[...]
MO> BUT when LEARNING code, I find the later IS easier to
MO> structure and seems easier to "try-out" as it is VERY clear
MO> that bold is a property of text and "theoretically" ;-) any
MO> other thing which has a "text" should also have the bold
MO> attribute... its also clear how you supply arguments (if it
MO> stays in line with REBOL's optional arguments scheme).
[...]
You are right; in my dialect, indeed, options FOLLOW the
command
. It's just that I decided to make "solid box" a
different command from "box": they even accept different options;
this is not just because I'm crazy, :) but because PDF uses
different commands to stroke or fill a path and because things
like the inner color make no sense for a normal "box".
This way I can handle defaults differently in the two cases; that
is:
box 255.0.0 ... ; box with red edge
while
solid box 255.0.0 ... ; red box
and you don't have to write:
box edge color 255.0.0
box solid fill color 255.0.0
Anyway, since I don't have any backward compatibility problem yet,
:) I'll change to that what makes most sense to you all. So let's
discuss it together and let's take a decision! :)
Regards,
Gabriele.
--
Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer
Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/
[17/20] from: g:santilli:tiscalinet:it at: 17-Jul-2001 17:16
Hello Dr.!
On 17-Lug-01, you wrote:
DT> Can someone tell me where to get the documentation to
DT> pdf-maker.r?
You can either go to my REB site ("Rebol.it" icon in the "Sites"
page of the desktop, or http://web.tiscalinet.it/rebol/index.r)
and click the "PDF Maker" icon or download it as:
http://web.tiscalinet.it/rebol/pdf-maker-doc.r
But please notice that the documentation is not ready yet for the new
version of PDF Maker. Most of the notes in that document are still
valid, but you'll probably have to look inside pdf-maker-doc.r to
see some really working examples.
Regards,
Gabriele.
--
Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer
Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/
[18/20] from: louisaturk:eudoramail at: 17-Jul-2001 12:54
Thanks, Anton!
I misunderstood (didn't read carefully). I thought pdf-maker.doc was the
documention.
Louis
At 05:16 PM 7/17/2001 +1000, you wrote:
[19/20] from: louisaturk:eudoramail at: 17-Jul-2001 15:01
Gabriele,
At 05:16 PM 7/17/2001 +0200, you wrote:
>But please notice that the documentation is not ready yet for the new
>version of PDF Maker. Most of the notes in that document are still
>valid, but you'll probably have to look inside pdf-maker-doc.r to
>see some really working examples.
>
>Regards,
> Gabriele.
Thanks for the info. When you write that documentation, please remember to
explain everything so that us newbies can understand how it works and how
to use it. :>)
And thanks for making the fruits of all your work available to us.
Louis
[20/20] from: g:santilli:tiscalinet:it at: 18-Jul-2001 21:37
Dr. Louis A. Turk
wrote:
> Thanks for the info. When you write that documentation, please remember to
> explain everything so that us newbies can understand how it works and how
> to use it. :>)
I will try to. But this will work only if I'll actually get
feedback from newbies saying "hey, you didn't explain this
completely!", "that doc is unreadable!" or "that piece was
understandable, at least". :-)
(More seriously, what is obvoius to someone is not necessarily so
for any other; this is the reason why I'm continuously asking for
feedback both for the dialect and for the documentation. I you
feel something can be done better, please let me know!)
Also I'll happyly accept help on making my English more readable
and correct, since I'm not a native English speaker (as you might
have guessed :).
Regards,
Gabriele.
--
Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer
Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted