[Mahara-contributors] [Bug 1815128] Re: Mathjax in user name on profile page is not updating tag</span></a></span> </h1> <p class="darkgray font13"> <span class="sender pipe"><a href="/search?l=mahara-contributors@lists.launchpad.net&q=from:%22Robert+Lyon%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Robert Lyon</span></span></a></span> <span class="date"><a href="/search?l=mahara-contributors@lists.launchpad.net&q=date:20190224" rel="nofollow">Sun, 24 Feb 2019 11:35:46 -0800</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre>Question: "Could we just not allow MathJax in the username?" Answer: This problem also exists for normal page titles as well</pre><pre> The main problem is mathjax symbols are made from allowed characters, eg the symbol for pi, π, is made from \(\pi \) all of which are valid chars for a title. So I guess during page settings form save we'd need to check if mathjax plugin is enabled and mathjax shaped syntax occurs in the title field and to throw an error on saving. For some symbols, eg pi, we can get a better result by selecting the character by using the tinymce 'special characters' button and selecting the symbol if it exists in the font. -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! <a rel="nofollow" href="https://bugs.launchpad.net/bugs/1815128">https://bugs.launchpad.net/bugs/1815128</a> Title: Mathjax in user name on profile page is not updating <title> tag Status in Mahara: In Progress Bug description: Eg If I have MathJax turned on and have 'displayname' for a user set to: \(\beta \alpha \delta \varsigma \pi \rho \) When I visit their profile page I see their name displayed as βαδςπρ in page <h1> tag but the browser <title> still shows as \(\beta \alpha \delta \varsigma \pi \rho \) and makes things look broken The MathJax is unable to update the <title> tag as it does it's magic with inserting <div> stuff. But we can update the title tag with an approximation of what is wanted - eg for Greek letters they tend to exist in the font so we can scrape them from the page a apply them to the title. For things like mathematical notations like square root we can't as they are made up by css tricks So I'll add a bit of code to try and update the <title> tag so it looks less broken To manage notifications about this bug go to: <a rel="nofollow" href="https://bugs.launchpad.net/mahara/+bug/1815128/+subscriptions">https://bugs.launchpad.net/mahara/+bug/1815128/+subscriptions</a> _______________________________________________ Mailing list: <a rel="nofollow" href="https://launchpad.net/~mahara-contributors">https://launchpad.net/~mahara-contributors</a> Post to : mahara-contributors@lists.launchpad.net Unsubscribe : <a rel="nofollow" href="https://launchpad.net/~mahara-contributors">https://launchpad.net/~mahara-contributors</a> More help : <a rel="nofollow" href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a> </pre> </div> <div class="msgButtons margintopdouble"> <ul class="overflow"> <li class="msgButtonItems"><a class="button buttonleft " accesskey="p" href="msg51553.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="thrd7.html#51731">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="mail8.html#51731">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg51735.html">Next message</a></li> </ul> </div> <a name="tslice"></a> <div class="tSliceList margintopdouble"> <ul class="icons monospace"> <li class="icons-email"><span class="subject"><a href="msg51553.html">[Mahara-contributors] [Bug 1815128] [NEW] Mathjax in use...</a></span> <span class="sender italic">Robert Lyon</span></li> <li><ul> <li class="icons-email tSliceCur"><span class="subject">[Mahara-contributors] [Bug 1815128] Re: Mathjax in ...</span> <span class="sender italic">Robert Lyon</span></li> <li class="icons-email"><span class="subject"><a href="msg51735.html">[Mahara-contributors] [Bug 1815128] Re: Mathjax in ...</a></span> <span class="sender italic">Kristina Hoeppner</span></li> <li class="icons-email"><span class="subject"><a href="msg52177.html">[Mahara-contributors] [Bug 1815128] Re: Mathjax in ...</a></span> <span class="sender italic">Kristina Hoeppner</span></li> </ul> </ul> </div> <div class="overflow msgActions margintopdouble"> <div class="msgReply" > <h2> Reply via email to </h2> <form method="POST" action="/mailto.php"> <input type="hidden" name="subject" value="[Mahara-contributors] [Bug 1815128] Re: Mathjax in user name on profile page is not updating <title> tag"> <input type="hidden" name="msgid" value="155103652724.30088.9808568173555988773.malone@chaenomeles.canonical.com"> <input type="hidden" name="relpath" value="mahara-contributors@lists.launchpad.net/msg51731.html"> <input type="submit" value=" Robert Lyon "> </form> </div> </div> </div> <div class="aside" role="complementary"> <div class="logo"> <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a> </div> <form class="overflow" action="/search" method="get"> <input type="hidden" name="l" value="mahara-contributors@lists.launchpad.net"> <label class="hidden" for="q">Search the site</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search mahara-contributors"> <input class="submitbutton" name="submit" type="image" src="/submit.png" alt="Submit"> </form> <div class="nav margintop" id="nav" role="navigation"> <ul class="icons font16"> <li class="icons-home"><a href="/">The Mail Archive home</a></li> <li class="icons-list"><a href="/mahara-contributors@lists.launchpad.net/">mahara-contributors - all messages</a></li> <li class="icons-about"><a href="/mahara-contributors@lists.launchpad.net/info.html">mahara-contributors - about the list</a></li> <li class="icons-expand"><a href="/search?l=mahara-contributors@lists.launchpad.net&q=subject:%22%5C%5BMahara%5C-contributors%5C%5D+%5C%5BBug+1815128%5C%5D+Re%5C%3A+Mathjax+in+user+name+on+profile+page+is+not+updating+%3Ctitle%3E+tag%22&o=newest&f=1" title="e" id="e">Expand</a></li> <li class="icons-prev"><a href="msg51553.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg51735.html" title="n">Next message</a></li> </ul> </div> <div class="listlogo margintopdouble"> <a href="#"><img src="/mahara-contributors@lists.launchpad.net/logo.png" alt="mahara-contributors"></a> </div> <div class="margintopdouble"> </div> </div> </div> <div class="footer" role="contentinfo"> <ul> <li><a href="/">The Mail Archive home</a></li> <li><a href="/faq.html#newlist">Add your mailing list</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="/faq.html#support">Support</a></li> <li><a href="/faq.html#privacy">Privacy</a></li> <li class="darkgray">155103652724.30088.9808568173555988773.malone@chaenomeles.canonical.com</li> </ul> </div> </body> </html> <script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'9d8a9dc578b018aa',t:'MTc3Mjg5NzE2Mw=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script>