[Pmwiki-users] Suggestions for [[<<]] replacement.
John Feezell
johnfeezell
Sun Jan 4 20:41:54 CST 2004
OK, you've got me thinking. I still favor the idea an using a standard
punctuation symbol as part of the markup.
Since I would be using this markup while focused on writing, it would help
tie the two things together -- writing and markup. I think these would be
the criteria too.
How about this for the simple break:
Yesterday it worked /;/ Today it is not working /;/ Windows is like that.
Yesterday it worked/;/Today it is not working/;/Windows is like that.
yielding:
Yesterday it worked
Today it is not working
Windows is like that.
and this for the paragraph:
Yesterday it worked /:/ Today it is not working /:/ Windows is like that.
Yesterday it worked /:/ Today it is not working /:/ Windows is like that.
yielding:
Yesterday it worked
Today it is not working
Windows is like that.
and for <br clear='all'/>
Yesterday it worked /;=/ Today it is not working /;=/ Windows is like that.
etc.
--JF
On Sun, 4 Jan 2004 19:03:21 -0700, Patrick R. Michaud <pmichaud at pobox.com>
wrote:
> 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 />";
More information about the pmwiki-users
mailing list