[not part of default build] @import MathML CSS rules in the ua.css on MathML-enabled builds. Paul Gartside <gartside@maths.ox.ac.uk> and Peter Van der Beken <Peter.VanderBeken@pandora.be> have verified that all went well on Linux and Mac, respectively. a:waterson

This commit is contained in:
rbs%maths.uq.edu.au 2000-07-10 13:58:27 +00:00
Родитель 67f351cd69
Коммит 8b24b2d555
5 изменённых файлов: 419 добавлений и 0 удалений

Просмотреть файл

@ -68,3 +68,5 @@ EXPORT_RESOURCE_CONTENT = \
$(NULL)
install::
$(INSTALL) $(EXPORT_RESOURCE_CONTENT) $(DIST)/bin/dtd
$(INSTALL) mathml.css $(DIST)/bin/res
$(PERL) mathml-css.pl $(DIST)/bin/res/ua.css

Просмотреть файл

@ -59,7 +59,10 @@ install:: $(LIBRARY)
install::
$(MAKE_INSTALL) mathml.dtd $(DIST)\bin\dtd
$(MAKE_INSTALL) mathml.css $(DIST)\bin\res
$(PERL) mathml-css.pl $(DIST)\bin\res\ua.css
clobber::
rm -f $(DIST)\lib\$(LIBRARY_NAME).lib
rm -f $(DIST)\bin\dtd\mathml.dtd
rm -f $(DIST)\bin\res\mathml.css

Просмотреть файл

@ -0,0 +1,16 @@
# add mathml.css to the ua.css
$sep = '/'; # directory separator
$ua = $ARGV[0]; $ua =~ s|\\|$sep|g;
open(UA, $ua) || die "Cannot find ua.css\n";
$css = join("", <UA>);
close(UA);
if (!($css =~ m|\@import.*mathml\.css|))
{
open(UA, "+>>$ua");
print UA "\@import url(resource:/res/mathml.css);\n";
close(UA);
}

Просмотреть файл

