Last modified: 2014-11-18 18:07:26 UTC

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
Hyphens sometimes erroneously appended to equations when not converted to PNG
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Math (Other open bugs)
unspecified
All All
: Normal normal with 4 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
: 7386 9580 (view as bug list)
Depends on: 7768
Blocks:
  Show dependency treegraph
 
Reported: 2006-09-18 23:30 UTC by Danny B.
Modified: 2014-11-18 18:07 UTC (History)
4 users (show)

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


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

Description Danny B. 2006-09-18 23:30:10 UTC
<math>f(x)\delta(x-a) = f(a)\delta(x-a)</math>
renders incorrectly to
f(x)δ(x − a) = f(a)δ(x − a)-
(mind the dash at the end)

<math>f(x)\delta(x-a) = f(a)\delta(x-a) </math> (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
Comment 1 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. ***
Comment 2 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).
Comment 3 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.
Comment 4 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!
Comment 5 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).
Comment 6 JeLuF 2006-10-09 13:12:44 UTC
Committed revision 16890.
Comment 7 Gunther Vogel 2006-10-10 13:05:41 UTC
Problem persists, see
<http://de.wikipedia.org/wiki/Portal_Diskussion:Mathematik#Mathe_bug.3F>. This
is *not* a caching issue. Unfortunately, I cannot reproduce the problem on my
local MW installation once the patch is applied.
Comment 8 Tisza Gergő 2006-10-14 20:59:58 UTC
One way to trigger the bug is using superscripts. Still quite erratic, eg.
<math>1^a</math> triggers the error, while <math>0^x</math> not. See
http://hu.wikipedia.org/w/index.php?title=User:Tgr/teszt&oldid=914553 for some
more test cases.
Comment 9 JeLuF 2006-10-30 05:18:06 UTC
(In reply to comment #7)
> Problem persists, see
> <http://de.wikipedia.org/wiki/Portal_Diskussion:Mathematik#Mathe_bug.3F>. 
The patch was not installed on wikipedia.org, it is now.
Comment 10 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)
Comment 11 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.
Comment 12 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).
Comment 13 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.
Comment 14 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.
Comment 15 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 ***
Comment 16 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.
Comment 17 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.


Navigation
Links