From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- files/pt-br/web/mathml/element/index.html | 144 ++++++++++++ files/pt-br/web/mathml/element/math/index.html | 299 +++++++++++++++++++++++++ files/pt-br/web/mathml/exemplos/index.html | 20 ++ files/pt-br/web/mathml/index.html | 122 ++++++++++ 4 files changed, 585 insertions(+) create mode 100644 files/pt-br/web/mathml/element/index.html create mode 100644 files/pt-br/web/mathml/element/math/index.html create mode 100644 files/pt-br/web/mathml/exemplos/index.html create mode 100644 files/pt-br/web/mathml/index.html (limited to 'files/pt-br/web/mathml') diff --git a/files/pt-br/web/mathml/element/index.html b/files/pt-br/web/mathml/element/index.html new file mode 100644 index 0000000000..344c578087 --- /dev/null +++ b/files/pt-br/web/mathml/element/index.html @@ -0,0 +1,144 @@ +--- +title: MathML element reference +slug: Web/MathML/Element +tags: + - MathML + - MathML Reference + - NeedsTranslation + - TopicStub +translation_of: Web/MathML/Element +--- +

Essa é uma lista alfabética dos elementos de apresentação de MathML.

+ +

O termo marcação de apresentação é usado para descrever a estrutura da notação matemática, enquanto que marcação de conteúdo fornece um significado matemático básico e não é feito para ser renderizado pelo parser de MathML (ver {{ bug(276028)}}). Se você desejar aprender mais sobre marcação de conteúdo considere o Capítulo 4 na especificação do MathML 3.

+ +
+

math

+ + + +

A

+ + + +

E

+ + + +

F

+ + + +

G

+ + + +

I

+ + + +

L

+ + + +

M

+ + + +

N

+ + + +

O

+ + + +

P

+ + + +

R

+ + + +

S

+ + + +

T

+ + + +

U

+ + + +

Other elements

+ + +
+ +

Ver também

+ + diff --git a/files/pt-br/web/mathml/element/math/index.html b/files/pt-br/web/mathml/element/math/index.html new file mode 100644 index 0000000000..b778ed54be --- /dev/null +++ b/files/pt-br/web/mathml/element/math/index.html @@ -0,0 +1,299 @@ +--- +title: +slug: Web/MathML/Element/math +translation_of: Web/MathML/Element/math +--- +

{{MathMLRef()}}

+

The top-level element in MathML is <math>. Every valid MathML instance must be wrapped in <math> tags. In addition you must not nest a second <math> element in another, but you can have an arbitrary number of other child elements in it.

+

Attributes

+

In addition to the following attributes, the <math> element accepts any attributes of the {{ MathMLElement("mstyle") }} element.

+
+
+ class, id, style
+
+ Provided for use with stylesheets.
+
+ dir
+
+  Overall directionality of formulas. Possible values are either ltr (left to right) or rtl (right to left).
+
+ href
+
+ Used to set a hyperlink to a specified URI.
+
+ mathbackground
+
+ The background color. You can use #rgb, #rrggbb and HTML color names.
+
+ mathcolor
+
+ The text color. You can use #rgb, #rrggbb and HTML color names.
+
+ display
+
+ This enumerated attribute specifies how the enclosed MathML markup should be rendered. It can have one of the following values: +
    +
  • block, which means that this element will be displayed outside the current span of text, as a block that can be positioned anywhere without changing the meaning of the text;
  • +
  • inline, which means that this element will be displayed inside the current span of text, and cannot be moved out of it without changing the meaning of that text.
  • +
+

If not present, its default value is inline.

+
+
+ mode {{ deprecated_inline() }}
+
+ Deprecated in favor of the display attribute.
+ Possible values are: display (which has the same effect as display="block") and inline.
+
+ overflow
+
+ Specifies how an expression behaves if it is too long to fit in the allowed width.
+ Possible values are: linebreak (default), scroll, elide, truncate, scale.
+
+

Examples

+

Theorem of Pythagoras

+

HTML5 notation

+
<!DOCTYPE html>
+<html>
+  <head>
+    <title>MathML in HTML5</title>
+  </head>
+  <body>
+
+  <math>
+    <mrow>
+      <mrow>
+        <msup>
+          <mi>a</mi>
+          <mn>2</mn>
+        </msup>
+        <mo>+</mo>
+        <msup>
+          <mi>b</mi>
+          <mn>2</mn>
+        </msup>
+      </mrow>
+      <mo>=</mo>
+      <msup>
+        <mi>c</mi>
+        <mn>2</mn>
+      </msup>
+    </mrow>
+  </math>
+
+  </body>
+</html>
+
+

XHTML notation

+
<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>MathML in XHTML</title>
+</head>
+<body>
+
+  <math xmlns="http://www.w3.org/1998/Math/MathML">
+    <mrow>
+      <mrow>
+        <msup>
+          <mi>a</mi>
+          <mn>2</mn>
+        </msup>
+        <mo>+</mo>
+        <msup>
+          <mi>b</mi>
+          <mn>2</mn>
+        </msup>
+      </mrow>
+      <mo>=</mo>
+      <msup>
+        <mi>c</mi>
+        <mn>2</mn>
+      </msup>
+    </mrow>
+  </math>
+
+</body>
+</html>
+

Notes: XHTML documents with MathML must be served as application/xhtml+xml. You can achieve that easily by adding the .xhtml extension to your local files. For Apache servers you can configure your .htaccess file to map extensions to the correct Mime type. Since you notate your MathML in an XML document, also be sure you write a well-formed XML document.

+

Browser compatibility

+

