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

World: r3wp

[Make-doc] moving forward

Graham
22-Sep-2005
[611]
no, looks like it doesn't work.
Ladislav
22-Sep-2005
[612]
ah, it does work
Sunanda
22-Sep-2005
[613]
I think it only works at the start of a line, not midway through 
one.
Graham
22-Sep-2005
[614]
that's true for all of those =directives isn't it ?
Sunanda
22-Sep-2005
[615]
I think so -- but =url is a natural to use halfway through a sentence, 
so it's easy to make that mistake.
Robert
23-Sep-2005
[616]
Correct, all the =... stuff onlin works on the start of a line. MDP 
can handle inline-URLS with =url http://...Text for link=
Christophe
1-Nov-2005
[617x2]
The REBOL MakeDoc Page

 - Updated 27-Jan-2005 ... /  "The MakeDoc Standardization Project" 
 - Updated 26-Jan-2005 ... Is there any activity left regarding those 
 project ?
At work, we use those formats intensively: for project docs, for 
official documents, even for generating psychotechnical tests skelettons 
in XML dialects... So it would be great if a standadization could 
take place, keeping the best of the two worlds MD2 and MDP.
Pekr
1-Nov-2005
[619]
hmm, I wonder how do you aproach printing .... I use Chris' online 
make-doc version at ross-gill.com, and it has strange metrics with 
IE, not to mention Mozilla - it screwes it up (if I want to have 
it with background) ... but maybe the cause is my pdf printer driver 
...
Christophe
1-Nov-2005
[620x2]
Well, I didn't feel any trouble using PDF-factory and printing to 
it. The process of savinf documents is really simple. Write the doc 
(MD2 or MDP) / generate HTML / print to the PDF-generator / save 
the PDF and publish doc :-)
savinf > saving
Pekr
1-Nov-2005
[622]
I just did not get satisfactory enough result .... but I wanted to 
print with background ...
Christophe
1-Nov-2005
[623]
how did you did it ? did you set the background using the css style 
sheet, or did you address it right into the html code ?
Pekr
1-Nov-2005
[624]
stylesheet imo .... but the result was bad in mozilla ...
Geomol
1-Nov-2005
[625x3]
In the same area, there is also my NicomDoc: http://home.tiscali.dk/john.niclasen/nicomdoc/

I think, my approach has some advantages over both MD2 and MDP. I 
convert to/from an internal XML-kind of format called RebXML, which 
is much easier to work with, when making importers/exporters to different 
formats. RebXML is defined here: http://home.tiscali.dk/john.niclasen/rebxml/

