Commit graph

10 commits

Author SHA1 Message Date
jenkins-bot f8d44c1caf Merge "Don't write native rendering to database" 2023-10-23 18:20:44 +00:00
Moritz Schubotz (physikerwelt) dd221cb1a2 Don't write native rendering to database
* Native uses WANObject cache and thus the db is
  not needed.

Change-Id: I2aec0c4bceb7db80dc24a716cabd7f2647709516
2023-10-22 15:29:50 +00:00
Moritz Schubotz (physikerwelt) 493a7ac9f0
native: Add onMathRenderingResultRetrieved hook
Allow in depth analysis of rendering results in
native mode with the same mechanism that is also
used for other rendering modes.

Change-Id: I4927f9bc683445f83ef7c29dc2a9298aa85ff4d0
2023-10-22 13:43:47 +02:00
Moritz Schubotz (physikerwelt) e2ccab9687 Don't set purge in native mode
* Currently the native mode does always set render to true
  there is no reason to do, as this was initially introduced
  for testing.

Change-Id: I632ca5ea726d055f377439e439a39baca3bed385
2023-10-19 17:39:45 +00:00
Stegmujo aa5bba5bf9
Add a cache purging action for URL for Math rendering
* MathRenderer passes purge state, the purge state has to be rechecked
  since implicitly it is true in the MathRenderer
* for rechecking a new flag is introduced to isPurge function

Bug: T348976

Change-Id: Ifdcea4b2c17ac963a50ee48e2d6437c0feafc602
2023-10-19 18:43:23 +02:00
gerritbot fd1e7e2a67 Replace some moved Title class uses, now MediaWiki\Title\Title
Bug: T321681
Change-Id: I1c875fcf7456ea03420b316f58fcd18aa748301f
2023-08-19 04:17:34 +00:00
Moritz Schubotz (physikerwelt) 16d1fdacf4
Add WAN Cache for native MathML rendering
* Cache results for checked tex and MathML string in one cache.
* Remove access to parsetree
* Introduce run method to speed up service wiring

Note that the indirection table used in previous versions was
abandoned here. texvc does only little unification's of the
input string so that it is not expected that the overall savings
in space and compute time warrant the additional table.

Change-Id: Ib9ce3d2ab02bd9a2a0f9926db6b937435b7e5458
2023-06-19 23:04:08 +02:00
Moritz Schubotz (physikerwelt) fc425b977c
Add MathML interface to LocalChecker
In preparation for caching we store the MathML fragment returned by
local checker. The rational is that the string serialization of the
parse tree is better chachable as the parsetree.

Change-Id: Ice2ef1f4f7b83ed187507d4d067f446603d0d6a5
2023-06-19 17:39:49 +02:00
Moritz Schubotz (physikerwelt) 8c6eeae82e
Remove images from native MathML
In native MathML we only display MathML, also get
rid of enclosing <div / <span container.

Bug: T182041
Change-Id: I26bc4ea88d360d53cc7a34a89bef78812b84b2ea
2023-03-31 08:57:55 +02:00
Moritz Schubotz (physikerwelt) 88a4c8bc1d
Add minimal native MML mode
* Add minimal POC for native MathML rendering.
* (minor) convert string-based reference to MathConfig to proper access
  method.

Missing:
 *  Error handling
 *  Image fallbacks

Bug: T331047

Change-Id: I7e644c4688cca7fc9af0d54bdc260268c1f6b9df
2023-03-02 20:50:29 +01:00