On 19/11/2007, David Gerard dgerard@gmail.com wrote:
On 19/11/2007, Steve Bennett stevagewp@gmail.com wrote:
'foo' -> ‘foo’ ''foo'' -> <i>foo</i> '''foo''' -> <b>foo</b> or <i>‘foo’</i> ''''foo'''' -> <b>‘foo’</b> ''''foo''' -> ’<b>foo</b> F''''oo''' -> F’<b>oo</b>
Don't forget:
'foo -> ’foo
- this being the case that every other smart quoting mechanism I've
ever tried falls over on.
Oh joy...
Indeed! %-D
It would be kind of nice to be able to have proper quotes, but can anyone think of a good mechanism for doing so?
Potential shiny thing to be saved for later if at all possible ;-)
To do smart quotes well we would need per-language rules, specific lists of exceptions per-language which don't follow the rules, and specific markup to allow editors to override the per-language rules for example when talking about one languge in a wiki of another language.
Changing plain quotes to curved quotes should not be done by the parser, but the parser could at least track which quotes are not part of '' or '''. It could also attach hints to each one that could be used by a later part of the rendering software to actually convert straight quotes to curved quotes and apostrophes.
Andrew Dunbar (hippietrail)
- d.
Wikitext-l mailing list Wikitext-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/wikitext-l