@ -0,0 +1,395 @@
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Mozilla MathML Project.
*
* The Initial Developer of the Original Code is The University Of
* Queensland. Portions created by The University Of Queensland are
* Copyright (C) 1999 The University Of Queensland. All Rights Reserved.
*
* Contributor(s):
* Roger B. Sidje <rbs@maths.uq.edu.au>
*/
/*******************************************************/
/* namespace for MathML elements */
/*******************************************************/
@namespace mathml url(http://www.w3.org/1998/Math/MathML);
/*******************************************************/
/* <math> - outermost math element */
/*******************************************************/
math, math[mode="inline"] {
/* font-style: normal; */
font-size: inherit;
font-family: CMSY10, CMEX10, Symbol, Times, Lucida Sans Unicode, MT Extra, Math1, Math2, Math3, Math4, Math5, serif;
display: inline;
}
math[mode="display"] {
/* font-style: normal; */
font-size: inherit;
font-family: CMSY10, CMEX10, Symbol, Times, Lucida Sans Unicode, MT Extra, Math1, Math2, Math3, Math4, Math5, serif;
display: block;
text-align: center;
}
/*******************************************************/
/* attributes common to all tags */
/*******************************************************/
[fontstyle="normal"] {
font-style: normal;
}
[fontstyle="italic"] {
font-style: italic;
}
[fontweight="normal"] {
font-weight: normal;
}
[fontweight="bold"] {
font-weight: bold;
}
[fontsize="xx-small"] {
font-size: xx-small;
}
[fontsize="x-small"] {
font-size: x-small;
}
[fontsize="small"], [fontsize="smaller"] {
font-size: smaller;
}
[fontsize="medium"] {
font-size: medium;
}
[fontsize="large"] {
font-size: large;
}
[fontsize="larger"] {
font-size: larger;
}
[fontsize="x-large"] {
font-size: x-large;
}
[fontsize="xx-large"] {
font-size: xx-large;
}
/*******************************************************/
/* tags with generated content */
/*******************************************************/
ms {
display: inline;
}
ms:before {
content: open-quote;
}
ms:after {
content: close-quote;
}
merror {
display: block;
font-family: sans-serif;
font-weight: bold;
white-space: pre;
margin: 1em;
padding: 1em;
border-width: thin;
border-style: inset;
border-color: red;
font-size: 14pt;
background-color: lightyellow;
}
/*******************************************************/
/* mtable and its related tags */
/*******************************************************/
mtable {
display: table;
border-spacing: 0.8em 1.0ex; /* horizontal vertical */
border-collapse: separate;
margin-left: -0.4em;
margin-right: -0.8em;
margin-top: -1.0ex;
margin-bottom: -1.0ex;
/* margin: 0.5ex 0.4em 0.5ex 0.4em; top right bottom left */
box-sizing: border-box;
/* box-sizing: content-box; */
}
mtr {
display: table-row;
text-align: center;
vertical-align: baseline;
}
/* must never set padding in td, th */
mtd {
display: table-cell;
text-align: inherit;
vertical-align: inherit;
}
/***********************/
/* -- mtd: columnalign */
mtd[columnalign="left"] {
text-align: left;
}
mtd[columnalign="right"] {
text-align: right;
}
mtd[columnalign="center"] {
text-align: center;
}
/********************/
/* -- mtd: rowalign */
mtd[rowalign="top"] {
vertical-align: top;
}
mtd[rowalign="bottom"] {
vertical-align: bottom;
}
mtd[rowalign="center"] {
vertical-align: middle;
}
mtd[rowalign="baseline"] {
vertical-align: baseline;
}
/* -- not yet supported --
mtd[rowalign="axis"] {
vertical-align: mathline;
}
*/
/*******************************************************/
/* style switching during frame construction */
/*******************************************************/
/* change of style depending on the context of <mi> */
mi {
font-style: italic;
}
mstyle[fontstyle="normal"] mi {
font-style: normal;
}
:-moz-math-font-style-normal {
font-style: normal;
}
/* change of size induced by changing the scriptlevel */
:-moz-math-font-size-smaller {
font-size: smaller;
}
:-moz-math-font-size-larger {
font-size: larger;
}
/* style used for stretchy symbols */
:-moz-math-font-style-stretchy {
font-style: normal;
font-family: CMSY10, CMEX10, Math4, MT Extra, Symbol /* ,Math1, Math3, Math4, Math5 */ , serif;
/* background-color: #3C6; */
}
:-moz-math-font-style-anonymous {
}
/**************************************************************************/
/* ALL THESE ARE USED FOR DEMO AND DEBUGGING PURPOSES ONLY */
/* They may go away at any time */
/**************************************************************************/
math {
/* font-weight: bold; */
/* font-size: 24pt; */
}
p {
display: block;
}
[background="yellow"] {
background-color: yellow;
}
/*
maction:hover {
outline: thick solid black;
border: 1px dotted black;
}
*/
maction {
background-color: yellow;
/* border: 1px solid black; */
}
maction[actiontype="restyle#background"] {
background-color: #3C6;
border: 1px dotted red;
}
maction[actiontype="restyle#zoom"] {
font-size: 40pt;
}
/*
mmultiscripts {
background-color: yellow;
}
*/
/*
mtext {
color: purple;
border: 1px solid purple;
}
*/
/*
mstyle {
background-color: yellow;
border: 1px solid black;
}
*/
ms {
color: blue;
/*
background-color: yellow;
border: 1px solid black;
*/
}
/*
mpadded {
background-color: yellow;
border: 1px solid black;
}
*/
/*
mspace {
}
*/
/*
msqrt, mroot {
border: 1px dotted red;
background-color: green;
}
*/
/*
mrow {
border: 1px solid black;
font-style: italic;
}
*/
/*
mphantom {
}
*/
/*
mfrac {
background-color: blue;
font-size: smaller;
border: 1px dotted black;
}
*/
/*
msub, msup {
background-color: yellow;
border: 1px dotted black;
font-size: small;
}
*/
/*
mclip {
color: red;
font-style: normal;
border: 1px dashed green;
background-color: yellow;
}
*/
/*
mn {
border: 1px solid black;
}
*/
mi {
color: red;
/* font-style: normal; */
/* border: 1px dashed green; */
/* background-color: yellow; */
}
/*
mo {
font-family: CMEX10, Math1, Math3, Math4;
font-style: normal;
border: 1px solid black;
background-color: lightyellow;
}
*/
/*
munder, mover, munderover {
background-color: yellow;
border: 1px solid black;
}
*/

Просмотреть файл

@ -20,6 +20,9 @@
* Roger B. Sidje <rbs@maths.uq.edu.au>
-->
<!-- handy alias for the MathML namespace -->
<!ENTITY mathml "http://www.w3.org/1998/Math/MathML">
<!-- MathML 1.01 entities - Auto-generated (Total in this list: 2157) -->
<!ENTITY Tab "&#x0009;">