r22484 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22483‎ | r22484 | r22485 >
Date:22:52, 27 May 2007
Author:david
Status:old
Tags:
Comment:
Merged revisions 22458-22483 via svnmerge from
svn+ssh://david@svn.wikimedia.org/svnroot/mediawiki/trunk/phase3

........
r22473 | hashar | 2007-05-27 01:22:37 -0700 (Sun, 27 May 2007) | 4 lines

* cleaner indenting for query pages
* enclose the content generated in a <div id="mw-spcontent"> (for javascript)
........
r22477 | jeluf | 2007-05-27 12:52:29 -0700 (Sun, 27 May 2007) | 1 line

(bug 7899) Added \hline and \vline to the list of allowed TeX commands
........
r22478 | jeluf | 2007-05-27 14:00:35 -0700 (Sun, 27 May 2007) | 1 line

(bug 7993) support mathematical symbol classes
........
r22480 | river | 2007-05-27 15:01:55 -0700 (Sun, 27 May 2007) | 2 lines

+hakka
........
r22481 | river | 2007-05-27 15:07:44 -0700 (Sun, 27 May 2007) | 2 lines

works better without syntax errors
........
r22482 | river | 2007-05-27 15:13:56 -0700 (Sun, 27 May 2007) | 3 lines

- need to include </div> in empty result case, otherwise page layout is screwed
- use a class instead of id, so it works with special page transclusion
........
Modified paths:
  • /branches/liquidthreads (modified) (history)
  • /branches/liquidthreads/RELEASE-NOTES (modified) (history)
  • /branches/liquidthreads/includes/QueryPage.php (modified) (history)
  • /branches/liquidthreads/languages/Names.php (modified) (history)
  • /branches/liquidthreads/math/texutil.ml (modified) (history)

Diff [purge]

Index: branches/liquidthreads/math/texutil.ml
@@ -466,6 +466,8 @@
467467 | "\\left" -> LEFT
468468 | "\\right" -> RIGHT
469469 | "\\hat" -> FUN_AR1 "\\hat "
 470+ | "\\hline" -> LITERAL (TEX_ONLY "\\hline ")
 471+ | "\\vline" -> LITERAL (TEX_ONLY "\\vline ")
470472 | "\\widehat" -> LITERAL (TEX_ONLY "\\widehat ")
471473 | "\\overline" -> LITERAL (TEX_ONLY "\\overline ")
472474 | "\\overbrace" -> LITERAL (TEX_ONLY "\\overbrace ")
@@ -702,7 +704,13 @@
703705 | "\\nLeftrightarrow" -> (tex_use_ams (); LITERAL (TEX_ONLY "\\nLeftrightarrow "))
704706 | "\\mathit" -> (tex_use_ams (); FUN_AR1hf ("\\mathit ", FONTFORCE_IT))
705707 | "\\mathrm" -> (tex_use_ams (); FUN_AR1hf ("\\mathrm ", FONTFORCE_RM))
 708+ | "\\mathord" -> (tex_use_ams (); FUN_AR1 "\\mathord ")
706709 | "\\mathop" -> (tex_use_ams (); FUN_AR1 "\\mathop ")
 710+ | "\\mathbin" -> (tex_use_ams (); FUN_AR1 "\\mathbin ")
 711+ | "\\mathrel" -> (tex_use_ams (); FUN_AR1 "\\mathrel ")
 712+ | "\\mathopen" -> (tex_use_ams (); FUN_AR1 "\\mathopen ")
 713+ | "\\mathclose" -> (tex_use_ams (); FUN_AR1 "\\mathclose ")
 714+ | "\\mathpunct" -> (tex_use_ams (); FUN_AR1 "\\mathpunct ")
707715 | "\\boldsymbol" -> (tex_use_ams (); FUN_AR1 "\\boldsymbol ")
708716 | "\\bold" -> (tex_use_ams (); FUN_AR1 "\\mathbf ")
709717 | "\\Bbb" -> (tex_use_ams (); FUN_AR1 "\\mathbb ")
Index: branches/liquidthreads/includes/QueryPage.php
@@ -332,6 +332,8 @@
333333 $num = $dbr->numRows($res);
334334
335335 $this->preprocessResults( $dbr, $res );
 336+
 337+ $wgOut->addHtml( XML::openElement( 'div', array('class' => 'mw-spcontent') ) );
336338
337339 # Top header and navigation
338340 if( $shownavigation ) {
@@ -346,6 +348,7 @@
347349 # No results to show, so don't bother with "showing X of Y" etc.
348350 # -- just let the user know and give up now
349351 $wgOut->addHtml( '<p>' . wfMsgHtml( 'specialpage-empty' ) . '</p>' );
 352+ $wgOut->addHtml( XML::closeElement( 'div' ) );
350353 return;
351354 }
352355 }
@@ -364,6 +367,8 @@
365368 if( $shownavigation ) {
366369 $wgOut->addHtml( '<p>' . $paging . '</p>' );
367370 }
 371+
 372+ $wgOut->addHtml( XML::closeElement( 'div' ) );
368373
369374 return $num;
370375 }
@@ -427,11 +432,11 @@
428433 }
429434
430435 function openList( $offset ) {
431 - return "<ol start='" . ( $offset + 1 ) . "' class='special'>";
 436+ return "\n<ol start='" . ( $offset + 1 ) . "' class='special'>\n";
432437 }
433438
434439 function closeList() {
435 - return '</ol>';
 440+ return "</ol>\n";
436441 }
437442
438443 /**
Index: branches/liquidthreads/languages/Names.php
@@ -91,6 +91,7 @@
9292 'gu' => 'ગુજરાતી', # Gujarati
9393 'gv' => 'Gaelg', # Manx
9494 'ha' => 'هَوُسَ', # Hausa
 95+ 'hak' => 'Hak-kâ-fâ', # Hakka
9596 'haw' => 'Hawai`i', # Hawaiian
9697 'he' => 'עברית', # Hebrew
9798 'hi' => 'हिन्दी', # Hindi
Index: branches/liquidthreads/RELEASE-NOTES
@@ -87,6 +87,8 @@
8888 entries.
8989 * (bug 7432) Change language name for Aromanian (roa-rup)
9090 * (bug 908) Unexistent special pages now generate a red link.
 91+* (bug 7899) Added \hline and \vline to the list of allowed TeX commands
 92+* (bug 7993) support mathematical symbol classes
9193
9294 == MediaWiki API changes since 1.10 ==
9395
Property changes on: branches/liquidthreads
___________________________________________________________________
Modified: svnmerge-integrated
9496 - /trunk/phase3:1-22457
9597 + /trunk/phase3:1-22483

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r22473* cleaner indenting for query pages...hashar08:22, 27 May 2007
r22477(bug 7899) Added \hline and \vline to the list of allowed TeX commandsjeluf19:52, 27 May 2007
r22478(bug 7993) support mathematical symbol classesjeluf21:00, 27 May 2007
r22480+hakkariver22:01, 27 May 2007
r22481works better without syntax errorsriver22:07, 27 May 2007
r22482- need to include </div> in empty result case, otherwise page layout is screwed...river22:13, 27 May 2007