(Bug 23397) texvc in html mode should render \sim as ∼ not ˜
authorBrian Wolff <bawolff@users.mediawiki.org>
Tue, 4 May 2010 04:40:47 +0000 (04:40 +0000)
committerBrian Wolff <bawolff@users.mediawiki.org>
Tue, 4 May 2010 04:40:47 +0000 (04:40 +0000)
&tilde; appears to be the entity for the type of tilde that goes on top of
letters as an accent. &sim; is the operator for similar to. Both are HTML 4
entites.

RELEASE-NOTES
math/texutil.ml

index 287fbd1..87eb101 100644 (file)
@@ -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 &tilde; not &sim;
 
 === API changes in 1.17 ===
 * (bug 22738) Allow filtering by action type on query=logevent
index ad4fce1..516a96e 100644 (file)
@@ -119,7 +119,7 @@ let find = function
     | "\\Rho"              -> (tex_use_ams (); LITERAL (HTMLABLEC (FONT_UF,
     "\\mathrm{P}", "&Rho;")))
     | "\\varrho"           -> LITERAL (TEX_ONLY "\\varrho ")
-    | "\\sim"              -> LITERAL (HTMLABLEC (FONT_UF,  "\\sim ", "&tilde;"))
+    | "\\sim"              -> LITERAL (HTMLABLEC (FONT_UF,  "\\sim ", "&sim;"))
     | "\\sigma"            -> LITERAL (HTMLABLEC (FONT_UF,  "\\sigma ", "&sigma;"))
     | "\\Sigma"            -> LITERAL (HTMLABLEC (FONT_UF, "\\Sigma ", "&Sigma;"))
     | "\\varsigma"         -> LITERAL (TEX_ONLY "\\varsigma ")