{{ CompatibilityTable() }}

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
XHTML notation{{ CompatNo() }} (24 only){{ CompatGeckoDesktop("1.0") }}{{ CompatNo() }}9.55.1
HTML5 notation{{ CompatNo() }} (24 only){{ CompatGeckoDesktop("2.0") }}{{ CompatNo() }}{{ CompatNo() }}5.1
dir{{ CompatNo() }}{{ CompatGeckoDesktop("12.0") }}{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }}
href{{ CompatNo() }} {{webkitbug(85733)}}{{ CompatGeckoDesktop("7.0") }}{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }} {{webkitbug(85733)}}
mathbackground{{ CompatNo() }} (24 only){{ CompatGeckoDesktop("2.0") }}{{ CompatNo() }}{{ CompatNo() }}5.1
mathcolor{{ CompatNo() }} (24 only){{ CompatGeckoDesktop("2.0") }}{{ CompatNo() }}{{ CompatNo() }}5.1
overflow{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }}
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidChrome for AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
XHTML notation{{ CompatNo() }}{{ CompatNo() }}{{ CompatGeckoMobile("1.0") }}{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }}
HTML5 notation{{ CompatNo() }}{{ CompatNo() }}{{ CompatGeckoMobile("2.0") }}{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }}
dir{{ CompatNo() }}{{ CompatNo() }}{{ CompatGeckoMobile("12.0") }}{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }}
href{{ CompatNo() }}{{ CompatNo() }}{{ CompatGeckoMobile("7.0") }}{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }}
mathbackground{{ CompatNo() }}{{ CompatNo() }}{{ CompatGeckoMobile("2.0") }}{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }}
mathcolor{{ CompatNo() }}{{ CompatNo() }}{{ CompatGeckoMobile("2.0") }}{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }}
overflow{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }}
+
+

Gecko-specific notes

+

Gecko 7.0 {{ geckoRelease("7.0") }} introduced support for accepting all MathML attributes on the top-level math element (i.e. the same behavior as a {{ MathMLElement("mstyle") }} element). However, the displaystyle attribute was not taken into account and has been added in Gecko 8.0 {{ geckoRelease("8.0") }}.

+

A textual fall-back (alttext) or referring to an alternative image using the attributes altimg, altimg-width, altimg-height or altimg-valign is currently not implemented in Gecko.

+

Specifications

+ + + + + + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{ SpecName('MathML3', 'chapter2.html#interf.toplevel', 'The Top-Level math Element') }}{{ Spec2('MathML3') }}Current specification
{{ SpecName('MathML2', 'chapter7.html#interf.toplevel', 'The Top-Level math Element') }}{{ Spec2('MathML2') }}Initial specification
+

See also

+ diff --git a/files/pt-br/web/mathml/exemplos/index.html b/files/pt-br/web/mathml/exemplos/index.html new file mode 100644 index 0000000000..ac83b9e48a --- /dev/null +++ b/files/pt-br/web/mathml/exemplos/index.html @@ -0,0 +1,20 @@ +--- +title: Exemplos +slug: Web/MathML/Exemplos +translation_of: Web/MathML/Examples +--- +

Abaixo você irá encontrar alguns exemplos que irá ajudá-lo a entender como utilizar MathML para apresentar conceitos matemáticos complexos na Web.

+
+
+ Teorema de Pitágoras
+
+ Pequeno exemplo mostrando a demostração do Teorema de Pitágoras.
+
+ Solução da equação do segundo grau
+
+ Linhas gerais de como descobrir a solução para equações do segundo grau.
+
+ Testes para MathML
+
+ Grande conjunto de tests para MathML.
+
diff --git a/files/pt-br/web/mathml/index.html b/files/pt-br/web/mathml/index.html new file mode 100644 index 0000000000..5472ac2963 --- /dev/null +++ b/files/pt-br/web/mathml/index.html @@ -0,0 +1,122 @@ +--- +title: MathML +slug: Web/MathML +tags: + - Landing + - MathML + - NeedsTranslation + - Reference + - Référence(2) + - TopicStub + - XML +translation_of: Web/MathML +--- +

Mathematical Markup Language (MathML) é uma linguagem de marcação baseada em XML para descrever notações matemáticas e capturar tanto a sua estrutura quanto seu conteúdo. Aqui você encontrará links para a documentação e exemplos, bem como ferramentas para o seu trabalho com esta poderosa tecnologia. Para uma visão rápida, veja os slides da feira de inovação do Mozilla Summit 2013.

+ +
+
+

Referências de MathML

+ +
+
Referência de elementos de MathML
+
Detalhes sobre cada elemento de MathML e informações sobre compatibilidade para navegadores desktop e móveis.
+
Referência de atributos de MathML
+
Informações sobre atributos de MathML que modificam a aparência e o comportamento dos elementos.
+
Exemplos de MathML
+
Amostras e exemplos de MathML para ajudá-lo a compreender como a linguagem funciona.
+
Escrevendo em MathML
+
Dicas e sugestões para escrever em MathML, incluindo sugestões de editores MathML e como capturar suas saídas para integrar em conteúdos Web.
+
+ +

Visualizar todos...

+
+ +
+

Obtendo ajuda da comunidade

+ + + +

Ferramentas

+ + + + + + +
+
+ +

Compatibilidade dos Browsers

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
RecursoChromeFirefox (Gecko)Internet ExplorerOperaSafari
Suporte básico{{CompatUnknown}}{{CompatGeckoDesktop("1.8")}}Com PlugIn(s){{CompatUnknown}}{{CompatUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + +
RecursoAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Suporte básico{{CompatUnknown}}{{CompatGeckoMobile("1.8")}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
+
+ +
+

Nota sobre o Gecko

+ +

Iniciando com o Firefox 1.5, a maior parte das marcações de apresentação da Recomendação W3C MathML 2.0 é suportada em todas as plataformas. O suporte a MathML 3 está em processo.

+
-- cgit v1.2.3-54-g00ecf