From: Brian Wolff Date: Tue, 4 May 2010 04:40:47 +0000 (+0000) Subject: (Bug 23397) texvc in html mode should render \sim as ∼ not ˜ X-Git-Tag: 1.31.0-rc.0~36954 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=3d0b9e9e7ec8f180ed220f88f33416c68825de74;p=lhc%2Fweb%2Fwiklou.git (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. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 287fbd1bbc..87eb1014a5 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -145,6 +145,7 @@ in a negative namespace (which is invalid). * (bug 18408) All required permissions for uploading (upload, edit, create) are now checked when loading Special:Upload. Toolbar link for Special:Upload is no longer shown if the user does not have the required permissions. +* (Bug 23397) texvc in html mode renders \sim as ˜ not ∼ === API changes in 1.17 === * (bug 22738) Allow filtering by action type on query=logevent diff --git a/math/texutil.ml b/math/texutil.ml index ad4fce10a8..516a96e85c 100644 --- a/math/texutil.ml +++ b/math/texutil.ml @@ -119,7 +119,7 @@ let find = function | "\\Rho" -> (tex_use_ams (); LITERAL (HTMLABLEC (FONT_UF, "\\mathrm{P}", "Ρ"))) | "\\varrho" -> LITERAL (TEX_ONLY "\\varrho ") - | "\\sim" -> LITERAL (HTMLABLEC (FONT_UF, "\\sim ", "˜")) + | "\\sim" -> LITERAL (HTMLABLEC (FONT_UF, "\\sim ", "∼")) | "\\sigma" -> LITERAL (HTMLABLEC (FONT_UF, "\\sigma ", "σ")) | "\\Sigma" -> LITERAL (HTMLABLEC (FONT_UF, "\\Sigma ", "Σ")) | "\\varsigma" -> LITERAL (TEX_ONLY "\\varsigma ")