Last modified: 2013-09-10 16:39:09 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 T32218, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30218 - Bug with \sim
Bug with \sim
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
Math (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-04 11:45 UTC by 石庭豐
Modified: 2013-09-10 16:39 UTC (History)
3 users (show)

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


Attachments

Description 石庭豐 2011-08-04 11:45:56 UTC
In non-PNG rendering, \sim is rendered as ~ or ∼ depending on whether it is preceded by a blank space (or a letter) or not.

* <math>\sim</math> gives ˜
* <math> \sim</math> gives ∼

There's an even blatant case but it seems to happen only in Chinese Wikipedia: <math>A/\sim</math> and <math>A/ \sim</math> gives different results.
Comment 1 Frédéric Wang 2013-09-10 14:38:52 UTC
What is the non-PNG rendering? If that's the old "HTML for simple math" mode that has been removed, then I think this bug entry can be closed.
Comment 2 石庭豐 2013-09-10 16:10:00 UTC
This bug is OLD!  I can't remember very well.  The answer is probably "Yes" but I think it was possible to render in MathML. Anyway, if PNG is the only rendering now and in the future, then yes, please close this bug.
Comment 3 Frédéric Wang 2013-09-10 16:20:03 UTC
There are other modes, TeX Source, MathJax and LaTeXML and the others are deprecated. I'm not sure exactly which are enabled on Wikipedia, but the MathJax one certainly is.
Comment 4 石庭豐 2013-09-10 16:39:09 UTC
As long as <math>\sim</math> and <math> \sim</math> give the same rendering now (and hopefully it won't regress in the future), I'm ok with it.

I have just tested <math>A/\sim</math> and <math>A/ \sim</math> in Chinese Wiki, and the problem has gone away as well.

So far so good :)

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


Navigation
Links