# Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 7367 - Hyphens sometimes erroneously appended to equations when not converted to PNG
 Summary: Hyphens sometimes erroneously appended to equations when not converted to PNG
 Status: Product: RESOLVED FIXED MediaWiki extensions Unclassified Component: Math (Other open bugs) unspecified All All Normal normal with 4 votes (vote) --- Nobody - You can work on this! patch, patch-need-review (view as bug list) 7768 Show dependency tree / graph

 Reported: 2006-09-18 23:30 UTC by Danny B. 2014-11-18 18:07 UTC (History) 4 users (show) account256 azatoth bggoldbg gtisza --- --- ---

Attachments
patch for math/render.ml fixing the problem (442 bytes, patch)
2006-09-27 11:23 UTC, Gunther Vogel
Details

 Danny B. 2006-09-18 23:30:10 UTC $f(x)\delta(x-a) = f(a)\delta(x-a)$ renders incorrectly to f(x)δ(x − a) = f(a)δ(x − a)- (mind the dash at the end) $f(x)\delta(x-a) = f(a)\delta(x-a)$ (mind the space at the end) renders correctly to f(x)δ(x − a) = f(a)δ(x − a) to be seen on http://cs.wikipedia.org/w/index.php?title=Diracova_delta_funkce&oldid=778611 and following revision occurs while "simple math as html, otherwise as png" checked, if "always png" checked, it's rendered properly Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-09-22 18:56:24 UTC *** Bug 7386 has been marked as a duplicate of this bug. *** Goldie 2006-09-23 09:16:14 UTC I cannot be sure how it was few days ago but now it renders the extra dash regardless of spaces (see http://bg.wikipedia.org/w/Овал_на_Касини as per #7386). Gunther Vogel 2006-09-26 16:05:38 UTC ISTR that this is an old bug which was resolved long ago. Since dewiki uses this kind of in-line equations heavily and people have already started using workarounds, I changed severity back to normal. Bernard Hurley 2006-09-27 08:40:57 UTC This is a really annoying bug. I have been using workarounds. However I would much prefer the bug to be fixed! The problem is that when it eventually does get fixed, the formulae with the workarounds may not render correctly! Gunther Vogel 2006-09-27 11:23:07 UTC Created attachment 2419 [details] patch for math/render.ml fixing the problem When using dvipng, there is no temporary .ps file which could be deleted. This results in a hyphen signalling "some error" (catch-all case in texvc.ml). JeLuF 2006-10-09 13:12:44 UTC Committed revision 16890. Gunther Vogel 2006-10-10 13:05:41 UTC Problem persists, see . This is *not* a caching issue. Unfortunately, I cannot reproduce the problem on my local MW installation once the patch is applied. Tisza Gergő 2006-10-14 20:59:58 UTC One way to trigger the bug is using superscripts. Still quite erratic, eg. $1^a$ triggers the error, while $0^x$ not. See http://hu.wikipedia.org/w/index.php?title=User:Tgr/teszt&oldid=914553 for some more test cases. JeLuF 2006-10-30 05:18:06 UTC (In reply to comment #7) > Problem persists, see > . The patch was not installed on wikipedia.org, it is now. Goldie 2006-11-02 14:06:22 UTC (In reply to comment #9) > The patch was not installed on wikipedia.org, it is now. It is still re-producing at bg.wiki (please see the first formula at http://bg.wikipedia.org/wiki/%D0%9E%D0%B2%D0%B0%D0%BB_%D0%BD%D0%B0_%D0%9A%D0%B0%D1%81%D0%B8%D0%BD%D0%B8) Goldie 2006-11-08 06:11:23 UTC (In reply to comment #10) > It is still re-producing at bg.wiki (please see the first formula at > http://bg.wikipedia.org/wiki/%D0%9E%D0%B2%D0%B0%D0%BB_%D0%BD%D0%B0_%D0%9A%D0%B0%D1%81%D0%B8%D0%BD%D0%B8) OK, I've got a notification by bugzilla that it is fixed. Rushing to the article with the rendering problem I've got the dash again (if you cannot open the long URL above try [[:en:Cassini oval]] and follow the first interwiki, bg:). The first formula renders as " = a4-, " and removals/additions of spaces do not help. Carl Fürstenberg 2006-11-08 12:40:26 UTC The bug is fixed, the problem for your part is that math images are cached indefinite. There are only two ways to rerender the image, the fist one is to purge the math database (contains millions of entries, so the devs have said no), the second way is to manipulate the MD5 sum, for example add a \, or simlar to the end (not a nice way, but at the moment it's the only way). Goldie 2006-11-08 17:25:22 UTC (In reply to comment #12) > The bug is fixed, the problem for your part is that math images are cached > indefinite. There are only two ways to rerender the image, the fist one is to > purge the math database (contains millions of entries, so the devs have said > no), the second way is to manipulate the MD5 sum, for example add a \, or simlar > to the end (not a nice way, but at the moment it's the only way). OK, this explains a lot. So (for me) in general the answer is there is no fix, and is not going to be one in the foreseeable future. Addition of several spaces is altering the sum, and is fine. Addition of "\," is not the same as it forces the rendering engine to use image instead of HTML. Moreover it was described that the problem comes up if and only if the rendering is done as HTML. Carl Fürstenberg 2006-11-08 19:28:05 UTC (In reply to comment #13) > (In reply to comment #12) > > The bug is fixed, the problem for your part is that math images are cached > > indefinite. There are only two ways to rerender the image, the fist one is to > > purge the math database (contains millions of entries, so the devs have said > > no), the second way is to manipulate the MD5 sum, for example add a \, or simlar > > to the end (not a nice way, but at the moment it's the only way). > > OK, this explains a lot. So (for me) in general the answer is there is no fix, > and is not going to be one in the foreseeable future. Addition of several spaces > is altering the sum, and is fine. Addition of "\," is not the same as it forces > the rendering engine to use image instead of HTML. Moreover it was described > that the problem comes up if and only if the rendering is done as HTML. Oh, my bad, what I tested was that changing 'a' to 'b'. And the caching of the html is the same, so no there is nothing to be done, I'm afraid. Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-11-09 03:28:51 UTC Presumably the cache expires after a while. *** This bug has been marked as a duplicate of 7768 *** Brion Vibber 2006-11-09 10:20:13 UTC Re-marking this *fixed*. Will see what can be done about clearing affected items, which is separate from the issue being fixed. Brion Vibber 2007-04-24 16:11:25 UTC *** Bug 9580 has been marked as a duplicate of this bug. ***

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