From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/mathml/element/semantics/index.html | 125 +++++++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 files/ja/web/mathml/element/semantics/index.html (limited to 'files/ja/web/mathml/element/semantics') diff --git a/files/ja/web/mathml/element/semantics/index.html b/files/ja/web/mathml/element/semantics/index.html new file mode 100644 index 0000000000..825adc03a4 --- /dev/null +++ b/files/ja/web/mathml/element/semantics/index.html @@ -0,0 +1,125 @@ +--- +title: +slug: Web/MathML/Element/semantics +tags: + - MathML + - MathML Reference + - 'MathML:Element' +translation_of: Web/MathML/Element/semantics +--- +
{{MathMLRef}}
+ +

MathMLにおいては,数学をタグ付けるには二つの方法があり,表示 (presentation)MathMLが数式の配置を制御するのに用いられる一方,内容 (content)MathMLは数式の論理的意味の符号化及び数式処理系 (computer algebra system)に適するような数式の変換を念頭に設計されています。MathML要素<semantics><annotation>及び<annotation-xml>を用いることで,表示MathMLと内容MathMLを組み合せ,数式の配置情報及び論理的意味の双方を記述できます。

+ +

<semantics>要素は注釈に関連したコンテナ要素として振舞い,子要素を持たなくてはなりません(そうでない場合,無効なタグ付けとして誤り報告されます)。<annotation>要素には非XML形式の論理的情報が含まれ,対して<annotaiton-xml>要素にはXML形式の情報(例: 内容MathMLやOpenMath)が含まれます。

+ +

<semantics>要素における可視子要素を決定する規則を次に挙げます。

+ + + +

属性

+ +

<annotation>及び<annotation-xml>要素には次の属性が設定できます。

+ +
+
definitionURL
+
The location of the annotation key symbol.
+
encoding
+
当注釈における論理的情報の符号化方法(例: 「MathML-Content」,「MathML-Presentation」,「application/openmath+xml」,「image/png」)。
+
cd
+
The content dictionary that contains the annotation key symbol.
+
name
+
The name of the annotation key symbol.
+
src
+
論理的情報の為の外部資源の場所。
+
+ +

+ +
<math>
+  <semantics>
+
+    <!-- 表示MathML -->
+    <mrow>
+      <msup>
+        <mi>x</mi>
+        <mn>2</mn>
+      </msup>
+      <mo>+</mo>
+      <mi>y</mi>
+    </mrow>
+
+    <!-- 内容MathML -->
+    <annotation-xml encoding="MathML-Content">
+      <apply>
+        <plus/>
+        <apply>
+          <power/>
+          <ci>x</ci>
+          <cn type="integer">2</cn>
+        </apply>
+        <ci>y</ci>
+      </apply>
+    </annotation-xml>
+
+    <!-- 画像注釈 -->
+    <annotation encoding="image/png" src="some/path/formula.png"/>
+
+    <!-- TeX形式の注釈 -->
+    <annotation encoding="application/x-tex">
+      x^{2} + y
+    </annotation>
+
+  </semantics>
+</math>
+ +

仕様

+ + + + + + + + + + + + + + + + + + + + + +
仕様状態備考
{{ SpecName('MathML3', 'chapter5.html', 'Mixing Markup Languages for Mathematical Expressions') }}{{ Spec2('MathML3') }}現在の仕様
{{ SpecName('MathML2', 'chapter5.html', 'Combining Presentation and Content Markup ') }}{{ Spec2('MathML2') }}初期の仕様
+ +

ブラウザー互換機

+ + + +

{{Compat("mathml.elements.semantics")}}

+ +

Gecko固有の注記

+ + -- cgit v1.2.3-54-g00ecf