# User Details

User Since
Oct 24 2014, 1:27 PM (199 w, 1 d)
Availability
Available
IRC Nick
physikerwelt
LDAP User
Physikerwelt
MediaWiki User

# Wed, Aug 8

I am not sure if that's the way to go. Neither the Math extension depends on Wikibase nor the other way round. For the CI math depends on wikibase. This is good for WMF applications. However, for private wikis that use Math but not wikibase this is not optimal since unintended dependencies on from math to wikibase would not be discovered. The same holds for the VisualEditor.

@WMDE-leszek thank you. Yes. My local wikibase copy was not up to date when I created the change (cf. Patch set 1).

# Tue, Aug 7

@WMDE-leszek thanks for fixing. However, I wonder how this could be merged without failing tests. Right after the change was merged, all subsequent unit tests failed. Why did I not see the error message when I tested the change on Jul 24th?

is that the same issue as T200493?

# Tue, Jul 24

if the expression is not valid according to the grammar rules in texvcjs, it issues a warning. this might not resolve all problems but it will make it easier to understand the current rendering...

In https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/Math/+/442124/ I added the functionality to add a new tracking category for pages that use <ce/> tags with the old syntax.

# Mon, Jul 23

@zeljkofilipin is the status table up to date? For instance, for Wikidata I see

06:37:01 /usr/bin/find: cannot delete '/workspace/src/tests/selenium/log': Permission denied

in https://integration.wikimedia.org/ci/job/Wikibase-npm-browser-run-selenium-daily-node-6-docker/lastBuild/console which I think is the last build.

# Jul 2 2018

@Jdlrobson I am currently traveling until Wednesday.... From my understanding the problem is not wikidata but wikibase. Thus the styles need to be added somewhere using a wikibase hook.

# Jun 25 2018

@Jdlrobson yes. The (only) other way I am aware of is using properties of type mathematical formula from wikidata.

Physikerwelt renamed T147319: No MathML rendering in Firefox - SVG or PNG is used from No MathML rendering - SVG or PNG is used to No MathML rendering in Firefox - SVG or PNG is used.
Physikerwelt added a comment to T147319: No MathML rendering in Firefox - SVG or PNG is used.

Looking at these bugzilla tickets gives the impression that not very much has happened recently. I have no idea what would happen if we changed the CSS to display MathML for all Firefox users. People who install the plugin to show MathML are probably not a representative sample. Thus, I have the feeling that it would be good to have someone from Mozilla involved if did this. Otherwise, we might be ending up in a situation, with bug reports regarding the Firefox MathML rendering that nobody will be able to handle.

@Jdlrobson I agree that global should be avoided. Any other solution is highly appreciated, I am just unaware of one. However, whenever math is displayed the associated CSS and js classes should be loaded. I think a good solution is that the math extension follows the standard procedure for all tag extensions that require custom CSS and js for their content. Is there a good example of such an extension?

@Pkra @fredw I agree that this should be fixed within mathjax, so I am closing this ticket here.

Physikerwelt closed T73787: Test MathML mode on mobile devices as Resolved.

I could not reproduce theses problems with the most up to date Firefox.

Physikerwelt closed T73787: Test MathML mode on mobile devices, a subtask of T67341: Release Math 2.0, as Resolved.

Since I don't see progress here and do not have any contacts to Mozilla to talk about this goal I'm closing this ticket. In case anyone from Mozilla finds this ticket via a web search engine here a short summary of our request:

# Jun 24 2018

@Jdlrobson The patch you are proposing would prevent math from being properly displayed if its used in a lua module. See https://en.wikipedia.org/wiki/Module:ShowMath for an example. I would not consider this as a bug. I currently don't understand why it's only sometimes (for instance on mobile) loaded and sometimes not (for instance on desktop).

# Jun 21 2018

Thank you @mobrovac I think the next step is to add a warning to texvc if any of the commands above are used in the same way as we did it for invalid mhchem2 markup

Physikerwelt added a comment to T192634: Prepare removal of LaTeXML rendering mode.

@Andreg-p can you come up with a time plan for this change?

# Jun 20 2018

@Debenben I had a quick look at the bot code. According to my experience using regexp to replace macros in LaTeX leads to quite complex expressions soon and requires special treatment of many cases even in relatively small data-sets. I think a simpler approach is to customize texvcjs (or another latex paerser) and do the replacements in the parsed expression. However, if you only want to run the bot once and take care of the problems manually this approach might be good enough for the task at hand. That being said, I am not feeling comfortable to become a maintainer of this regexp based bot.

# Jun 17 2018

...
Math apparently now defaults to using WMF's public rest service for math rendering, which might not be the best default (?)
..

@brion do you have a suggestion, where and how to document how this decision was made?

@Debenben can we put the source code of the bot to a public repository. Otherwise, it might hard to decide if the bot flag should be granted. Or did I just miss the link to the bot code?

# Jun 15 2018

@Jdlrobson from my understanding what happens during hook registration code is that this code is only called if the parser sees a math,ce, or chem tag in the template expanded wikitext. I could imagine that during template expansion math tags might appear under certain circumstances. But this is really a wild guess.

Another potential source of caching problems is the setting dependent cache key https://github.com/wikimedia/mediawiki-extensions-Math/blob/df1689c7177d5b7ef946ae2ff525594bd377da3f/Math.hooks.php#L133-L136 depending on the user setting for math rendering different versions of the page are served. I am happy about any suggestions, how the code could be improved.

@Jdlrobson I am maintaining the code in the Math extension. It there anything with the code within the math extension which is unclear?

# Apr 17 2018

Physikerwelt added a comment to T192351: Math extension not usable without RESTbase server.

@ePirat I have tested that in CLI mode recently. The advantage of this is that the rendering results are cached in the database. Thus if you customize the mathoid server, you might want to purge the caches, by truncating the mathoid table in the database. Of course adding action=purge works as well on a page by page basis.