[Pmwiki-users] Re: Need help with markup

Jessica Tishmack jessica at cbi.tamucc.edu
Tue Oct 15 14:16:03 CDT 2002


On Tue, 15 Oct 2002, Patrick R. Michaud wrote:

> Here's a probably bad idea--instead of using double-bracketed things
> such as [[table]], [[cell]], and [[tableend]], what if I overload the 
> || markup further (it's already used for tables)?  Perhaps ||table,
> ||cell, and ||end?  These would not be inlined--they'd have to
> appear at the beginning of a line if used (like other table definitions).
> 
> I could also use symbols instead of words, something like ||- (cell)
> ||+ (cell nextrow) ||] (tableend).  
> 
> I did say it was probably a bad idea, but thought I'd throw it out 
> just in case someone sees something useful.


I don't like this, because  ||- ||+ and || seem even less self explanatory 
than <tr> <td>.  I liked your other suggestions, because it's not 
something the user is going to have to look at the documentation every 
time in order to remember what to do...which will discourage them from 
using it.

> 
> Pm
> 
> 
> 
> On Tue, 15 Oct 2002, Patrick R. Michaud wrote:
> 
> > On Tue, 15 Oct 2002, Jonathan Scott Duff wrote:
> > 
> > > This is the same thing ...
> > > 
> > > 	[[table]] Where does this go?  Cell 1?
> > > 	[[cell]] Cell 2?
> > > 	[[nextrow]] Row 2 column 1
> > > 	[[cell]] Row 2 column 2
> > > 	[[tableend]]
> > > 	
> > > But then how does this parse?
> > > 
> > > 	[[table]]
> > > 	[[cell]] Cell 1?
> > > 	[[cell]] Cell 2?
> > > 	[[nextrow]]
> > > 	[[cell]] Row 2 Cell 1?
> > > 	[[cell]] Row 2 Cell 2?
> > > 	[[tableend]]
> > 
> > We're back to my original point--the separate nextrow tag makes it 
> > confusing because we're not sure what happens with text between the
> > nextrow tag and the cell tag.  (The same problem occurs in HTML, BTW--
> > what happens to text between a <tr> tag and a <td> tag?)
> > 
> > But if you look at my original formulation:
> > 
> > 	[[table]]
> > 	[[cell]] Cell 1
> > 	[[cell]] Cell 2
> > 	[[cell nextrow]] Row 2 Cell 1
> > 	[[cell]] Row 2 Cell 2
> > 	[[tableend]]
> > 
> > There's almost *no* chance for misinterpretation about what is
> > happening.  Jessica's original point was that the separate [[nextrow]]
> > tag was more self-explanatory, but I don't see how it's any more or
> > less "explanatory" than what I have above (maybe I'm just being dense 
> > here).
> > 
> > ----
> > 
> > Anticipating the question about "What happens with text between
> > the [[table]] tag and the first [[cell]] tag?":  I'll propose that any
> > text before the first [[cell]] tag is actually outside of the table.
> > 
> > Anticipating the question about "What happens with a [[cell]] tag that
> > doesn't have a [[table]] tag in front of it?":  I'll propose that
> > [[cell]] implies [[table]] if one hasn't been explicitly specified.
> > (I.e., the [[table]] is simply syntactic sugar, or else an opportunity 
> > for the user to specify table options such as border, width, cellspacing,
> > cellpadding, etc.)
> > 
> > Obviously a [[tableend]] that doesn't have a [[cell]] somewhere before
> > it is a null operation.  And pages have an implied [[tableend]] at
> > the end of the page if [[tableend]] is omitted.
> > 
> > Pm
> > 
> > 
> 





More information about the pmwiki-users mailing list