<html><head><base href="x-msg://16/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div><div>Le 12 avr. 2011 à 19:43, Michael Madsen a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div lang="DA" link="blue" vlink="purple"><div class="WordSection1" style="page: WordSection1; "><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman', serif; "><span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); ">It appears that the MathJax extension breaks tables when dollar signs are used, e.g. for hexadecimal values – this is especially noticeable on<a href="http://wiki.scummvm.org/index.php/SCUMM/V5_opcodes" style="color: blue; text-decoration: underline; ">http://wiki.scummvm.org/index.php/SCUMM/V5_opcodes</a>. Could we change it to disallow inline math with $-signs, instead requiring \( and \)? I’ve attached a patch file which should do just that.<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman', serif; "><span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); "><o:p> </o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman', serif; "><span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); ">Alternatively, we could of course choose some other indicator for hexadecimal values, e.g. a 0x prefix.<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman', serif; "><span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); "><o:p> </o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman', serif; "><span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); ">Michael</span></div></div></div></blockquote><div><br></div><div><div>Thanks,</div><div><br></div><div>I have now remove the $ hook for inline math formulas on the wiki. I also removed the $$ hook for display formula.</div><div>So now inline formula can only be written with \(....\) or <math>....</math> and display formula can be written with \[....\] or :<math>...</math>.</div><div><br></div><div>This was breaking several pages that used the $ sign. Sanguinehearts had even removed the $ from <a href="http://wiki.scummvm.org/index.php/SCUMM/V0/Maniac_Mansion_Apple_II">http://wiki.scummvm.org/index.php/SCUMM/V0/Maniac_Mansion_Apple_II</a> a few weeks ago to fix the display there (they can be added back now if we want).</div><div><br></div><div>Thierry</div><div><br></div><div>PS: you forgot to modify one line in you patch (line 355 of MathJax.php if you want to see what you missed ;) ).</div><div><br></div></div><div><br></div><br><blockquote type="cite"><div lang="DA" link="blue" vlink="purple"><div class="WordSection1" style="page: WordSection1; "><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman', serif; "><span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); "><o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); "><o:p> </o:p></span></div><div style="border-top-style: none; border-right-style: none; border-bottom-style: none; border-width: initial; border-color: initial; border-left-style: solid; border-left-color: blue; border-left-width: 1.5pt; padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 4pt; "><div><div style="border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-top-style: solid; border-top-color: rgb(181, 196, 223); border-top-width: 1pt; padding-top: 3pt; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; "><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman', serif; "><b><span style="font-size: 10pt; font-family: Tahoma, sans-serif; ">From:</span></b><span style="font-size: 10pt; font-family: Tahoma, sans-serif; "><span class="Apple-converted-space"> </span>Thierry Crozat [mailto:criezy@scummvm.org]<span class="Apple-converted-space"> </span><br><b>Sent:</b><span class="Apple-converted-space"> </span>Monday, March 07, 2011 4:51 AM<br><b>To:</b><span class="Apple-converted-space"> </span>ScummVM devel<br><b>Subject:</b><span class="Apple-converted-space"> </span>[Scummvm-devel] Change default skin for wiki + New MathJax extension<o:p></o:p></span></div></div></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p> </o:p></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman', serif; ">Hi all,<o:p></o:p></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p> </o:p></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman', serif; ">On sunday evening I changed the default skin on the wiki. When you are not logged in it will now use the new ScummModern skin from billwashere. That way the wiki has the same look than the main website or the forum. I also kept the old skin for those who preferred it. This theme was available since several months, with several improvements done along the way. You may already have changed the preferences for your wiki account to use that skin. If not I would encourage you to do so. If you don't you will still be using the old skin (the default only applies to user that are not logged in).<o:p></o:p></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p> </o:p></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman', serif; ">I also replaced the old jsMath extension by MathJax to render LaTeX formulae (see <a href="http://www.mediawiki.org/wiki/Extension:MathJax" style="color: blue; text-decoration: underline; ">http://www.mediawiki.org/wiki/Extension:MathJax</a> and <a href="http://www.mathjax.org/" style="color: blue; text-decoration: underline; ">http://www.mathjax.org/</a>). The main advantage is that it is using web fonts, which means no special font has to be installed on the client computer to get a nice scalable rendering (there is still a bitmap rendering fallback for browser that do not support web fonts). MathJax also supports TeX style labeling (using \label{} or \eqref{}) <o:p></o:p></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman', serif; ">See <a href="http://wiki.scummvm.org/index.php/Instructions_to_Wiki_Editors" style="color: blue; text-decoration: underline; ">http://wiki.scummvm.org/index.php/Instructions_to_Wiki_Editors</a> for more info.<o:p></o:p></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p> </o:p></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p> </o:p></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman', serif; ">Thierry<o:p></o:p></div></div></div></div><span><mathjax.patch></span></div></blockquote></div><br></body></html>