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

World: r3wp

[Make-doc] moving forward

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>]
]
Josh
6-Dec-2005
[661]
I'm running into that issue.  Is there another way to do URLs in 
MakeDoc2 besides the supposed =url ?
Volker
6-Dec-2005
[662x2]
Plain html?
Or patching :)
Josh
6-Dec-2005
[664]
We'll see if I have any luck trying to patch it, volker
Volker
6-Dec-2005
[665]
Where is the source, what do you need? IIRC i patched it once, so 
i may remember where to place code.
Josh
6-Dec-2005
[666x3]
It looks like MikeL has it above this.  I'll just make those changes 
and confirm it
OK, I updated the MakeDoc2 file per MikeL's changes and here is a 
URL for testing:   http://www.cs.grin.edu/~shirema1/makedoc2.r
Worked ok for me
Volker
6-Dec-2005
[669]
Quick work :)
Josh
6-Dec-2005
[670x2]
Thank you
MikeL
james_nak
12-Dec-2005
[672]
Is there a way to make blank lines (also blank boxes) in Makedoc?
Volker
12-Dec-2005
[673]
if nothing else: html. <br> <p>
btiffin
12-Jan-2006
[674x3]
Hi,
Hi,
Is there any easy way to get blank columns in makedoc tables?
[unknown: 9]
12-Jan-2006
[677]
\table

<BR>


=row

<BR>


/table
btiffin
12-Jan-2006
[678x2]
Thanks Reichart, I was just about to post that I stumbeld on a non 
breaking space  &nbsp; solution.
And then I stumbled on posting stumbel
eFishAnt
13-Jan-2006
[680]
makespace
[unknown: 9]
13-Jan-2006
[681x3]
Am I correct that tables in MakeDoc are only vertical?!!?
Meaning, the the top is darker than the rows.
Is there way to make a table in MakeDoc that has the first column 
all dark, then each column to the right is white?
Ashley
14-Jan-2006
[684]
You want row headings instead of column headings. Not supported.
Graham
14-Jan-2006
[685]
It's not supported by html
[unknown: 9]
14-Jan-2006
[686]
In HTML I can colour the table cells on the left, and leave the other 
columns clear.  So that should work.
Ammon
14-Jan-2006
[687]
Actually, it's pretty simple to do it in HTML:

<table>
    <tr>
        <th>One</th><td>one</td>
    </tr><tr>
         <th>Two</th><td>two</td>
     </tr>
</table>

Just use TH instead of TD where you want the Header cells to be.
btiffin
16-Jan-2006
[688]
.
btiffin
17-Jan-2006
[689]
.
Thør
1-Apr-2006
[690]
.
Henrik
16-Nov-2006
[691]
Is it me or is there not a hidden option to make 2 column output 
in makedoc 2? I seem to remember one.
Gabriele
16-Nov-2006
[692]
some versions have something like that, not sure the official version 
does.
MikeL
16-Nov-2006
[693]
Henrik, I am not sure what you mean but this makes a two column table 
for me

\table

Column1 Heading

Column2 Heading

=row

Cell 1,1

Cell 1,2

=row

Cell 2,1

Cell 2,2


/table
Henrik
16-Nov-2006
[694]
Mike, I was thinking like this: http://www.rebol.net/docs/makedoc.html
Louis
17-Nov-2006
[695]
With MakeDoc2 is there any way to comment out a block of text you 
don't want to print? I found =: but that doesn't seem to work. Or 
perhaps I just don't know how to use it.
Gabriele
17-Nov-2006
[696x2]
put ; in front of the paragraph
henrik, the source to that page uses \column ... =column ... /column
Louis
17-Nov-2006
[698x2]
Gabriele, Thanks! I should have known to try the REBO way. But the 
comment in MakeDoc2 says to use "=: "
REBO = REBOL
Henrik
26-Nov-2006
[700x2]
; Options still need work!!!
 <---- found this in the source code for makedoc 2 on rebol.org


Does this mean that reusing makedoc in the same run-time session 
really is broken? If I turn off table of contents for one doc, it 
will not be on for the next for example.
I found a bug that accumulates the options over several documents. 
maybe I can fix it...
Henrik
27-Nov-2006
[702x3]
Fixed!
set 'scan-doc func [str /options block] [
    clear out
    title: none

    if options [
        if find block 'no-title [title: true]
    ]
    emit options opts
    clear opts
    str: join str "^/^/###" ; makes the parse easier
    parse/all detab str rules
    if verbose [
        n: 1
        foreach [word data] out [
            print [word data]
            if (n: n + 1) > 5 [break]
        ]
    ]
    out
]
options are now cleared properly before a makedoc document is scanned.
Brock
8-May-2007
[705]
To Brian's comments on Make-doc.  I've tried using it as well.  I 
found it was great for short documents and started to get hard to 
us as we moved to larger documents.  i shouldn't say hard to use, 
but hard to edit the document once I made changes or stumbled across 
errors in the original.  I should have used 'find' more, as it really 
was difficult to scroll around and find where you were in a larger 
documents.  Has anyone else experienced the same thing?