[Pmwiki-users] Suggestions for [[<<]] replacement.

Patrick R. Michaud pmichaud
Sun Jan 4 19:03:25 CST 2004


Just as a clarification, before anyone panics... :-)

I'm not planning to truly "replace" [[<<]], if we find a good alternative
syntax I'm just going to add it to be available in addition to [[<<]].
So existing documents containing [[<<]] will continue to work as before.

Here's my latest idea: How about "-/-" as being the <br> sequence?
It's short, doesn't require any shifts, looks like a break, isn't likely
to appear in normal text, etc. etc.  Poetry and other line-broken items
could be written as:

   Yesterday it worked -/- Today it is not working -/- Windows is like that.

resulting in

   Yesterday it worked
   Today it is not working
   Windows is like that.

Pm


On Sun, Jan 04, 2004 at 04:31:59PM -0600, John Feezell wrote:
> Some thoughts on a replacement for [[<<]].
> My suggestion:
> 
>   :NL  for a new line to be replaced with <br />
>   :NP  for a new paragraph to be replace with <p /> or <br /><br />
> 
> My criteria:
> 1.  use minimum number of key strokes
> 2.  be distinct and unlikely to be found in regular text files
> 3.  be a ready reminder of what is being done
> 4.  require a minimum amount of change to existing PmWiki code
> 5.  be easily recognized as "markup"
> 6.  use customary writing symbols
> 
> My preferrence order:
> 
> 1.  :NL    and    :NP
>      Usage --
>      Ok -- This is line one::NL This is line two
>            This is line one:NL This is line two
>            This is line one: :NL This is line two
> 
>      Problem -- This is line one :NLThis is line two
>      :NLThis with current WikiWordPattern becomes wiki word NLThis?
> 
> 2.  :NL:   and    :NP:
>      Usage --
>      OK -- Works well everywhere whether followed by a space or some other 
> symbol. Visually less pleasing.
> 
> 3:  :nl    and    :np
>      Usage --
>      OK -- Works well everywhere whether followed by a space or some other 
> symbol. Visually less pleasing. Not as easy to see in the markup.
>           Comments:
> 
> The colon (:) according to WebWord Pro represents the following:
>   A punctuation mark (:) used after a word introducing a series or an 
> example or an explanation (or after the salutation of a business letter)
> 
> This seems to fit with what is happening with a new line or new paragraph 
> markup. And with my limited testing meets all of my criteria above.  It 
> also reminds me of other coding such as \n or back with DOS LF,CR etc.
> 
> The above were tested with the following:
> $InlineReplacements["/:NL/"] = "<br />";
> $InlineReplacements["/:NL:/"] = "<br />";
> $InlineReplacements["/:nl/"] = "<br />";
> $InlineReplacements["/:NP/"] = "<p />";
> $InlineReplacements["/:NP:/"] = "<p />";
> $InlineReplacements["/:np/"] = "<p />";
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -- 
> 
> 
> _______________________________________________
> Pmwiki-users mailing list
> Pmwiki-users at pmichaud.com
> http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com



More information about the pmwiki-users mailing list