Physikerwelt has uploaded a new change for review. https://gerrit.wikimedia.org/r/124062
Change subject: WIP: Add custom css rules ...................................................................... WIP: Add custom css rules * add css rules for display / inline math images * add css rules for MathML fonts Change-Id: I40c9c83300e3d53d93338337210f0c5b2212e6ea --- M Math.hooks.php M Math.php M MathTexvc.php A modules/MathML-fonts/Asana-Math/Asana-Math.woff A modules/MathML-fonts/Asana-Math/LICENSE.txt A modules/MathML-fonts/STIX/LICENSE.txt A modules/MathML-fonts/STIX/STIXGeneral-Bold.woff A modules/MathML-fonts/STIX/STIXGeneral-BoldItalic.woff A modules/MathML-fonts/STIX/STIXGeneral-Italic.woff A modules/MathML-fonts/STIX/STIXGeneral-Regular.woff A modules/MathML-fonts/STIX/STIXIntegralsD-Bold.woff A modules/MathML-fonts/STIX/STIXIntegralsD-Regular.woff A modules/MathML-fonts/STIX/STIXIntegralsSm-Bold.woff A modules/MathML-fonts/STIX/STIXIntegralsSm-Regular.woff A modules/MathML-fonts/STIX/STIXIntegralsUp-Bold.woff A modules/MathML-fonts/STIX/STIXIntegralsUp-Regular.woff A modules/MathML-fonts/STIX/STIXIntegralsUpD-Bold.woff A modules/MathML-fonts/STIX/STIXIntegralsUpD-Regular.woff A modules/MathML-fonts/STIX/STIXIntegralsUpSm-Bold.woff A modules/MathML-fonts/STIX/STIXIntegralsUpSm-Regular.woff A modules/MathML-fonts/STIX/STIXNonUnicode-Bold.woff A modules/MathML-fonts/STIX/STIXNonUnicode-BoldItalic.woff A modules/MathML-fonts/STIX/STIXNonUnicode-Italic.woff A modules/MathML-fonts/STIX/STIXNonUnicode-Regular.woff A modules/MathML-fonts/STIX/STIXSizeFiveSym-Regular.woff A modules/MathML-fonts/STIX/STIXSizeFourSym-Bold.woff A modules/MathML-fonts/STIX/STIXSizeFourSym-Regular.woff A modules/MathML-fonts/STIX/STIXSizeOneSym-Bold.woff A modules/MathML-fonts/STIX/STIXSizeOneSym-Regular.woff A modules/MathML-fonts/STIX/STIXSizeThreeSym-Bold.woff A modules/MathML-fonts/STIX/STIXSizeThreeSym-Regular.woff A modules/MathML-fonts/STIX/STIXSizeTwoSym-Bold.woff A modules/MathML-fonts/STIX/STIXSizeTwoSym-Regular.woff A modules/MathML-fonts/STIX/STIXVariants-Bold.woff A modules/MathML-fonts/STIX/STIXVariants-Regular.woff A modules/ext.math.css A modules/ext.math.fonts.css 37 files changed, 566 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Math refs/changes/62/124062/1 diff --git a/Math.hooks.php b/Math.hooks.php index 2a1827b..a5ec4a8 100644 --- a/Math.hooks.php +++ b/Math.hooks.php @@ -125,6 +125,8 @@ if ( $wgUseMathJax && $mode == MW_MATH_MATHJAX ) { $parser->getOutput()->addModules( array( 'ext.math.mathjax.enabler' ) ); } + $parser->getOutput()->addModuleStyles( array( 'ext.math.styles' ) ); + $parser->getOutput()->addModuleStyles( array( 'ext.math.styles.fonts' ) ); $renderer->writeCache(); $result = $wgContLang->armourMath( $renderedMath ); diff --git a/Math.php b/Math.php index 0006dc3..01731e5 100644 --- a/Math.php +++ b/Math.php @@ -178,6 +178,44 @@ $wgParserTestFiles[] = $dir . 'mathParserTests.txt'; +$wgResourceModules['ext.math.styles'] = array( + 'localBasePath' => __DIR__ . '/modules', + 'remoteExtPath' => 'Math/modules', + 'styles' => 'ext.math.css', +); +$wgResourceModules['ext.math.styles.fonts'] = array( + 'localBasePath' => __DIR__ . '/modules', + 'remoteExtPath' => 'Math/modules', + 'styles' => 'ext.math.fonts.css', +); +// Conditional rendering of the MathML output. +$wgResourceModules += array( + // Module to choose the best rendering option. + 'ext.math.selector' => array( + 'localBasePath' => __DIR__ . '/modules', + 'remoteExtPath' => 'Math/modules', + 'scripts' => 'ext.math.selector.js' + ), + // Standard rendering with MathML. + 'ext.math.mathml' => array( + 'localBasePath' => __DIR__ . '/modules', + 'remoteExtPath' => 'Math/modules', + 'styles' => 'ext.math.mathml.css' + ), + // Fallback rendering with SVG. + 'ext.math.svg' => array( + 'localBasePath' => __DIR__ . '/modules', + 'remoteExtPath' => 'Math/modules', + 'styles' => 'ext.math.svg.css' + ), + // Web Fonts for native MathML. + 'ext.math.fonts' => array( + 'localBasePath' => __DIR__ . '/modules', + 'remoteExtPath' => 'Math/modules', + 'styles' => 'ext.math.fonts.css' + ) +); + // MathJax module // If you modify these arrays, update ext.math.mathjax.enabler.js to ensure // that getModuleNameFromFile knows how to map files to MediaWiki modules. diff --git a/MathTexvc.php b/MathTexvc.php index 467d529..ace89dc 100644 --- a/MathTexvc.php +++ b/MathTexvc.php @@ -79,10 +79,10 @@ */ public function getMathImageHTML() { $url = $this->getMathImageUrl(); - $attributes = array( 'class' => 'tex', 'alt' => $this->getTex() ); + $attributes = array( 'class' => 'mwe-math-fallback-png-inline', 'alt' => $this->getTex() ); if ( $this->getDisplayStyle() === MW_MATHSTYLE_DISPLAY_DISPLAY ){ // if DisplayStyle is true, the equation will be centered in a new line - $attributes[ 'style' ] = 'display:block; margin-left: auto; margin-right: auto;'; + $attributes[ 'class' ] = 'mwe-math-fallback-png-display'; } return Xml::element( 'img', $this->getAttributes( diff --git a/modules/MathML-fonts/Asana-Math/Asana-Math.woff b/modules/MathML-fonts/Asana-Math/Asana-Math.woff new file mode 100644 index 0000000..b8059e0 --- /dev/null +++ b/modules/MathML-fonts/Asana-Math/Asana-Math.woff Binary files differ diff --git a/modules/MathML-fonts/Asana-Math/LICENSE.txt b/modules/MathML-fonts/Asana-Math/LICENSE.txt new file mode 100644 index 0000000..d6a8c7a --- /dev/null +++ b/modules/MathML-fonts/Asana-Math/LICENSE.txt @@ -0,0 +1,90 @@ +SIL OPEN FONT LICENSE +Version 1.1 - 26 February 2007 + +PREAMBLE + +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS + +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting — in part or in whole — any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS + +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION + +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER + +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/modules/MathML-fonts/STIX/LICENSE.txt b/modules/MathML-fonts/STIX/LICENSE.txt new file mode 100644 index 0000000..2b8aa24 --- /dev/null +++ b/modules/MathML-fonts/STIX/LICENSE.txt @@ -0,0 +1,110 @@ +STIX Font License + +24 May 2010 + +Copyright (c) 2001-2010 by the STI Pub Companies, consisting of the American +Institute of Physics, the American Chemical Society, the American Mathematical +Society, the American Physical Society, Elsevier, Inc., and The Institute of +Electrical and Electronic Engineers, Inc. (www.stixfonts.org), with Reserved +Font Name STIX Fonts, STIX Fonts (TM) is a trademark of The Institute of +Electrical and Electronics Engineers, Inc. + +Portions copyright (c) 1998-2003 by MicroPress, Inc. (www.micropress-inc.com), +with Reserved Font Name TM Math. To obtain additional mathematical fonts, +please contact +MicroPress, Inc., 68-30 Harrow Street, Forest Hills, NY 11375, USA, +Phone: (718) 575-1816. + +Portions copyright (c) 1990 by Elsevier, Inc. + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + +--------------------------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +--------------------------------------------------------------------------- + +PREAMBLE + +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. +DEFINITIONS + +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting — in part or in whole — any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. +PERMISSION & CONDITIONS + +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. +TERMINATION + +This license becomes null and void if any of the above conditions are +not met. +DISCLAIMER + +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/modules/MathML-fonts/STIX/STIXGeneral-Bold.woff b/modules/MathML-fonts/STIX/STIXGeneral-Bold.woff new file mode 100644 index 0000000..a134c1f --- /dev/null +++ b/modules/MathML-fonts/STIX/STIXGeneral-Bold.woff Binary files differ diff --git a/modules/MathML-fonts/STIX/STIXGeneral-BoldItalic.woff b/modules/MathML-fonts/STIX/STIXGeneral-BoldItalic.woff new file mode 100644 index 0000000..bc2db1e --- /dev/null +++ b/modules/MathML-fonts/STIX/STIXGeneral-BoldItalic.woff Binary files differ diff --git a/modules/MathML-fonts/STIX/STIXGeneral-Italic.woff b/modules/MathML-fonts/STIX/STIXGeneral-Italic.woff new file mode 100644 index 0000000..c8b7631 --- /dev/null +++ b/modules/MathML-fonts/STIX/STIXGeneral-Italic.woff Binary files differ diff --git a/modules/MathML-fonts/STIX/STIXGeneral-Regular.woff b/modules/MathML-fonts/STIX/STIXGeneral-Regular.woff new file mode 100644 index 0000000..fad022a --- /dev/null +++ b/modules/MathML-fonts/STIX/STIXGeneral-Regular.woff Binary files differ diff --git a/modules/MathML-fonts/STIX/STIXIntegralsD-Bold.woff b/modules/MathML-fonts/STIX/STIXIntegralsD-Bold.woff new file mode 100644 index 0000000..ef7327a --- /dev/null +++ b/modules/MathML-fonts/STIX/STIXIntegralsD-Bold.woff Binary files differ diff --git a/modules/MathML-fonts/STIX/STIXIntegralsD-Regular.woff b/modules/MathML-fonts/STIX/STIXIntegralsD-Regular.woff new file mode 100644 index 0000000..ad2c32e --- /dev/null +++ b/modules/MathML-fonts/STIX/STIXIntegralsD-Regular.woff Binary files differ diff --git a/modules/MathML-fonts/STIX/STIXIntegralsSm-Bold.woff b/modules/MathML-fonts/STIX/STIXIntegralsSm-Bold.woff new file mode 100644 index 0000000..3bf7016 --- /dev/null +++ b/modules/MathML-fonts/STIX/STIXIntegralsSm-Bold.woff Binary files differ diff --git a/modules/MathML-fonts/STIX/STIXIntegralsSm-Regular.woff b/modules/MathML-fonts/STIX/STIXIntegralsSm-Regular.woff new file mode 100644 index 0000000..4bee942 --- /dev/null +++ b/modules/MathML-fonts/STIX/STIXIntegralsSm-Regular.woff Binary files differ diff --git a/modules/MathML-fonts/STIX/STIXIntegralsUp-Bold.woff b/modules/MathML-fonts/STIX/STIXIntegralsUp-Bold.woff new file mode 100644 index 0000000..8c83997 --- /dev/null +++ b/modules/MathML-fonts/STIX/STIXIntegralsUp-Bold.woff Binary files differ diff --git a/modules/MathML-fonts/STIX/STIXIntegralsUp-Regular.woff b/modules/MathML-fonts/STIX/STIXIntegralsUp-Regular.woff new file mode 100644 index 0000000..220ac67 --- /dev/null +++ b/modules/MathML-fonts/STIX/STIXIntegralsUp-Regular.woff Binary files differ diff --git a/modules/MathML-fonts/STIX/STIXIntegralsUpD-Bold.woff b/modules/MathML-fonts/STIX/STIXIntegralsUpD-Bold.woff new file mode 100644 index 0000000..e0e646b --- /dev/null +++ b/modules/MathML-fonts/STIX/STIXIntegralsUpD-Bold.woff Binary files differ diff --git a/modules/MathML-fonts/STIX/STIXIntegralsUpD-Regular.woff b/modules/MathML-fonts/STIX/STIXIntegralsUpD-Regular.woff new file mode 100644 index 0000000..d081af2 --- /dev/null +++ b/modules/MathML-fonts/STIX/STIXIntegralsUpD-Regular.woff Binary files differ diff --git a/modules/MathML-fonts/STIX/STIXIntegralsUpSm-Bold.woff b/modules/MathML-fonts/STIX/STIXIntegralsUpSm-Bold.woff new file mode 100644 index 0000000..4ea0fce --- /dev/null +++ b/modules/MathML-fonts/STIX/STIXIntegralsUpSm-Bold.woff Binary files differ diff --git a/modules/MathML-fonts/STIX/STIXIntegralsUpSm-Regular.woff b/modules/MathML-fonts/STIX/STIXIntegralsUpSm-Regular.woff new file mode 100644 index 0000000..320fdfe --- /dev/null +++ b/modules/MathML-fonts/STIX/STIXIntegralsUpSm-Regular.woff Binary files differ diff --git a/modules/MathML-fonts/STIX/STIXNonUnicode-Bold.woff b/modules/MathML-fonts/STIX/STIXNonUnicode-Bold.woff new file mode 100644 index 0000000..6dfe10f --- /dev/null +++ b/modules/MathML-fonts/STIX/STIXNonUnicode-Bold.woff Binary files differ diff --git a/modules/MathML-fonts/STIX/STIXNonUnicode-BoldItalic.woff b/modules/MathML-fonts/STIX/STIXNonUnicode-BoldItalic.woff new file mode 100644 index 0000000..f3b5610 --- /dev/null +++ b/modules/MathML-fonts/STIX/STIXNonUnicode-BoldItalic.woff Binary files differ diff --git a/modules/MathML-fonts/STIX/STIXNonUnicode-Italic.woff b/modules/MathML-fonts/STIX/STIXNonUnicode-Italic.woff new file mode 100644 index 0000000..66aa057 --- /dev/null +++ b/modules/MathML-fonts/STIX/STIXNonUnicode-Italic.woff Binary files differ diff --git a/modules/MathML-fonts/STIX/STIXNonUnicode-Regular.woff b/modules/MathML-fonts/STIX/STIXNonUnicode-Regular.woff new file mode 100644 index 0000000..43e9b92 --- /dev/null +++ b/modules/MathML-fonts/STIX/STIXNonUnicode-Regular.woff Binary files differ diff --git a/modules/MathML-fonts/STIX/STIXSizeFiveSym-Regular.woff b/modules/MathML-fonts/STIX/STIXSizeFiveSym-Regular.woff new file mode 100644 index 0000000..e9f9f46 --- /dev/null +++ b/modules/MathML-fonts/STIX/STIXSizeFiveSym-Regular.woff Binary files differ diff --git a/modules/MathML-fonts/STIX/STIXSizeFourSym-Bold.woff b/modules/MathML-fonts/STIX/STIXSizeFourSym-Bold.woff new file mode 100644 index 0000000..62d19b3 --- /dev/null +++ b/modules/MathML-fonts/STIX/STIXSizeFourSym-Bold.woff Binary files differ diff --git a/modules/MathML-fonts/STIX/STIXSizeFourSym-Regular.woff b/modules/MathML-fonts/STIX/STIXSizeFourSym-Regular.woff new file mode 100644 index 0000000..31b76b6 --- /dev/null +++ b/modules/MathML-fonts/STIX/STIXSizeFourSym-Regular.woff Binary files differ diff --git a/modules/MathML-fonts/STIX/STIXSizeOneSym-Bold.woff b/modules/MathML-fonts/STIX/STIXSizeOneSym-Bold.woff new file mode 100644 index 0000000..a6bb3d4 --- /dev/null +++ b/modules/MathML-fonts/STIX/STIXSizeOneSym-Bold.woff Binary files differ diff --git a/modules/MathML-fonts/STIX/STIXSizeOneSym-Regular.woff b/modules/MathML-fonts/STIX/STIXSizeOneSym-Regular.woff new file mode 100644 index 0000000..cabadb7 --- /dev/null +++ b/modules/MathML-fonts/STIX/STIXSizeOneSym-Regular.woff Binary files differ diff --git a/modules/MathML-fonts/STIX/STIXSizeThreeSym-Bold.woff b/modules/MathML-fonts/STIX/STIXSizeThreeSym-Bold.woff new file mode 100644 index 0000000..7a49c2b --- /dev/null +++ b/modules/MathML-fonts/STIX/STIXSizeThreeSym-Bold.woff Binary files differ diff --git a/modules/MathML-fonts/STIX/STIXSizeThreeSym-Regular.woff b/modules/MathML-fonts/STIX/STIXSizeThreeSym-Regular.woff new file mode 100644 index 0000000..8ee9db8 --- /dev/null +++ b/modules/MathML-fonts/STIX/STIXSizeThreeSym-Regular.woff Binary files differ diff --git a/modules/MathML-fonts/STIX/STIXSizeTwoSym-Bold.woff b/modules/MathML-fonts/STIX/STIXSizeTwoSym-Bold.woff new file mode 100644 index 0000000..1af2862 --- /dev/null +++ b/modules/MathML-fonts/STIX/STIXSizeTwoSym-Bold.woff Binary files differ diff --git a/modules/MathML-fonts/STIX/STIXSizeTwoSym-Regular.woff b/modules/MathML-fonts/STIX/STIXSizeTwoSym-Regular.woff new file mode 100644 index 0000000..103c276 --- /dev/null +++ b/modules/MathML-fonts/STIX/STIXSizeTwoSym-Regular.woff Binary files differ diff --git a/modules/MathML-fonts/STIX/STIXVariants-Bold.woff b/modules/MathML-fonts/STIX/STIXVariants-Bold.woff new file mode 100644 index 0000000..f6b4882 --- /dev/null +++ b/modules/MathML-fonts/STIX/STIXVariants-Bold.woff Binary files differ diff --git a/modules/MathML-fonts/STIX/STIXVariants-Regular.woff b/modules/MathML-fonts/STIX/STIXVariants-Regular.woff new file mode 100644 index 0000000..ad46c98 --- /dev/null +++ b/modules/MathML-fonts/STIX/STIXVariants-Regular.woff Binary files differ diff --git a/modules/ext.math.css b/modules/ext.math.css new file mode 100644 index 0000000..1125002 --- /dev/null +++ b/modules/ext.math.css @@ -0,0 +1,10 @@ +/* + Document : ext.math + Created on : 23.09.2013, 13:55:00 + Author : Physikerwelt (Moritz Schubotz) + Description: + Shows browser depended math output. +*/ + +img.mwe-math-fallback-png-inline { display: inline; vertical-align: middle} +img.mwe-math-fallback-png-display { display: block; margin-left: auto; margin-right: auto;} \ No newline at end of file diff --git a/modules/ext.math.fonts.css b/modules/ext.math.fonts.css new file mode 100644 index 0000000..79d78c6 --- /dev/null +++ b/modules/ext.math.fonts.css @@ -0,0 +1,314 @@ +/* This file is automatically generated. Do not edit. */ +/* See https://developer.mozilla.org/en-US/docs/Web/MathML/Authoring#Mathematical_fonts */ +@font-face { + font-family: 'Asana Math'; + src: local('Asana-Math'), local('Asana Math'), url('MathML-fonts/Asana-Math/Asana-Math.woff'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'MathJax_AMS'; + src: local('MathJax_AMS-Regular'), local('MathJax_AMS Regular'), url('MathJax/fonts/HTML-CSS/TeX/woff/MathJax_AMS-Regular.woff'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'MathJax_Caligraphic'; + src: local('MathJax_Caligraphic-Regular'), local('MathJax_Caligraphic Regular'), url('MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Regular.woff'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'MathJax_Fraktur'; + src: local('MathJax_Fraktur-Regular'), local('MathJax_Fraktur Regular'), url('MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Fraktur-Regular.woff'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'MathJax_Main'; + src: local('MathJax_Main-Regular'), local('MathJax_Main Regular'), url('MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Regular.woff'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'MathJax_Math'; + src: local('MathJax_Math-Regular'), local('MathJax_Math Regular'), url('MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Math-Regular.woff'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'MathJax_SansSerif'; + src: local('MathJax_SansSerif-Regular'), local('MathJax_SansSerif Regular'), url('MathJax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Regular.woff'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'MathJax_Script'; + src: local('MathJax_Script-Regular'), local('MathJax_Script Regular'), url('MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Script-Regular.woff'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'MathJax_Size1'; + src: local('MathJax_Size1-Regular'), local('MathJax_Size1 Regular'), url('MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size1-Regular.woff'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'MathJax_Size2'; + src: local('MathJax_Size2-Regular'), local('MathJax_Size2 Regular'), url('MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size2-Regular.woff'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'MathJax_Size3'; + src: local('MathJax_Size3-Regular'), local('MathJax_Size3 Regular'), url('MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size3-Regular.woff'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'MathJax_Size4'; + src: local('MathJax_Size4-Regular'), local('MathJax_Size4 Regular'), url('MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size4-Regular.woff'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'MathJax_Typewriter'; + src: local('MathJax_Typewriter-Regular'), local('MathJax_Typewriter Regular'), url('MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Typewriter-Regular.woff'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'MathJax_WinChrome'; + src: local('MathJax_WinChrome-Regular'), local('MathJax_WinChrome Regular'), url('MathJax/fonts/HTML-CSS/TeX/woff/MathJax_WinChrome-Regular.woff'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'MathJax_WinIE6'; + src: local('MathJax_WinIE6-Regular'), local('MathJax_WinIE6 Regular'), url('MathJax/fonts/HTML-CSS/TeX/woff/MathJax_WinIE6-Regular.woff'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'STIXGeneral'; + src: local('STIXGeneral-Regular'), local('STIXGeneral Regular'), url('MathML-fonts/STIX/STIXGeneral-Regular.woff'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'STIXIntegralsD'; + src: local('STIXIntegralsD-Regular'), local('STIXIntegralsD Regular'), url('MathML-fonts/STIX/STIXIntegralsD-Regular.woff'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'STIXIntegralsSm'; + src: local('STIXIntegralsSm-Regular'), local('STIXIntegralsSm Regular'), url('MathML-fonts/STIX/STIXIntegralsSm-Regular.woff'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'STIXIntegralsUpD'; + src: local('STIXIntegralsUpD-Regular'), local('STIXIntegralsUpD Regular'), url('MathML-fonts/STIX/STIXIntegralsUpD-Regular.woff'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'STIXIntegralsUp'; + src: local('STIXIntegralsUp-Regular'), local('STIXIntegralsUp Regular'), url('MathML-fonts/STIX/STIXIntegralsUp-Regular.woff'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'STIXIntegralsUpSm'; + src: local('STIXIntegralsUpSm-Regular'), local('STIXIntegralsUpSm Regular'), url('MathML-fonts/STIX/STIXIntegralsUpSm-Regular.woff'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'STIXNonUnicode'; + src: local('STIXNonUnicode-Regular'), local('STIXNonUnicode Regular'), url('MathML-fonts/STIX/STIXNonUnicode-Regular.woff'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'STIXSizeFiveSym'; + src: local('STIXSizeFiveSym-Regular'), local('STIXSizeFiveSym Regular'), url('MathML-fonts/STIX/STIXSizeFiveSym-Regular.woff'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'STIXSizeFourSym'; + src: local('STIXSizeFourSym-Regular'), local('STIXSizeFourSym Regular'), url('MathML-fonts/STIX/STIXSizeFourSym-Regular.woff'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'STIXSizeOneSym'; + src: local('STIXSizeOneSym-Regular'), local('STIXSizeOneSym Regular'), url('MathML-fonts/STIX/STIXSizeOneSym-Regular.woff'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'STIXSizeThreeSym'; + src: local('STIXSizeThreeSym-Regular'), local('STIXSizeThreeSym Regular'), url('MathML-fonts/STIX/STIXSizeThreeSym-Regular.woff'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'STIXSizeTwoSym'; + src: local('STIXSizeTwoSym-Regular'), local('STIXSizeTwoSym Regular'), url('MathML-fonts/STIX/STIXSizeTwoSym-Regular.woff'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'STIXVariants'; + src: local('STIXVariants-Regular'), local('STIXVariants Regular'), url('MathML-fonts/STIX/STIXVariants-Regular.woff'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'MathJax_Caligraphic'; + src: local('MathJax_Caligraphic-Bold'), local('MathJax_Caligraphic Bold'), url('MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Bold.woff'); + font-weight: bold; + font-style: normal; +} +@font-face { + font-family: 'MathJax_Fraktur'; + src: local('MathJax_Fraktur-Bold'), local('MathJax_Fraktur Bold'), url('MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Fraktur-Bold.woff'); + font-weight: bold; + font-style: normal; +} +@font-face { + font-family: 'MathJax_Main'; + src: local('MathJax_Main-Bold'), local('MathJax_Main Bold'), url('MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Bold.woff'); + font-weight: bold; + font-style: normal; +} +@font-face { + font-family: 'MathJax_SansSerif'; + src: local('MathJax_SansSerif-Bold'), local('MathJax_SansSerif Bold'), url('MathJax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Bold.woff'); + font-weight: bold; + font-style: normal; +} +@font-face { + font-family: 'STIXGeneral'; + src: local('STIXGeneral-Bold'), local('STIXGeneral Bold'), url('MathML-fonts/STIX/STIXGeneral-Bold.woff'); + font-weight: bold; + font-style: normal; +} +@font-face { + font-family: 'STIXIntegralsD'; + src: local('STIXIntegralsD-Bold'), local('STIXIntegralsD Bold'), url('MathML-fonts/STIX/STIXIntegralsD-Bold.woff'); + font-weight: bold; + font-style: normal; +} +@font-face { + font-family: 'STIXIntegralsSm'; + src: local('STIXIntegralsSm-Bold'), local('STIXIntegralsSm Bold'), url('MathML-fonts/STIX/STIXIntegralsSm-Bold.woff'); + font-weight: bold; + font-style: normal; +} +@font-face { + font-family: 'STIXIntegralsUp'; + src: local('STIXIntegralsUp-Bold'), local('STIXIntegralsUp Bold'), url('MathML-fonts/STIX/STIXIntegralsUp-Bold.woff'); + font-weight: bold; + font-style: normal; +} +@font-face { + font-family: 'STIXIntegralsUpD'; + src: local('STIXIntegralsUpD-Bold'), local('STIXIntegralsUpD Bold'), url('MathML-fonts/STIX/STIXIntegralsUpD-Bold.woff'); + font-weight: bold; + font-style: normal; +} +@font-face { + font-family: 'STIXIntegralsUpSm'; + src: local('STIXIntegralsUpSm-Bold'), local('STIXIntegralsUpSm Bold'), url('MathML-fonts/STIX/STIXIntegralsUpSm-Bold.woff'); + font-weight: bold; + font-style: normal; +} +@font-face { + font-family: 'STIXNonUnicode'; + src: local('STIXNonUnicode-Bold'), local('STIXNonUnicode Bold'), url('MathML-fonts/STIX/STIXNonUnicode-Bold.woff'); + font-weight: bold; + font-style: normal; +} +@font-face { + font-family: 'STIXSizeFourSym'; + src: local('STIXSizeFourSym-Bold'), local('STIXSizeFourSym Bold'), url('MathML-fonts/STIX/STIXSizeFourSym-Bold.woff'); + font-weight: bold; + font-style: normal; +} +@font-face { + font-family: 'STIXSizeOneSym'; + src: local('STIXSizeOneSym-Bold'), local('STIXSizeOneSym Bold'), url('MathML-fonts/STIX/STIXSizeOneSym-Bold.woff'); + font-weight: bold; + font-style: normal; +} +@font-face { + font-family: 'STIXSizeThreeSym'; + src: local('STIXSizeThreeSym-Bold'), local('STIXSizeThreeSym Bold'), url('MathML-fonts/STIX/STIXSizeThreeSym-Bold.woff'); + font-weight: bold; + font-style: normal; +} +@font-face { + font-family: 'STIXSizeTwoSym'; + src: local('STIXSizeTwoSym-Bold'), local('STIXSizeTwoSym Bold'), url('MathML-fonts/STIX/STIXSizeTwoSym-Bold.woff'); + font-weight: bold; + font-style: normal; +} +@font-face { + font-family: 'STIXVariants'; + src: local('STIXVariants-Bold'), local('STIXVariants Bold'), url('MathML-fonts/STIX/STIXVariants-Bold.woff'); + font-weight: bold; + font-style: normal; +} +@font-face { + font-family: 'MathJax_Main'; + src: local('MathJax_Main-Italic'), local('MathJax_Main Italic'), url('MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Italic.woff'); + font-weight: normal; + font-style: italic; +} +@font-face { + font-family: 'MathJax_Math'; + src: local('MathJax_Math-Italic'), local('MathJax_Math Italic'), url('MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Math-Italic.woff'); + font-weight: normal; + font-style: italic; +} +@font-face { + font-family: 'MathJax_SansSerif'; + src: local('MathJax_SansSerif-Italic'), local('MathJax_SansSerif Italic'), url('MathJax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Italic.woff'); + font-weight: normal; + font-style: italic; +} +@font-face { + font-family: 'STIXGeneral'; + src: local('STIXGeneral-Italic'), local('STIXGeneral Italic'), url('MathML-fonts/STIX/STIXGeneral-Italic.woff'); + font-weight: normal; + font-style: italic; +} +@font-face { + font-family: 'STIXNonUnicode'; + src: local('STIXNonUnicode-Italic'), local('STIXNonUnicode Italic'), url('MathML-fonts/STIX/STIXNonUnicode-Italic.woff'); + font-weight: normal; + font-style: italic; +} +@font-face { + font-family: 'MathJax_Math'; + src: local('MathJax_Math-BoldItalic'), local('MathJax_Math BoldItalic'), url('MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Math-BoldItalic.woff'); + font-weight: bold; + font-style: italic; +} +@font-face { + font-family: 'STIXGeneral'; + src: local('STIXGeneral-BoldItalic'), local('STIXGeneral BoldItalic'), url('MathML-fonts/STIX/STIXGeneral-BoldItalic.woff'); + font-weight: bold; + font-style: italic; +} +@font-face { + font-family: 'STIXNonUnicode'; + src: local('STIXNonUnicode-BoldItalic'), local('STIXNonUnicode BoldItalic'), url('MathML-fonts/STIX/STIXNonUnicode-BoldItalic.woff'); + font-weight: bold; + font-style: italic; +} -- To view, visit https://gerrit.wikimedia.org/r/124062 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I40c9c83300e3d53d93338337210f0c5b2212e6ea Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Math 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