I'm not sure, if anyone else found my ideas to be usefull, when I 
talked about it here half a year ago, and I haven't have much time 
to do more with NicomDoc, but it's not a dead project.
And don't let the XML part acare you away, it's NOT XML, as you know 
it, just the good thoughts from XML. RebXML is based on blocks, words 
and strings.
acare = scare
Christophe
1-Nov-2005
[628x2]
I'm sure your format has a lot of possibilities. FYI, there's a little 
compare study  published on http://rebolfrance.info/articles/gendoc_avec_rebol
. But a few years ago, I had to make a choice on the format to use, 
and it became MDP (MD2 then when it was released).
I find the idea of using simple tags to generate doc a improvement 
for professionals. Every time I have to use the m$ word, I'm stuck 
into format problems and i spend more time find a solution to it 
than concentrating on the core of my text. But i guess this is a 
known complaint :-)
Robert
1-Nov-2005
[630x3]
Printing: With the COM stuff now, I'm going to do a MS Word emitter 
for MDP. Than this shouldn't be a problem.
XML: Well, I choose to use a block based intermediate format coming 
from the MDP parser. It's because you can handle it the Rebol style 
and it makes writing a one-pass emitter quite easy.
standardization: Yep, I agree. But seems like we have to many options, 
different thinkings and preferences, to many forks etc. I tried it 
several times but no luck. I think it won't happen, and I don't spend 
any more time on this standardization stuff. It needs people to push 
it and without a group wanting this it won't happen.
Christophe
1-Nov-2005
[633x2]
Too bad :(
But keeping standardization on the side, are they any ideas of working 
on compatibility ? I mean: doc developped under MDP should be readable 
under MD2, for example. Or is the workgroup totally dead ? (in which 
case it should be announce on rebol.net... i think).
Pekr
1-Nov-2005
[635x3]
workgroup has not set any timeframes etc.
dead or no, it depends upon ppl's needs - if noone needs such standardisation, 
it will not happen ...
imo we need new rebol blood and we should try (I am trying :-) to 
recruit new blood to join us :-) every developer can help ...
Christophe
1-Nov-2005
[638]
u mean for this WG ?
Pekr
1-Nov-2005
[639]
not only ...
Christophe
1-Nov-2005
[640]
About new blood... this is a conversation which appears regularly 
within the french rebol community; How make rebol more popular ... 
but this is becoming off-topic, perhaps we should move to... well, 
to where ? :-)
Pekr
1-Nov-2005
[641]
French community is "strange" - it is very cool and active, yet it 
creates barrier for rebol adoption a bit - many of good materials 
are not in english. We help short talk about it with Cyphre - if 
rebol.cz should be czech only, or something like rebolforces, so 
in english ... (or both :-)
Robert
1-Nov-2005
[642]
compatibility: MDP should be 100% MD compatible. I'm not sure about 
MD2 but if you find any differences let me know.
Christophe
1-Nov-2005
[643x7]
Yes, Pekr. u're right ! Its called language barrier :-)
No. No joking now... For lot of french taking ppl, another language 
than french is on the border of the unbiliefable. But isn't so also 
for the native english talking ppl ?
We started in february this year with the "REBOL Documentation Project" 
initiative with also this goal into our vision: let's make REBOL 
popular by translating doc ! There's a LOT of high value articles 
and studies abour REBOL out there... lonely in english ... (Ladislav 
:-) ) or in french ... let's translate it ! let's publish it !
For now, we succeed a bit into getting good french documentation. 
But it can be still beter ! OK, i can admit, i did not deploy a lot 
of effort to "recruit' english-speeking author for publishing on 
our website ... Yet, it stays open ! Come on in ! Do YOU have something 
to say about REBOl ? Do you want to make it publicly accessible ? 
We need YOU ! Contact me and get on the 'REBOL Documentation Project' 
!
OK... Should we create a new "REBOL Documentation Project" aka "REBDocProj" 
group ?
I should note i'm Belgian, not French :-))
Robert: well, i didn't go into your latest version, but is the table 
handling not a compatibility problem? i mean =row against || text 
| text ...
Robert
2-Nov-2005
[650x3]
Tables: Yes, I didn't yet implemented it. But shouldn't be that hard 
to do.
I thought, for several times, to rewrite the MDP parser to use Garbriele's 
compile-rules function. Should make the parser simpler and more compact. 
Further I could design it in a way to handle the different approaches 
better.
But this needs quite a lot of time...
MikeL
9-Nov-2005
[653]
I don't find URL support as described in http://www.rebol.net/docs/makedoc/md1.html#section-5.5
 in the released makeDoc version accessible at http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=makedoc2.r
   Rambo 488 raised for this.
Graham
9-Nov-2005
[654]
that url directive only works if it's on the left margin.
MikeL
9-Nov-2005
[655]
Hi Graham,  this version ignores my =url request and look at the 
source http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=makedoc2.r
  I can't find any URL text string in that source.

I think this version does not support =url at any column position.
Louis
10-Nov-2005
[656]
The web page created by makedoc2.r is too wide for my screen. How 
can I make the lines wrap at the right border of the window so that 
when the window size is changed the line breaks are automatically 
adjusted?
Robert
10-Nov-2005
[657]
IIRC it's some CSS style/tag named "float"... but not sure, out of 
my head.
Alek_K
10-Nov-2005
[658]
Louis:  simplest solution - change width of table (can be percents) 
- or delete it 

<table width="660" cellpadding="4" cellspacing="0" border="0"> to 
<table cellpadding="4" cellspacing="0" border="0">
Louis
10-Nov-2005
[659]
Robert and Alek_K, thanks for responding. Deleting the table altogether 
solved the problem. Thanks!
MikeL
16-Nov-2005
[660]
For makedoc2.r input log 488 on Rambo which has morphed to Reviewed 
log 3955, this change deck provides =url support for anyone who wants 
it.  

The line changes are all inserts and the line number is the download 
version from the script library as of a few minutes ago

-ins 136

        | "url" url

-ins 169 


url: [
    some space copy text thru newline (
        emit url parse/all text " "
    )
]


-ins 311 

            url         [emit-url doc/2]


-ins 512

emit-url: func [spec] [
    emit [reduce {<a href="} spec/1 {">} skip spec 1 </a><p>]
]