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

World: r3wp

[Make-doc] moving forward

Pekr
11-Jan-2005
[169]
it showed really handy, when I used it ...
Sunanda
11-Jan-2005
[170]
To be usable as part of a CGI (for dynamic sites like REBOL.org), 
we'd either need to edit the script to remove* feature* like =include; 
or (better) Makedoc2 could have some refeinements to limit where 
it can read files from.

Without something like that, features like =include are a security 
risk -- they can read anything on the server.
Robert
11-Jan-2005
[171]
Ah, good point. I could handle this in MDP light_mode
Henrik
11-Jan-2005
[172]
I use =include to build my reference manuals and file lists inside 
other docs. It's quite essential that it works for me.
Geomol
11-Jan-2005
[173]
Robert, as you say, the mentioned people didn't get to develop the 
standard further, I think, Carl should have the information discussed 
here in this group. What do you think is the best way to contact 
Carl on this? With the feedback link on his blog?
PeterWood
11-Jan-2005
[174]
I've founfd the most reliable way to contact RT is via the feedback 
form at rebol.com. 

It doesn't work everytime though.
Pekr
11-Jan-2005
[175]
My opinion is, we shold leave make-doc, bloggger and other topics 
for now, to get Carl's attraction where we really need it ;-) RIF, 
plug-ins, RebServices, Rebin,  AGG beta  are waiting in priority 
list :-)
Sunanda
11-Jan-2005
[176]
Robert - MDP light_mode -- the version of make-doc-pro we use a REBOL.org 
has its =include code commented out.  It would be good if there were 
just one version,
shadwolf
11-Jan-2005
[177]
Yep working all with the same tool increase the easy knowledge.
eFishAnt
11-Jan-2005
[178]
and it is so nice to have such a cool document formatter which is 
so easy to use, understand, and improve upon.
Geomol
11-Jan-2005
[179]
I've made an initial specifikation of MakeDoc2. It can be found here: 
http://home.tiscali.dk/john.niclasen/nicom-md2-spec.html

The MakeDoc2 document for that specifikation can be found here: http://home.tiscali.dk/john.niclasen/nicom-md2-spec.txt
shadwolf
11-Jan-2005
[180]
i agreed with a cool editor like MDP-GUI that"s even cooler
Ashley
11-Jan-2005
[181]
Great spec Geomol (Specifikation -> Specification), that's the best 
doc I've seen on MakeDoc (any version) to date! ;) It got me thinking 
about a few things; firstly, which of the following is valid:

*One
*Two
*Three

or

* One
* Two
* Three


and, do we *really* need to insist upon a blank line between each 
MakeDoc element? Isn't 'newline more than adequate?


Also, it [the standard] should make it clear that the EOF tag "###" 
is *optional* - I don't want to be told that "you need it to make 
your document work".
DideC
11-Jan-2005
[182]
blank line is required if you manualy wrap your line at 70/80 char 
because your editor does not wrap by himself (Carl's intention, see 
makedoc2.5 header)
Geomol
11-Jan-2005
[183]
Thanks Ashley about the spelling. Changed!


About the bullet points, both ways seem to be valid. In the script, 
Carl use a rule called "text-block" to follow both types of bullets, 
defines and also comments. It's defined to have optional leading 
space (notice the comment):


text-block: [any space paragraph opt newline] ; ignore leading space, 
extra NL !???
eFishAnt
11-Jan-2005
[184]
a missing ### used to cause problems at the end of a make-doc generated 
document.  Haven't tested this version for that.
Geomol
11-Jan-2005
[185]
The ### can be left out in the end, no problem here.
eFishAnt
11-Jan-2005
[186]
you will need it for sure if you do/args makedoc2.r at the end of 
the content.
Geomol
11-Jan-2005
[187]
yup
eFishAnt
11-Jan-2005
[188]
I verifed that old make-doc.r needed the ### to prevent missing the 
last line, but the new one doesn't...so Ashley can be happy now!
PeterWood
11-Jan-2005
[189]
Geomol: Would be possible to show the source for each example immediately 
before it? Perhaps you could treat the "source" as code so that it 
would stand out.
Geomol
11-Jan-2005
[190]
Yes Peter, a more complete spec should have that. For now you can 
see the source for the examples at the bottom of http://home.tiscali.dk/john.niclasen/nicom-md2-spec.txt
PeterWood
12-Jan-2005
[191]
Thanks
shadwolf
12-Jan-2005
[192]
tente$
Robert
12-Jan-2005
[193x3]
Sunanda, MDP already can be run in light_mode. Than it justs create 
a HTML output block but nothing more. You than just do whatevery 
you want with it. So there are no two versions. It's just an other 
operations mode.
=include How about an option to disable it? The CGI could insert 
something like =option include-off into the submitted text and than 
MDP will skip =inlcude commands.
While doing MDP for some time now, the details are the hard part. 
Try to use a definition word that has a - in it. Like:

 	manager-report - This is defined as...

