[This has nothing to do with the parser grammar I'm working on. This is fantasy...]
Quite aside from the ambiguity of problems of apostrophes, the difficulty of writing curved single quotes has been mentioned. Here's how a totally different, unrelated wiki program could work:
//italics// **bold** ' - straight apostrophe 'single quotes'' '''backwards single quotes'''
In other words, ' is rendered like the current apostrophe, and '' is a curved apostrophe that leans either way depending on what text is immediately adjacent. And for those cases where you want the quotes to lean the *other* way, ''' just does the opposite of whatever '' does.
I wonder if there'd be the same problems:
* I said: '''''twas the last thing we needed!'' (seems reasonable?
The good news at least '' and ''' always render as exactly one character, and no matter what you do in one part of a paragraph, it would never affect anything else.
Of course, there's no easy way to write combinations of straight and curved apostrophes, but that seems like a less likely situation than apostrophes and bold or italics.
I guess an alternative could use the "backquote":
``Single quotes'' I said: ``''twas the last thing we needed'!''
Yay, unambiguous.
Steve
Quite aside from the ambiguity of problems of apostrophes, the difficulty of writing curved single quotes has been mentioned. Here's how a totally different, unrelated wiki program could work:
//italics// **bold** ' - straight apostrophe 'single quotes'' '''backwards single quotes'''
In other words, ' is rendered like the current apostrophe, and '' is a curved apostrophe that leans either way depending on what text is immediately adjacent. And for those cases where you want the quotes to lean the *other* way, ''' just does the opposite of whatever '' does.
There has to be a better way, surely. Anything using the same character for different things is going to run into trouble...
I guess an alternative could use the "backquote":
Until you actually want to use a backquote. Doesn't happen very often in English, but does it get used in other languages?
On 11/28/07, Thomas Dalton thomas.dalton@gmail.com wrote:
There has to be a better way, surely. Anything using the same character for different things is going to run into trouble...
Can't be avoided. By definition in Wikitext every character is valid as a literal representation of itself, so there is always a kind of ambiguity. Is * as the start of a line a list, or a line starting with *? Is [[foo]] a link or someone talking about wikitext, etc. So:
Until you actually want to use a backquote. Doesn't happen very often in English, but does it get used in other languages?
Right, `` conflicts with ` twice. But we can't do better than that. I would also be curious if anyone actually uses `. It's a pretty dubious character, invented by some typewriter hack.
Steve
On 28/11/2007, Steve Bennett stevagewp@gmail.com wrote:
On 11/28/07, Thomas Dalton thomas.dalton@gmail.com wrote:
There has to be a better way, surely. Anything using the same character for different things is going to run into trouble...
Can't be avoided. By definition in Wikitext every character is valid as a literal representation of itself, so there is always a kind of ambiguity. Is * as the start of a line a list, or a line starting with *? Is [[foo]] a link or someone talking about wikitext, etc. So:
Until you actually want to use a backquote. Doesn't happen very often in English, but does it get used in other languages?
Right, `` conflicts with ` twice. But we can't do better than that. I would also be curious if anyone actually uses `. It's a pretty dubious character, invented by some typewriter hack.
` is used in the transcriptions of some languages. Especially Arabic but also sometimes Hebrew and Hawaiian I think.
Andrew Dunbar (hippietrail)
Steve
Wikitext-l mailing list Wikitext-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/wikitext-l
wikitext-l@lists.wikimedia.org