Extension:Math/AllFormulae
Appearance
From mediawiki.org
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)
#Bydefault,MySQLonlyallows16MB;however,thefileis300MB SETGLOBALmax_allowed_packet=1073741824; #Disconnectandcheckthatthenewvalueisactive SHOWVARIABLESLIKE"max_allowed_packet"; SET@json=LOAD_FILE('/tmp/wmf-texvc-inputs.json'); SET@jobj=JSON_OBJECT_TO_ARRAY(@json); INSERTIGNOREINTOmy_wiki.mathlog(math_inputhash,math_input,math_mode) selectk,v,8fromjson_table(@jobj,'$[*]' columns( kvarbinary(32)path'$[0]', vblobpath'$[1]' ) )asjt;