r65893 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r65892‎ | r65893 | r65894 >
Date:04:40, 4 May 2010
Author:bawolff
Status:ok
Tags:
Comment:
(Bug 23397) texvc in html mode should render \sim as ∼ not ˜

˜ appears to be the entity for the type of tilde that goes on top of
letters as an accent. ∼ is the operator for similar to. Both are HTML 4
entites.
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/math/texutil.ml (modified) (history)

Diff [purge]

Index: trunk/phase3/RELEASE-NOTES
@@ -145,6 +145,7 @@
146146 * (bug 18408) All required permissions for uploading (upload, edit, create)
147147 are now checked when loading Special:Upload. Toolbar link for Special:Upload
148148 is no longer shown if the user does not have the required permissions.
 149+* (Bug 23397) texvc in html mode renders \sim as ˜ not ∼
149150
150151 === API changes in 1.17 ===
151152 * (bug 22738) Allow filtering by action type on query=logevent
Index: trunk/phase3/math/texutil.ml
@@ -119,7 +119,7 @@
120120 | "\\Rho" -> (tex_use_ams (); LITERAL (HTMLABLEC (FONT_UF,
121121 "\\mathrm{P}", "Ρ")))
122122 | "\\varrho" -> LITERAL (TEX_ONLY "\\varrho ")
123 - | "\\sim" -> LITERAL (HTMLABLEC (FONT_UF, "\\sim ", "˜"))
 123+ | "\\sim" -> LITERAL (HTMLABLEC (FONT_UF, "\\sim ", "∼"))
124124 | "\\sigma" -> LITERAL (HTMLABLEC (FONT_UF, "\\sigma ", "σ"))
125125 | "\\Sigma" -> LITERAL (HTMLABLEC (FONT_UF, "\\Sigma ", "Σ"))
126126 | "\\varsigma" -> LITERAL (TEX_ONLY "\\varsigma ")

Status & tagging log