Page MenuHomePhabricator

FrederikHennecke1 (FrederikHennecke1)
User

Projects

User does not belong to any projects.

Today

  • No visible events.

Tomorrow

  • No visible events.

Sunday

  • No visible events.

User Details

User Since
Nov 5 2024, 9:27 PM (50 w, 2 d)
Availability
Available
LDAP User
FrederikHennecke1
MediaWiki User
Unknown

Recent Activity

Fri, Oct 17

FrederikHennecke1 added a comment to T405439: Investigate <math>1\definecolor{c}{RGB}{255,0,0}+2</math> .

It looks like this was fixed in commit id c5188b11172842b1afe3a6dcabb48a05ad04413d in T401623.

Fri, Oct 17, 9:51 PM · Math

Sat, Oct 11

FrederikHennecke1 added a comment to T388985: Add support for more complex linking in <math/> formulas.

Thank you. That seems to better match my expectations. I'll try to run your github on my machine to see if I can match those values. In https://ceur-ws.org/Vol-1785/W48.pdf we show the rendering time over the input length (Fig. 3). I find that a bit more intuitive (but more complicated) than the median.

Sat, Oct 11, 1:21 AM · RemexHtml, Patch-For-Review, Math

Thu, Oct 9

FrederikHennecke1 added a watcher for Math: FrederikHennecke1.
Thu, Oct 9, 6:39 PM

Tue, Sep 30

FrederikHennecke1 added a comment to T388985: Add support for more complex linking in <math/> formulas.

I thought I did but I was mistaken. Seems like I forgot to set one specific cache value and the caching did not work. I fixed the benchmark and now the results are completely different:

benchAllMissCore........................I49 - Mo195.291ms (±2.60%)
benchAllHitCore.........................I49 - Mo18.568ms (±4.47%)
Tue, Sep 30, 2:27 AM · RemexHtml, Patch-For-Review, Math

Mon, Sep 29

FrederikHennecke1 added a comment to T388985: Add support for more complex linking in <math/> formulas.

I created a small benchmarking script for LocalChecker: https://github.com/FrederikHennecke/mediawiki-extensions-Math-testing/tree/master/benchmarks
I used memcached for caching. The results show that the difference between a hit and a miss in the cache is relatively small. As for the input data, I used the reference.json file from the tests. Btw, this is my first time working with the cache, so take these results with a grain of salt.

benchAllMissCore........................I49 - Mo152.840ms (±1.30%)
benchAllHitCore.........................I49 - Mo148.083ms (±2.42%)
Mon, Sep 29, 4:32 PM · RemexHtml, Patch-For-Review, Math

Sep 14 2025

FrederikHennecke1 added a comment to T388985: Add support for more complex linking in <math/> formulas.

Thank you that’s a great plan. However I think it’s most effective if we discuss the caching and rendering question a bit more in detail before proceeding with the implementation.

  1. do we have current measurements of the performance and the impact of caching?
  1. can we estimate how the proposed changes would affect the performance? (Now, we have almost no qid / vs future with x % qid)
  1. can we generate a code pen, with a few complex and simple examples that demonstrates how the rendering will look like when implementation is done. That would help us to test the impact on even individual browsers.
Sep 14 2025, 4:47 PM · RemexHtml, Patch-For-Review, Math

Sep 13 2025

FrederikHennecke1 added a comment to T388985: Add support for more complex linking in <math/> formulas.

I propose the following changes for this task:

Sep 13 2025, 1:20 AM · RemexHtml, Patch-For-Review, Math

Aug 27 2025

FrederikHennecke1 added a comment to T402102: Regression problem in <chem> following latest Math version update.

Looks like the patch has two types of issues: first, the errors from T402362, T402434, and T402660, which should all be fixed.
And the other issues are from commit d562047, where the default tex checker was changed from restbase to local. The local mhchem parser does seem to be missing some features.

Aug 27 2025, 11:23 PM · Math-Chemistry-Support, Math

Aug 20 2025

FrederikHennecke1 created T402358: Italic for math formulas not working if anchor tag is in MathML.
Aug 20 2025, 12:41 AM · Browser-Support-Firefox, Math

Jul 21 2025

FrederikHennecke1 added a comment to T389712: Make MMLbase support trees.

I just updated the progress marks...
@FrederikHennecke1 is 5d complete?

Jul 21 2025, 3:23 PM · MW-1.45-notes (1.45.0-wmf.13; 2025-08-05), MW-1.44-notes (1.44.0-wmf.28; 2025-05-06), Patch-For-Review, RemexHtml, Math

Jun 1 2025

FrederikHennecke1 created T395764: Incorrect number of empty elements when creating bracket-free matrix.
Jun 1 2025, 7:10 PM · Math

May 23 2025

FrederikHennecke1 added a comment to T389712: Make MMLbase support trees.

I propose the following steps for Step 5:

May 23 2025, 3:43 PM · MW-1.45-notes (1.45.0-wmf.13; 2025-08-05), MW-1.44-notes (1.44.0-wmf.28; 2025-05-06), Patch-For-Review, RemexHtml, Math

May 21 2025

FrederikHennecke1 added a comment to T389712: Make MMLbase support trees.

I just noticed that one step is missing: we have to replace MMLbase::getEmpty. This is only called for MMLmspace or MMLmrow and returns the empty Element <mspace\>. With our current implementation, we get the full tag just without an inner text: <mspace><\mspace>. Either we change the tests, or we change MMLDomVisitor::getHTML from $this->dom->saveHTML( $this->dom->documentElement ) to $this->dom->saveXML( $this->dom->documentElement, LIBXML_NOEMPTYTAG ). That should automatically close all empty elements while keeping everything else the same.

