Extension:Math/AllFormulae
All formulae used in WMF projects are available from
# Downloads the file containing all formulae across all Wikipedia projects tests to the test folder
FILEPATH=/tmp/wmf-texvc-inputs.json
URL=https://zenodo.org/records/15162182/files/wmf_texvc_inputs.json
curl $URL -o $FILEPATH
import them to the database (with MathSearch extension installed)
# By default, MySQL only allows 16MB; however, the file is 300MB
SET GLOBAL max_allowed_packet=1073741824;
#Disconnect and check that the new value is active
SHOW VARIABLES LIKE "max_allowed_packet";
SET @json = LOAD_FILE('/tmp/wmf-texvc-inputs.json');
SET @jobj = JSON_OBJECT_TO_ARRAY(@json );
INSERT IGNORE INTO my_wiki.mathlog (math_inputhash, math_input, math_mode)
select k,v,8 from json_table(@jobj, '$[*]'
columns (
k varbinary(32) path '$[0]',
v blob path '$[1]'
)
) as jt;