Physikerwelt has uploaded a new change for review. https://gerrit.wikimedia.org/r/256668
Change subject: Add evaluation for Speech Rule Engine ...................................................................... Add evaluation for Speech Rule Engine * Add the controls Bug: T120179 Change-Id: Iffdd1ca4711a2d0cd88ac0d9904dbbce502d6543 --- M i18n/en.json M i18n/qqq.json M includes/MlpEvalForm.php 3 files changed, 28 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MathSearch refs/changes/68/256668/1 diff --git a/i18n/en.json b/i18n/en.json index 759eebd..1b99e5d 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -68,6 +68,14 @@ "math-lp-6-head": "Step 6: Context dependent semantics", "math-lp-6-intro": "In the following, you will assess the quality of the definition extraction.", "math-lp-6-separator-message": "Definition for identifier <math>$1</math> $<syntaxhighlight lang=\"latex\" inline>$1</syntaxhighlight>$", + "math-lp-6-srt-help": "The speech rule engine generates following text, that should help people with limited vision or reading capabilities to understand the formula. In the following we refer to this text as \"Speech Rule Text\".", + "math-lp-6-srt-label": "Speech Rule Text:", + "math-lp-6-srt-assessment-label":"Overall rating of the Speech Rule Text", + "math-lp-6-srt-assessment-option-1": "perfect", + "math-lp-6-srt-assessment-option-2": "ok", + "math-lp-6-srt-assessment-option-3": "needs improvement", + "math-lp-6-srt-assessment-option-4": "not helpful at all", + "math-lp-6-srt-suggestion-label": "Suggest a better alternative text (optional)", "math-lp-7-head": "Assessment completed", "math-lp-7-intro": "Thank you for the assessment of one mathematical expression.\n\nYou can to access more mathematical expressions from the same article or continue with another article.", "math-lp-formula-ref": "You are evaluating mathematical expression $1 rendered as $2 last edited on <code>$3</code>.", diff --git a/i18n/qqq.json b/i18n/qqq.json index 857b5c2..d0485b0 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -73,6 +73,14 @@ "math-lp-6-head": "Headline for survey step 6", "math-lp-6-intro": "Summarizing instruction for step 6", "math-lp-6-separator-message": "Headline that separates identifier definition control groups. Wrapped inside header (<h3>).\n*$1 is the TeX code of the identifeir", + "math-lp-6-srt-help": "Label of the speech rule text info field", + "math-lp-6-srt-label": "Help text of the speech rule text info field", + "math-lp-6-srt-assessment-label":"Label of speech rule text assessment radio control", + "math-lp-6-srt-assessment-option-1": "option of math-lp-6-srt-assessment-label", + "math-lp-6-srt-assessment-option-2": "option of math-lp-6-srt-assessment-label", + "math-lp-6-srt-assessment-option-3": "option of math-lp-6-srt-assessment-label", + "math-lp-6-srt-assessment-option-4": "option of math-lp-6-srt-assessment-label", + "math-lp-6-srt-suggestion-label": "Label of the a text field", "math-lp-7-head": "Headline for survey final step 6", "math-lp-7-intro": "Success message", "math-lp-formula-ref": "Wikitext snippet that describes, which mathematical object is currently evaluated", diff --git a/includes/MlpEvalForm.php b/includes/MlpEvalForm.php index 10faa79..ef5e660 100644 --- a/includes/MlpEvalForm.php +++ b/includes/MlpEvalForm.php @@ -125,9 +125,19 @@ 'type' => 'text' ); } + $srt = $this->specialPage->getSpeechRuleText(); $formDescriptor["6-srt"] = array( - 'type' => 'info', - 'default' => $this->specialPage->getSpeechRuleText() + 'type' => 'info', + 'default' => "<pre>$srt</pre>", + 'raw' => true + ); + $formDescriptor['6-srt-assessment'] = array( + 'type' => 'radio', + 'default' => 2, + ); + $formDescriptor['6-suggestion'] = array( + 'type' => 'text', + 'required' => false, ); break; } -- To view, visit https://gerrit.wikimedia.org/r/256668 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iffdd1ca4711a2d0cd88ac0d9904dbbce502d6543 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/MathSearch Gerrit-Branch: master Gerrit-Owner: Physikerwelt <w...@physikerwelt.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits