mediawiki-extensions-Math/db/mathoid.mysql.sql
Moritz Schubotz d8822169ab
Mathoid CLI interface
Renders formulae via mathoid without to run mathoid as a service.
Mathoid 0.7.1 or later must be installed locally and configured to be
accessed directly from the math extension. It has been tested with the
config.dev.yaml of version 0.7.1. If mathoid is installed in
'/srv/mathoid' the following line might be added to LocalSettings.php
$wgMathoidCli = ['/srv/mathoid/cli.js', '-c', '/srv/mathoid/config.dev.yaml'];
i.e., make sure to specify the -c parameter with an absolute path.
In addition mathoid uses more memory than the the default. With
the config.dev.yaml a value of
$wgMaxShellMemory = 2097152;
has been tested to work well.

Change-Id: I0600f056d21927963267cf979d342e313419e9fa
2018-02-21 20:29:20 +01:00

23 lines
705 B
SQL

--
-- Used by the math module to keep track
-- of previously-rendered items.
--
CREATE TABLE /*_*/mathoid (
-- Binary MD5 hash of math_inputtex, used as an identifier key.
math_inputhash varbinary(16) NOT NULL PRIMARY KEY,
-- the user input
math_input text NOT NULL,
-- the validated tex
math_tex text,
-- MathML output LaTeXML
math_mathml text,
-- SVG output mathoid
math_svg text,
-- MW_MATHSTYLE_(INLINE_DISPLAYSTYLE|DISPLAY|INLINE)
math_style tinyint,
-- type of the Math input (TeX, MathML, AsciiMath...)
math_input_type tinyint,
-- png output of mathoid (for higher DPI settings this files might become larger than 64KiB)
math_png mediumblob
) /*$wgDBTableOptions*/;