From 3d0b9e9e7ec8f180ed220f88f33416c68825de74 Mon Sep 17 00:00:00 2001 From: Brian Wolff Date: Tue, 4 May 2010 04:40:47 +0000 Subject: [PATCH] (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. --- RELEASE-NOTES | 1 + math/texutil.ml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 ") -- 2.20.1