May 21 2025, 2:10 PM · MW-1.45-notes (1.45.0-wmf.13; 2025-08-05), MW-1.44-notes (1.44.0-wmf.28; 2025-05-06), Patch-For-Review, RemexHtml, Math

May 7 2025

FrederikHennecke1 added a comment to T389712: Make MMLbase support trees.

For Task 4.c, I have the following points:

  1. Keep
if ( $node instanceof MMLleaf ) {
	$textNode = $this->dom->createTextNode( $node->getText() );
	$element->appendChild( $textNode );
	return;
}

instead of

May 7 2025, 10:32 PM · MW-1.45-notes (1.45.0-wmf.13; 2025-08-05), MW-1.44-notes (1.44.0-wmf.28; 2025-05-06), Patch-For-Review, RemexHtml, Math

Apr 22 2025

FrederikHennecke1 added a comment to T389712: Make MMLbase support trees.

Ok, then we can keep supporting the DOMVisitor. We can still change the visitor later on if needed.

Apr 22 2025, 2:37 PM · MW-1.45-notes (1.45.0-wmf.13; 2025-08-05), MW-1.44-notes (1.44.0-wmf.28; 2025-05-06), Patch-For-Review, RemexHtml, Math

Apr 17 2025

FrederikHennecke1 added a comment to T389712: Make MMLbase support trees.

I noticed some performance issues with the new MMLDomVisitor implementation.
I merely tested the old .encapsulate function against the new toString implemenation. I also wrote several other classes to test different XML/HTML implemntations.
Here are the times for 10,000 repetitions:

Apr 17 2025, 7:56 AM · MW-1.45-notes (1.45.0-wmf.13; 2025-08-05), MW-1.44-notes (1.44.0-wmf.28; 2025-05-06), Patch-For-Review, RemexHtml, Math

Mar 15 2025

FrederikHennecke1 created T388985: Add support for more complex linking in <math/> formulas.
Mar 15 2025, 9:32 PM · RemexHtml, Patch-For-Review, Math

Feb 18 2025

FrederikHennecke1 updated the task description for T386760: Remove link to current site inside formula.
Feb 18 2025, 10:01 PM · MW-1.44-notes (1.44.0-wmf.18; 2025-02-25), Math
FrederikHennecke1 created T386760: Remove link to current site inside formula.
Feb 18 2025, 9:57 PM · MW-1.44-notes (1.44.0-wmf.18; 2025-02-25), Math

Feb 11 2025

FrederikHennecke1 added a comment to T134311: Allow for links in <math/> tags.

I created a patch, where we automatically take the symbols and the urls from Wikibase property "in defining formula" and add them as anchor tags to the corresponding MathML Element. Also, for MathJax, the links are set via href in the MathML elements, because MathJax does currently not support anchor tags (but will soon in ver 4).

Feb 11 2025, 9:12 PM · MW-1.44-notes (1.44.0-wmf.19; 2025-03-04), Math-Macro-Proposals, Mathoid, Wikidata, Math

Dec 10 2024

FrederikHennecke1 added a comment to T381046: Preview not working with MathML rendering.

@FrederikHennecke1 Can you document as a step-by-step guide what you did to get the popups working locally?

Dec 10 2024, 12:54 PM · Test-Platform (Tria), Testing Support, MW-1.44-notes (1.44.0-wmf.6; 2024-12-03), User-zeljkofilipin, Page Content Service, Math

Dec 2 2024

FrederikHennecke1 added a comment to T381311: Preview has wrong location in MathML mode.

Small note: The interaction with Popup is currently broken (see T381310). So an older version of Extension:Popup should be used to test.

Dec 2 2024, 7:44 PM · MW-1.44-notes (1.44.0-wmf.8; 2024-12-17), Math
FrederikHennecke1 updated the task description for T381311: Preview has wrong location in MathML mode.
Dec 2 2024, 7:25 PM · MW-1.44-notes (1.44.0-wmf.8; 2024-12-17), Math
FrederikHennecke1 created T381311: Preview has wrong location in MathML mode.
Dec 2 2024, 7:05 PM · MW-1.44-notes (1.44.0-wmf.8; 2024-12-17), Math
FrederikHennecke1 created T381310: Math Popup not working in newer version of Popup-Extension.
Dec 2 2024, 7:05 PM · Math

Nov 28 2024

FrederikHennecke1 added a comment to T381046: Preview not working with MathML rendering.
  1. Did you analyze why the popup is not showing?

Because the popup module is currently looking for image tags inside .mwe-math-element elements with data-qid attributes, and the MathML mode is not using any images or the data-qid attribute.

  1. Is there any output in the browser's console?

No.

  1. How is the situation with other browsers?

I just also tested in MS Edge 131.0.2903.70 and Safari 14.1. where it's also broken.

Nov 28 2024, 3:50 PM · Test-Platform (Tria), Testing Support, MW-1.44-notes (1.44.0-wmf.6; 2024-12-03), User-zeljkofilipin, Page Content Service, Math

Nov 27 2024

FrederikHennecke1 claimed T381046: Preview not working with MathML rendering.
Nov 27 2024, 10:24 PM · Test-Platform (Tria), Testing Support, MW-1.44-notes (1.44.0-wmf.6; 2024-12-03), User-zeljkofilipin, Page Content Service, Math
FrederikHennecke1 created T381046: Preview not working with MathML rendering.
Nov 27 2024, 9:59 PM · Test-Platform (Tria), Testing Support, MW-1.44-notes (1.44.0-wmf.6; 2024-12-03), User-zeljkofilipin, Page Content Service, Math