Those things make it hard.
Geomol
12-Jan-2005
[196]
I've started work on a more complete document format based on MakeDoc2.

The specification so far can be seen here: http://home.tiscali.dk/john.niclasen/NicomDoc.html


I would like comments on whether this is a way to go and make it 
a new public format, or I just should keep it for myself to solve 
my own documentation needs. The specification is very compact in 
this version, so feel free to ask, if you have any questions.
Sunanda
12-Jan-2005
[197]
Robert =include disable. That would be good.

The same issue may in future affect other "dangerous" commands.  
Maybe have  a generic option to run make-doc-pro in a "sandbox". 
In the sandbox, it'd ignore =include and other dangerous commands.
Henrik
12-Jan-2005
[198]
anyone noticed a bug in table headers in makedoc2? there appears 
to be a newline before the text in the second column of a table, 
which makes it double height and the text is shifted down in the 
header
Geomol
12-Jan-2005
[199]
Yes, I see that too, when using Mozilla, but not with Opera. It's 
because a <b> (bold) is not finished with </b> in the second header 
cell. A bug in the script, it seems.
[unknown: 5]
13-Jan-2005
[200]
Should send that to www.rebol.com/feedback.html
Robert
13-Jan-2005
[201]
Sunanda, that was my idea. The list of dangerous directive can be 
easly extended than.
Geomol
16-Jan-2005
[202]
Have any of you looked close at the MakeDoc2 formatter? It's a 2-pass 
parsing, first converting the text to rebol blocks, and then parsing 
the block(s) producing HTML code. Of course it's smart, because if 
you wanna make a parser producing e.g. PDF code, you only have to 
make a new second level parser. And there's also the problem with 
Table Of Content, which can only be completed after the first pass. 
My first approach with my NicomDoc format was to make a 1-pass parser, 
and build the TOC along the way as separate text, and then only combine 
the TOC and the rest of the document before output. Benefit with 
1-pass parsing would be speed, but downside is, that you need a new 
full parser, if you wanna make PDF code. Then again a parser going 
from some rebol block format to e.g. PDF would probably be almost 
same size as going from a text format (NicomDoc or MakeDoc) to PDF. 
hmm What about XML? Making an XML file from some rebol blocks would 
be pretty easy, same the other way. What should I do? Make a 1-pass 
or a 2-pass formatter?
Pekr
16-Jan-2005
[203]
What is the problem to create TOC as a subblock for second phase 
purpose, during first phase pass?
Geomol
16-Jan-2005
[204x2]
No problem with that. That would probably be the way to do it in 
a 2-pass formatter. It's only a problem in a 1-pass formatter, because 
you have to do some work anyway after first pass to make end final 
output (incl. TOC).
I think, it'll be best for me to make a 2-pass formatter. Not optimal 
speed, but the whole task look much easier this way. And first pass 
should be a separate rebol script, which wouldn't need much change, 
only if standard changes. And then second pass scripts are made for 
each output format.
Anton
16-Jan-2005
[206]
That seems the way to go, unless you want to make a compiler compiler.
Geomol
16-Jan-2005
[207x2]
Yet Anoter Compiler Compiler? :-) No way! ;-)
Another**
Anton
16-Jan-2005
[209]
Just migrate some more hair from the top of your head to your chin. 
You'll be fine ! :-)
Robert
16-Jan-2005
[210x2]
Geomol, MDP takes the same approach. 2-pass parser.
More precise: 2-pass script. First parse, second generate.
Geomol
16-Jan-2005
[212]
I've updated the NicomDoc specification: http://home.tiscali.dk/john.niclasen/NicomDoc.html

And I've started implementation of the first pass of the formatter.
Robert
16-Jan-2005
[213]
Why again a new one?
Geomol
16-Jan-2005
[214x3]
Carl made MakeDoc and started a project some months ago to define 
MakeDoc2, but it seems, the group fail to make progress, so Carl 
wrote something about it lately and published some scripts. As I 
see it, MakeDoc has some bad ideas around commands like \note /note 
\table /table and so. Those things should be strictly based on the 
hierarchical datamodel, else users of the format WILL make errors, 
as we see it with HTML, XML and the like. And MakeDoc2 also miss 
bold, italic and the like, which is done as HTML tags. I need to 
make a lot of specifikation and documentation for my projects, so 
I desided to make my own format, that suit my needs. I don't know 
yet, what I should do with it yet, but I'm going to do it. :-)
I hope, it'll be part of a general format, everybody will use, some 
day - maybe merge with MakeDoc2!? It's not my decision.
(ops! I made some bad sentence construction there. Sorry about that. 
I hope, you understand me.)
Robert
16-Jan-2005
[217]
You know make-doc-pro?
eFishAnt
16-Jan-2005
[218]
make-doc2 is a current interrim which has his improved starting point, 
so we don't have to start with make-doc 1 generator