On 06/04/06, Rob Church wrote:
I created {{TALKSPACE}} and its counterpart {{ARTICLESPACE}} after requesting the equivalent variables several times on this list.
I would be more than happy to see them replaced with the equivalent variables now that they seem to have proven their utility.
I'm quite willing to add these magic words, but there is one question which needs answering before this happens; what should be done with a {{TALKSPACE}} or similar tag if the current namespace doesn't *have* a talk namespace?
How about returning the string: ----------------------- <p><strong class="error">Error: Talkspace of namespace:123 does not exist.</strong></p> ----------------------- I.e. Fail fast, and fail loud.
There is some precedent for this - consider the wiki text: ----------------------- <math>\&2/x[]</math> -----------------------
Which currently returns this HTML: ----------------------- <p><strong class="error">Failed to parse (syntax error): \&2/x[]</strong></p> -----------------------
All the best, Nick.
On 4/7/06, Nick Jenkins nickpj@gmail.com wrote:
Which currently returns this HTML:
<p><strong class="error">Failed to parse (syntax error): \\&2/x[]</strong></p> -----------------------
Yes, what an evil message that one is :( Is there any way it could provide more feedback? Or can someone tell me how to embed double quotes in <math> tags? :)
Steve
Steve Bennett wrote:
On 4/7/06, Nick Jenkins nickpj@gmail.com wrote:
Which currently returns this HTML:
<p><strong class="error">Failed to parse (syntax error): \\&2/x[]</strong></p> -----------------------
Yes, what an evil message that one is :( Is there any way it could provide more feedback? Or can someone tell me how to embed double quotes in <math> tags? :)
Texvc works by giving a very short return code on stdout to indicate success or failure. It throws away the output from latex itself, there's no way to return it to MediaWiki. Rethinking that interface is probably the way to go.
As for double quotes, I'm not sure there's a way to do it. In TeX outside math mode it's just `` and ", but I don't think there's a way to get outside of math mode, or a way to generate those characters inside math mode using the whitelisted control codes.
-- Tim Starling
On 4/7/06, Tim Starling t.starling@physics.unimelb.edu.au wrote:
Texvc works by giving a very short return code on stdout to indicate success or failure. It throws away the output from latex itself, there's no way to return it to MediaWiki. Rethinking that interface is probably the way to go.
Yeah, figured.
As for double quotes, I'm not sure there's a way to do it. In TeX outside math mode it's just `` and ", but I don't think there's a way to get outside of math mode, or a way to generate those characters inside math mode using the whitelisted control codes.
Huh. For some reason, I didn't expect to ever hear "can't do that" from TeX.
Weird. But thanks.
Steve
wikitech-l@lists.wikimedia.org