Last modified: 2014-10-20 14:10:48 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T32215, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30215 - Not possible to use \overarc
Not possible to use \overarc
Status: REOPENED
Product: MediaWiki extensions
Classification: Unclassified
Math (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: upstream
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-04 11:13 UTC by 石庭豐
Modified: 2014-10-20 14:10 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
peters preview (55.60 KB, image/png)
2014-10-20 13:40 UTC, physikerwelt
Details

Description 石庭豐 2011-08-04 11:13:42 UTC
Currently it is not possible to use \overarc with <math>.  But it seems \overarc is a standard LaTeX symbol.  So no idea if the problem comes from AMS-LaTeX or elsewhere.

An acceptable workaround for the moment is to use \overset{\frown}{AB} instead.

PS and off-topic: It took me some time to find out this "Math (texvc)" component in this product.  I was looking for AMS-LaTeX in other product.
Comment 1 Derk-Jan Hartman 2013-05-26 20:37:43 UTC
\overarc is not a standard symbol as far as I can tell, it seems to be part of \usepackage{arcs}. It's also not part of MathJax.
Comment 2 石庭豐 2013-05-26 21:17:18 UTC
Not a standard symbol of what?

Nevertheless, can Wikimedia/AMS-LaTeX/whatever evolve to include this?  The arc notation is not something invented in the last 100 years.  It's very weird it's not a part of whatever-standard!
Comment 3 Frédéric Wang 2013-09-10 14:36:41 UTC
Is \overarc supposed to be used in math mode?

\overarc should be easy to implement in the MathJax TeX parser (there is no upstream report so far, though). If the goal is to make the symbol stretch to cover the base, then stretchy variants will need to be supported by the MathJax font (I haven't checked if that's the case).
Comment 4 石庭豐 2013-09-10 16:30:54 UTC
(In reply to comment #3)
> Is \overarc supposed to be used in math mode?

I don't understand the question. If <math> is used, we are in math mode, right?
I want to be able to write <math>\overarc{AB}</math> to show the arc notation.

> \overarc should be easy to implement in the MathJax TeX parser (there is no
> upstream report so far, though). If the goal is to make the symbol stretch to
> cover the base, then stretchy variants will need to be supported by the
> MathJax
> font (I haven't checked if that's the case).

Please take a look at http://www.codecogs.com/latex/eqneditor.php and put \overarc{AB} inside the text box to see what's supposed to be rendered.
Comment 5 physikerwelt 2014-10-19 18:54:40 UTC
I'm closing all feature requests that are older than one year... It seems unlikely that someone waits more than a year for a new feature. If the bug is reopened, we see that the feature is still important.
Comment 6 石庭豐 2014-10-20 08:51:15 UTC
Then let me show you I'm still waiting and it's important.
Comment 7 Peter Krautzberger 2014-10-20 09:24:26 UTC
That's an easy macro to add to texvc.js but there are some technical problems. Mainly, the "right(tm)" way of doing this in MathML would be using the frown entity but only the STIX fonts have the necessary stretchy characters AFAIK. 

However, both MathJax and Firefox can stretch overparens, so something like \overset{\mmlToken{mo}{&#x23DC;}}{XYZ} would do the trick.
Comment 8 石庭豐 2014-10-20 11:14:47 UTC
MathML...? You're talking about the native support from browsers?  Well, this bug is talking about <math> inside Wikimedia/Wikipedia.  And in the case when end-user browser cannot accept MathML, Wikimedia should generate an image. So, please limit this bug on the server side.

On the other hand, I have just found this article:
http://www.tex.ac.uk/ctan/info/symbols/comprehensive/symbols-a4.pdf
overarc is inside it, so it looks pretty "standard".
Comment 9 physikerwelt 2014-10-20 11:45:13 UTC
MathML is part of HTML5, so it should be quite standard. And I think it's a good idea to the HTML standard and not to invent custom notation or allow the use of the turing complete programming language \TeX.
"And in the case when end-user browser cannot accept MathML, Wikimedia should generate an image"
That's what's being done.
So back to the question: Do you think
\overset{\mmlToken{mo}{&#x23DC;}}{XYZ}
would solve the problem?
Comment 10 Peter Krautzberger 2014-10-20 12:31:45 UTC
@石庭豐 the new version of the math extension is moving towards MathML, both internally and externally. I.e., TeX input is converted into MathML and rendered into image formats (or just left as is in Firefox). In particular, the mathoid component uses MathJax-node, hence my example of a MathJax-compatible macro.

You can try the macro mentioned above on e.g., http://cdn.mathjax.org/mathjax/latest/test/sample-dynamic-2.html to see a sample rendering. It's not ideal but it seems much better than nothing. 

Note that this is not easy in TeX/LaTeX either, see e.g., http://tex.stackexchange.com/questions/86044/represent-an-arc-over-letters for a solution which is why the old (LaTeX+dvi2png based solution) never added it. IMHO, another plus of physikerwelt's awesome work of moving the extension towards MathML.
Comment 11 石庭豐 2014-10-20 13:31:37 UTC
(In reply to Peter Krautzberger from comment #10)
> @石庭豐 the new version of the math extension is moving towards MathML, both
> internally and externally. I.e., TeX input is converted into MathML and
> rendered into image formats (or just left as is in Firefox).[deleted]

Thanks!  That's the missing part of information I needed to understand.

Converting TeX --> MathML --> PNG .... well, that's quite an indirect way of rendering math expressions.  But if you are sure it's working at 100%, why not? :)

> You can try the macro mentioned above on e.g.,
> http://cdn.mathjax.org/mathjax/latest/test/sample-dynamic-2.html to see a
> sample rendering. It's not ideal but it seems much better than nothing.

I have tried it but nothing is rendered - I could provide a screenshot if you like.  I had also put it inside <math>...</math> tags but still nothing.  I had also tried it in Wikipedia's sandbox but nothing came out (which was expected, I suppose)

(In reply to physikerwelt from comment #9)
> [deleted]
> So back to the question: Do you think
> \overset{\mmlToken{mo}{&#x23DC;}}{XYZ}
> would solve the problem?

There are two aspects to this question: 1) rendered result and 2) facility.
For 1: as I cannot see any result, I cannot answer.
For 2: are you saying that
a) Wiki editors have to type your expression instead of \overarc{XYZ} in order to have the arc symbol?   or
b) \orverarc{XYZ} will be translated into your expression internally?

If you're implying a), then the answer is "no, it would not solve the problem" because
i) the TeX syntax is overarc (for those who know TeX, of course) but you force users to use undocumented tweak without telling them what to do exactly;
ii) in the case \overarc is not supported, I would the TeX syntax I provided (\overset{\frown}{AB}) which is a LOT shorter and cleaner. So the answer is still "No"

If you're implying b), of course, that would solve the problem.
Comment 12 石庭豐 2014-10-20 13:35:26 UTC
Typo error - I wanted to write:
... in the case \overarc is not supported, I would *prefer* the TeX syntax I provided ...
Comment 13 physikerwelt 2014-10-20 13:40:18 UTC
Created attachment 16813 [details]
peters preview

石庭豐, thank you very much for providing feedback here.
Of course users are supposed to type \overarc{XYZ} which would then be internally translated to something else similar to the newcommand LaTeX command.
See a screenshot of Peters demo page attached.
Screenshots aver very helpful for this kind of bug.
Comment 14 石庭豐 2014-10-20 14:10:48 UTC
(In reply to physikerwelt from comment #13)
> Created attachment 16813 [details]
> peters preview

Oh, the dollar sign! :D

OK, visually it's acceptable --> point 1 is OK

> Of course users are supposed to type \overarc{XYZ} which would then be
> internally translated to something else similar to the newcommand LaTeX command.

--> point 2 is OK too.

So in all, YES!, the proposal would solve the problem :)

Thanks

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links