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

World: r3wp

[Make-doc] moving forward

shadwolf
31-Jan-2005
[408x2]
I know that I'm making every day a new realease of an unstable project 
but this helps me to figure out for eventual bugs...
and this helps you to see what direction the MDP-GUI project is taking 
I hope this 1.3.4 version will be at your taste. :)
James
31-Jan-2005
[410]
Okay, I downloaded makedoc2 from rebol.org the other day and I still 
haven't figured out how to create links. In makedoc all you did was 
"url=http://www.rebol.com"REBOL" " but that just shows up as text 
in makedoc2. Could you help me out?
Geomol
31-Jan-2005
[411]
I don't think you can in MakeDoc2.
James
31-Jan-2005
[412]
Darn.
Geomol
31-Jan-2005
[413]
But the HTML tag <a> should work.
James
31-Jan-2005
[414]
So, I could just edit the HTML file and add it afterwards?
Geomol
31-Jan-2005
[415]
Yes, or write <a href="http://www.rebol.com">REBOL</a>in your text.
James
31-Jan-2005
[416]
It automaticly executes HTML?
Geomol
31-Jan-2005
[417]
Well, it just take it over to the output without processing it in 
any way, so it should work.
James
31-Jan-2005
[418]
Nice. I didn't know that.
Geomol
31-Jan-2005
[419]
Like if you wanna write something in bold, you use <b>bold</b>.
James
31-Jan-2005
[420]
Ah. This is where it pays off to know basic HTML. :)
Geomol
31-Jan-2005
[421]
:)
James
31-Jan-2005
[422]
Thanks! I'll have to do that.
Geomol
31-Jan-2005
[423]
Problem is, if you wanna build a system to have other output than 
HTML.
James
31-Jan-2005
[424x2]
True. That would be a little more difficult.
What about layouts? Do those work the same?
Geomol
31-Jan-2005
[426]
I've written a MakeDoc2 summary. Look here: http://home.tiscali.dk/john.niclasen/nicom-md2-spec.html
James
31-Jan-2005
[427x2]
Cool. Now I have a reference!
Thanks again.
Geomol
31-Jan-2005
[429]
You're welcome!
shadwolf
1-Feb-2005
[430]
Geomol is right I had to add the parsing of =url flag into the Ashley 
MD2-IDE rendering process to adapt it to the MDP format
Geomol
2-Feb-2005
[431x4]
I'm going on skivacation for a week, but I desided to put my work 
so far on the NicomDoc document format up on my website. It's NOT 
version 1.0 yet, so some features are not supported. I'll write a 
short specification in a moment.


Parsing a NicomDoc document to HTML goes in two passes, first the 
raw document is converted to RebXML format. This is done by this 
script:
http://home.tiscali.dk/john.niclasen/nicomdoc/nicomdoc.r


Next the RebXML version is converted to HTML. This is done with this 
script:
http://home.tiscali.dk/john.niclasen/nicomdoc/rebxml2html.r


I've also made a little script, that will do the whole conversion 
in one go by calling the other scripts. It works much like calling 
makedoc2.r, and it can be found here:
http://home.tiscali.dk/john.niclasen/nicomdoc/ndoc.r


Those of you, who want to work with this format, e.g. make VID output, 
should work from the RebXML version of the document (after first 
parsing from raw document to RebXML with the first script), because 
this script handle all the complicated rules, so the RebXML version 
is much easier to work with.
Specification here: http://home.tiscali.dk/john.niclasen/nicomdoc/NicomDoc.html

Example of use: http://home.tiscali.dk/john.niclasen/nicomdoc/example.txt

And the output: http://home.tiscali.dk/john.niclasen/nicomdoc/example.html
Notice! As this is not version 1.0 of NicomDoc, some things will 
probably change. The namespace might change. Example: I use 'p' for 
paragraph in the RebXML version to make it short (also if someone 
wants to make XML output, which is bloated), but I might change it 
to have a more saying name for a paragraph. And URL keyword might 
go away and be replaced by a more general term like a reference.
It's of course possible to make XML output of a NicomDoc document 
by first parsing it with nicomdoc.r and then use http://home.tiscali.dk/john.niclasen/rebxml/rebxml2xml.r
on the RebXML version. And back again with http://home.tiscali.dk/john.niclasen/rebxml/xml2rebxml.r
Piotr
3-Feb-2005
[435]
wikiDoc = makeDoc with dokuwiki syntax; 
http://www.rowery.olsztyn.pl/wspolpraca/rebol/wikiDoc/
shadwolf
5-Feb-2005
[436x2]
and wiki rendering like to ... it's closer from IRC or chat or web 
php/forum it include Smyleys ;)
It could be included to rebforum work  As soon we restart working 
on it ... we are waiting for rendering  for Ritch Text enhancement 
 (TDM) to rework on it
eFishAnt
6-Feb-2005
[438x2]
I love the way makedoc2.r shows the out of place markups...so you 
can see why something didn't work...for example, if you do a # without 
the para...it shows the out of place # in the html
makes it REAL easy to fix ML typos.
Henrik
13-Feb-2005
[440]
has there been any ways suggested with making colspans in tables? 
otherwise I would suggest a:

\colspan

col1

col2

col3

/colspan


tag. Just build the table as normally and enclose the columns you 
want in a specific row with those tags.
Geomol
13-Feb-2005
[441]
It's tricky to make tables easy to produce for the writer, and at 
the same time give opportunities to have colspan and rowspan. And 
do we have the need to have tables within tables? That'll just make 
it even more complicated. I guess, learning by doing is a good way 
to figure it out. (That's one idea behind my NicomDoc format. To 
try things out.)
Henrik
13-Feb-2005
[442]
I suggested this, if tables were to continue with their current syntax 
in makedoc2. The syntax has the advantage, I think, that cell contents 
can be complex or almost an entire document in itself, but bigger 
tables are hard to overview in text. I don't think this tag will 
cause the current method to become that much more complex.
DideC
13-Feb-2005
[443]
Do one knows why "=url" is not part of makedoc 2.6 (nor 2.5) ??
eFishAnt
18-Feb-2005
[444]
you can inline the HTML, I discovered...
shadwolf
18-Feb-2005
[445]
sure but why the =url as been retire for it ? it simplifies the creation 
of links
shadwolf
23-Feb-2005
[446x4]
brand new version of MDP-GUI 1.3.6 is available here: http://rebol.dev.fr/view.php?sid=151
what's new : - Better rendering images and tables support. Try to 
load the default make-doc-pro.txt that come with Make-Doc-Pro
to see all the parsing rendering improments
new link http://rebol.dev.fr/view.php?sid=152
Robert
23-Feb-2005
[450]
Shadwolf, looks pretty cool!! Tables look very good. Is italic supported?
shadwolf
23-Feb-2005
[451x7]
good question ;)
marker parsing as MDP  format or as HTML flags
are coded but I don't know if all are perfectly parsed;)
Underlined,blod are supported italic ~text~ is not supported
Has I  forget toremove a disgracingprobe I can fix that too
k fixed ;)
http://rebol.dev.fr/view.php?sid=154