mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-28 01:10:09 +00:00
Merge "Fix oint size"
This commit is contained in:
commit
21d3cf0f8f
|
@ -655,13 +655,11 @@ class BaseParsing {
|
||||||
// This is a custom mapping not in js.
|
// This is a custom mapping not in js.
|
||||||
$mmlText = new MMLmtext( "", $attributes );
|
$mmlText = new MMLmtext( "", $attributes );
|
||||||
$mrow = new MMLmrow();
|
$mrow = new MMLmrow();
|
||||||
$mStyle = new MMLmstyle( "", [ "mathsize" => "2.07em" ] );
|
|
||||||
|
|
||||||
switch ( $name ) {
|
switch ( $name ) {
|
||||||
case "oint":
|
case "oint":
|
||||||
|
$mStyle = new MMLmstyle( "", [ "displaystyle" => "true" ] );
|
||||||
$mo = new MMLmo();
|
$mo = new MMLmo();
|
||||||
return $mrow->encapsulateRaw( $mStyle->encapsulateRaw(
|
return $mStyle->encapsulateRaw( $mo->encapsulateRaw( MMLutil::uc2xNotation( $uc ) ) );
|
||||||
$mo->encapsulateRaw( MMLutil::uc2xNotation( $uc ) ) ) );
|
|
||||||
case "\\P":
|
case "\\P":
|
||||||
$mo = new MMLmo();
|
$mo = new MMLmo();
|
||||||
return $mo->encapsulateRaw( MMLutil::uc2xNotation( $uc ) );
|
return $mo->encapsulateRaw( MMLutil::uc2xNotation( $uc ) );
|
||||||
|
@ -669,6 +667,7 @@ class BaseParsing {
|
||||||
case "oiiint":
|
case "oiiint":
|
||||||
case "ointctrclockwise":
|
case "ointctrclockwise":
|
||||||
case "varointclockwise":
|
case "varointclockwise":
|
||||||
|
$mStyle = new MMLmstyle( "", [ "mathsize" => "2.07em" ] );
|
||||||
$mSpace = new MMLmspace( "", [ "width" => Sizes::THINMATHSPACE ] );
|
$mSpace = new MMLmspace( "", [ "width" => Sizes::THINMATHSPACE ] );
|
||||||
return $mrow->encapsulateRaw( $mStyle->encapsulateRaw(
|
return $mrow->encapsulateRaw( $mStyle->encapsulateRaw(
|
||||||
$mmlText->encapsulateRaw( MMLutil::uc2xNotation( $uc ) )
|
$mmlText->encapsulateRaw( MMLutil::uc2xNotation( $uc ) )
|
||||||
|
|
Loading…
Reference in a new issue