Physikerwelt has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/173292

Change subject: Select rendering engine for batch update script
......................................................................

Select rendering engine for batch update script

Add option to select which renderer should be used to
perform the Math Formulae update

Change-Id: I074d3938c2898f4124f1b5ad11186863b0455172
---
M maintenance/UpdateMath.php
1 file changed, 6 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MathSearch 
refs/changes/92/173292/1

diff --git a/maintenance/UpdateMath.php b/maintenance/UpdateMath.php
index 9e1922d..04e78e9 100644
--- a/maintenance/UpdateMath.php
+++ b/maintenance/UpdateMath.php
@@ -32,6 +32,7 @@
        private $current;
        private $time = 0;//microtime( true );
        private $performance = array();
+       private $renderingMode =  MW_MATH_LATEXML;
 
        /**
         * @var DatabaseBase
@@ -43,7 +44,7 @@
        public function __construct() {
                $this->verbose = $this->verbose;
                parent::__construct();
-               $this->mDescription = 'Outputs page text to stdout';
+               $this->mDescription = 'Updates the index of Mathematical 
formulae.';
                $this->addOption( 'purge', "If set all formulae are rendered 
again without using caches. (Very time consuming!)", false, false, "f" );
                $this->addArg( 'min', "If set processing is started at the page 
with rank(pageID)>min", false );
                $this->addArg( 'max', "If set processing is stopped at the page 
with rank(pageID)<=max", false );
@@ -51,6 +52,7 @@
                $this->addOption( 'SVG', "If set SVG images will be produced", 
false, false );
                $this->addOption( 'hoooks', "If set hooks will be skipped", 
false, false );
                $this->addOption( 'texvccheck', "If set texvccheck will be 
skipped", false, false );
+               $this->addOption( 'mode' , 'Rendering mode to be used (0 = PNG, 
5= MathML, 7=MathML)',false,true,'m');
        }
        private function time($category='default'){
                global $wgMathDebug;
@@ -116,10 +118,11 @@
        }
 
        /**
-        * @param unknown $pId
+        * @param $pid
         * @param unknown $pText
         * @param string $pTitle
-        * @param string $purge
+        * @internal param unknown $pId
+        * @internal param string $purge
         * @return number
         */
        private function doUpdate( $pid, $pText, $pTitle = "") {

-- 
To view, visit https://gerrit.wikimedia.org/r/173292
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I074d3938c2898f4124f1b5ad11186863b0455172
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MathSearch
Gerrit-Branch: master
Gerrit-Owner: Physikerwelt <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to