Post #57,681
10/18/02 8:10:04 PM
|
\\ escapes would be nice
Now that we are adding a lot of mechanisms for interpretation and interpolation, an optional escape mechanism would be nice. The standard Unix one is \\, and generally \\ followed by a non-word character will turn off any special interpretation of that character.
In a web environment you could implement by saying that \\ followed by anything other than a space or word character should turn into the HTML escape for the latter character. So \\<i\\> should become <i> which will render as <i>. And likewise \\ could selectively turn off the processing of [, making it easy to demonstrate to someone how the wee codes work. But \\ followed by a space would remain in the text.
Cheers, Ben
"Career politicians are inherently untrustworthy; if it spends its life buzzing around the outhouse, it\ufffds probably a fly." - [link|http://www.nationalinterest.org/issues/58/Mead.html|Walter Mead]
|
Post #57,700
10/18/02 8:52:26 PM
10/18/02 8:53:02 PM
|
Excellent - seconded
Only Ashton has the patience to put in umlauted vowels. Alt-keypad isn't practical on a laptop.
-drl
Edited by deSitter
Oct. 18, 2002, 08:53:02 PM EDT
|
Post #57,709
10/18/02 9:08:19 PM
|
That wasn't part of my suggestion, but... (BUG! BUG!)
Were you thinking that someone would type something like \\e` or \\`e to put the accent on?
Could be nice. But I would put it behind having the html entities be recognized. (I just realized that they aren't by trying out ö, é and so on and finding that they weren't handled.)
Scott, can you allow all of the basic HTML entities to be recognized? [link|http://www.w3schools.com/html/html_entitiesref.asp|This] may help...
Thanks, Ben
"Career politicians are inherently untrustworthy; if it spends its life buzzing around the outhouse, it\ufffds probably a fly." - [link|http://www.nationalinterest.org/issues/58/Mead.html|Walter Mead]
|
Post #57,714
10/18/02 9:17:41 PM
|
Odd. I had that in there...
I wonder when it got taken out.
How passé of me.
Anyway, quoting is in. <, &, /, \\, :, and [ can all be quoted.
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #57,797
10/19/02 7:16:31 AM
|
Beautiful
Which of the user options controls it? This would be good to know when posting some code samples. For instance the syntax for taking a code ref in Perl is \\&foo, and someone just pasting from existing code might not notice that the \\ went away.
Ooh, speaking of user options. Perhaps each user option should have a link to a post explaing the feature? That way someone who wonders WTF they are can readily figure it out...
Cheers, Ben
"Career politicians are inherently untrustworthy; if it spends its life buzzing around the outhouse, it\ufffds probably a fly." - [link|http://www.nationalinterest.org/issues/58/Mead.html|Walter Mead]
|
Post #57,799
10/19/02 7:51:05 AM
|
& is controlled by HTML processing
\\ escapes are always there.
Regarding help screens, if someone feels up to building one I wouldn't mind putting it up here.
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #57,802
10/19/02 8:14:52 AM
|
Well...
For Process Wee Codes you could link to [link|http://z.iwethey.org/forums/render/content/show?contentid=57396|http://z.iwethey.org...w?contentid=57396].
Auto conversion is self-explanatory. As is converting newlines to BR tags.
The HTML processing isn't entirely, but in the case that I gave the distracted user would likely try turing it off, so not having that explanation might be OK.
Cheers, Ben
"Career politicians are inherently untrustworthy; if it spends its life buzzing around the outhouse, it\ufffds probably a fly." - [link|http://www.nationalinterest.org/issues/58/Mead.html|Walter Mead]
|
Post #57,715
10/18/02 9:18:14 PM
|
Re: That wasn't part of my suggestion, but... (BUG! BUG!)
Something like TeX diacriticals would be nice.
Since there's HTML, I can do that, but probably won't, but I would use \\ua for umlauted a.
At some point we just seem to assume Scott can throw in any old parser effortlessly (hey maybe he can?).
-drl
|
Post #57,718
10/18/02 9:19:12 PM
|
More or less.
Credit Ben for the parser architecture, however. The only reason I have one is I wanted to show him how easy it was to duplicate his Perl version in Python. ;-)
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #57,798
10/19/02 7:25:33 AM
|
Don't discount yourself like that
You were the guy what ported it several times, wrote forum software, plugged it in, and proved that my proof of concept was useful and could (at least when handled by a competent programmer) work out very nicely.
Yeah, good ideas are nice. But it is meaningless without actual work. Which you have done.
OTOH I do wish that I had thought of the approach back when Jay O'Connor asked how to solve the exact same problem on EZBoard. If I had then the EZCodes would have worked much better.
Cheers, Ben
"Career politicians are inherently untrustworthy; if it spends its life buzzing around the outhouse, it\ufffds probably a fly." - [link|http://www.nationalinterest.org/issues/58/Mead.html|Walter Mead]
|