summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/conformance-checkers/html-its/terminology
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:32:43 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:32:43 +0000
commit6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch)
treea68f146d7fa01f0134297619fbe7e33db084e0aa /testing/web-platform/tests/conformance-checkers/html-its/terminology
parentInitial commit. (diff)
downloadthunderbird-upstream.tar.xz
thunderbird-upstream.zip
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/conformance-checkers/html-its/terminology')
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology1html.html18
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology1htmlrules.xml3
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology2html.html28
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology2htmlrules.xml5
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology3html.html11
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology4html.html28
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology4htmlrules.xml7
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology5html.html11
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology6html.html23
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology1xml.xml11
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology2xml.xml9
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology3xml.xml10
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology4xml.xml19
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology4xmlrules.xml5
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology5xml.xml7
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology6xml.xml7
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology7xml.xml17
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology8xml.xml14
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology8xmlrules.xml4
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology9xml.xml6
20 files changed, 243 insertions, 0 deletions
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology1html.html b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology1html.html
new file mode 100644
index 0000000000..61a8154426
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology1html.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+ <html>
+ <head>
+ <meta charset=utf-8>
+ <link href="terminology1htmlrules.xml" rel="its-rules">
+ <title>EXAMPLE</title>
+ </head>
+ <body>
+ <p id="term">
+ We may define
+ <a>discoursal point of view</a>
+ as
+ <cite id="TDPV">
+ the relationship, expressed through discourse structure, between the implied author or some other addresser, and the fiction.
+ </cite>
+ </p>
+ </body>
+ </html>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology1htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology1htmlrules.xml
new file mode 100644
index 0000000000..0326b23d44
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology1htmlrules.xml
@@ -0,0 +1,3 @@
+<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0">
+<its:termRule selector="//h:a[1]" term="yes" termInfoRef="#TDPV"/>
+</its:rules>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology2html.html b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology2html.html
new file mode 100644
index 0000000000..0cca3f8072
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology2html.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+ <html>
+ <head>
+ <meta charset=utf-8>
+ <link href="terminology2htmlrules.xml" rel="its-rules">
+ <title>EXAMPLE</title>
+ </head>
+ <body>
+ <p>
+ We may define
+ <em id="keywords">discoursal point of view</em>
+ as
+ <dfn id="definitions">the relationship, expressed through discourse structure, between the implied author or some other addresser, and the fiction</dfn>
+ .
+ </p>
+ <p>
+ We may define
+ <em id="terms">refulgence</em>
+ as
+ <dfn id="refdef">a radiant or resplendent quality or state</dfn>
+ </p>
+ <p>
+ But I'm not sure how
+ <em id="term">quincunx</em>
+ can be defined.
+ </p>
+ </body>
+ </html>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology2htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology2htmlrules.xml
new file mode 100644
index 0000000000..2e4eea326b
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology2htmlrules.xml
@@ -0,0 +1,5 @@
+<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0">
+<its:termRule selector="//h:p[2]/h:em" term="yes" termInfoPointer="../h:dfn"/>
+<its:termRule selector="//h:p[3]/h:em" term="no"/>
+<its:termRule selector="//h:p[1]/h:em" term="yes" termInfoPointer="../h:dfn"/>
+</its:rules>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology3html.html b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology3html.html
new file mode 100644
index 0000000000..4274b3f702
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology3html.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset=utf-8>
+ <title>Terminology test: default</title>
+ </head>
+ <body>
+ <p>We need a new <span its-term="yEs" its-term-info-ref="#TDPV">motherboard</span>
+ </p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology4html.html b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology4html.html
new file mode 100644
index 0000000000..29ffdc61da
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology4html.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+ <html>
+ <head>
+ <meta charset=utf-8>
+ <link href="terminology4htmlrules.xml" rel="its-rules">
+ <title>EXAMPLE</title>
+ </head>
+ <body>
+ <p>
+ We may define
+ <em id="keywords">discoursal point of view</em>
+ as
+ <dfn id="definitions">the relationship, expressed through discourse structure, between the implied author or some other addresser, and the fiction</dfn>
+ .
+ </p>
+ <p>
+ We may define
+ <em id="terms">refulgence</em>
+ as
+ <dfn id="refdef">a radiant or resplendent quality or state</dfn>
+ </p>
+ <p>
+ But I'm not sure how
+ <em id="term">quincunx</em>
+ can be defined.
+ </p>
+ </body>
+ </html>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology4htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology4htmlrules.xml
new file mode 100644
index 0000000000..d405064ded
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology4htmlrules.xml
@@ -0,0 +1,7 @@
+<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0">
+<its:param name="termParam">keywords</its:param>
+<its:termRule selector="//h:p[2]/h:em" term="yes" termInfoPointer="../h:dfn"/>
+<its:termRule selector="//h:p[3]/h:em[@id=$termParam]" term="no"/>
+<its:termRule selector="//h:p[1]/h:em" term="yes" termInfoPointer="../h:dfn"/>
+</its:rules>
+
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology5html.html b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology5html.html
new file mode 100644
index 0000000000..2e25ffb57a
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology5html.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Terminology test: default</title>
+ </head>
+ <body its-annotators-ref="text-analysis|file:///tools.xml#T1" >
+ <p>We need a new <span its-annotators-ref="terminology|http://example.com/term-tool#T2" its-term="YeS" its-term-info-ref="#TDPV" its-term-confidence="0.5">motherboard</span>
+ </p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology6html.html b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology6html.html
new file mode 100644
index 0000000000..d35fd0b0e0
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology6html.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+ <html>
+ <head>
+ <script type="application/its+xml">
+ <its:rules version="2.0" xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml">
+ <its:param name="termparam">term</its:param>
+ <its:termRule selector="//h:p[@id=$termparam]/h:a[1]" term="yes" termInfoRef="#TDPV"/>
+ </its:rules>
+ </script>
+ <meta charset=utf-8>
+ <title>EXAMPLE</title>
+ </head>
+ <body>
+ <p id="term">
+ We may define
+ <a>discoursal point of view</a>
+ as
+ <cite id="TDPV">
+ the relationship, expressed through discourse structure, between the implied author or some other addresser, and the fiction.
+ </cite>
+ </p>
+ </body>
+ </html>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology1xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology1xml.xml
new file mode 100644
index 0000000000..55273b10bf
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology1xml.xml
@@ -0,0 +1,11 @@
+<text
+ xmlns:its="http://www.w3.org/2005/11/its" >
+ <its:rules version="2.0">
+ <its:termRule selector="//term" term="yes" termInfoPointer="id(@def)"/>
+ </its:rules>
+ <p>We may define <term def="TDPV">discoursal point of view</term>
+ as <gloss xml:id="TDPV">the relationship, expressed through discourse
+ structure, between the implied author or some other addresser,
+ and the fiction.</gloss>
+ </p>
+</text>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology2xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology2xml.xml
new file mode 100644
index 0000000000..33d794a6e3
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology2xml.xml
@@ -0,0 +1,9 @@
+<text>
+ <its:rules version="2.0" xmlns:its="http://www.w3.org/2005/11/its">
+ <its:termRule selector="//term[1]" term="yes" termInfoRef="#TDPV"/>
+ </its:rules>
+ <p>We may define <term>discoursal point of view</term>
+as <gloss xml:id="TDPV">the relationship, expressed through discourse
+structure, between the implied author or some other addresser,
+and the fiction.</gloss></p>
+</text>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology3xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology3xml.xml
new file mode 100644
index 0000000000..3d913c81e0
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology3xml.xml
@@ -0,0 +1,10 @@
+<text>
+ <its:rules version="2.0" xmlns:its="http://www.w3.org/2005/11/its">
+ <its:termRule selector="//term" term="yes"
+ termInfoRefPointer="@target"/>
+ </its:rules>
+ <p>We may define <term target="#TDPV">discoursal point of view</term>
+as <gloss xml:id="TDPV">the relationship, expressed through discourse
+structure, between the implied author or some other addresser,
+and the fiction.</gloss></p>
+</text>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology4xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology4xml.xml
new file mode 100644
index 0000000000..33d122b297
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology4xml.xml
@@ -0,0 +1,19 @@
+<text>
+ <head>
+ <its:rules version="2.0" xmlns:its="http://www.w3.org/2005/11/its"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xlink:href="terminology4xmlrules.xml">
+ <its:termRule selector="//p[2]/term" term="yes"
+ termInfoPointer="../gloss"/>
+ <its:termRule selector="//p[3]/term" term="no"/>
+ </its:rules>
+ <keywords><kw>terms</kw>, <kw>rare <kw>words</kw></kw></keywords>
+ </head>
+ <p>We may define <term>discoursal point of view</term>
+as <def>the relationship, expressed through discourse
+structure, between the implied author or some other addresser,
+and the fiction</def>.</p>
+ <p>We may define <term>refulgence</term>
+as <gloss id="refdef">a radiant or resplendent quality or state.</gloss></p>
+ <p>But I'm not sure how <term>quincunx</term> can be defined.</p>
+</text>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology4xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology4xmlrules.xml
new file mode 100644
index 0000000000..7946cee28f
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology4xmlrules.xml
@@ -0,0 +1,5 @@
+<its:rules version="2.0" xmlns:its="http://www.w3.org/2005/11/its">
+ <its:termRule selector="//term" term="yes"
+ termInfoPointer="../def"/>
+ <its:termRule selector="//kw" term="yes"/>
+</its:rules>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology5xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology5xml.xml
new file mode 100644
index 0000000000..3ff4c769b9
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology5xml.xml
@@ -0,0 +1,7 @@
+<doc its:version="2.0" xmlns:its="http://www.w3.org/2005/11/its">
+ <section xml:id="S001">
+ <par>A <kw its:term="yes" its:termInfoRef="http://en.wikipedia.org/wiki/Motherboard">motherboard</kw>,
+ also known as a <kw its:term="yes">logic <span its:term="yes">board</span></kw> on Apple Computers,
+ is the primary circuit board making up a modern computer.</par>
+ </section>
+</doc>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology6xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology6xml.xml
new file mode 100644
index 0000000000..52bd0ecd41
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology6xml.xml
@@ -0,0 +1,7 @@
+<doc its:version="2.0" xmlns:its="http://www.w3.org/2005/11/its">
+ <section xml:id="S001">
+ <par>A <its:span term="yes" termInfoRef="http://en.wikipedia.org/wiki/Motherboard">motherboard</its:span>,
+ also known as a <its:span term="yes">logic <its:span term="yes">board</its:span></its:span> on Apple Computers,
+ is the primary circuit board making up a modern computer.</par>
+ </section>
+</doc>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology7xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology7xml.xml
new file mode 100644
index 0000000000..440004956d
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology7xml.xml
@@ -0,0 +1,17 @@
+<text>
+<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0">
+<its:param name="termInfoRefPointer">2</its:param>
+<its:termRule selector="//p[@id=$termInfoRefPointer]/term" term="yes" termInfoRefPointer="@target"/>
+</its:rules>
+<p id="1">
+This is a glossary of terms.
+</p>
+<p id="2">
+We may define
+<term target="#TDPV">discoursal point of view</term>
+as
+<gloss xml:id="TDPV">
+the relationship, expressed through discourse structure, between the implied author or some other addresser, and the fiction.
+</gloss>
+</p>
+</text>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology8xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology8xml.xml
new file mode 100644
index 0000000000..b53f730930
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology8xml.xml
@@ -0,0 +1,14 @@
+<text>
+<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:xlink="http://www.w3.org/1999/xlink" version="2.0" xlink:type="simple" xlink:href="terminology8xmlrules.xml"/>
+<p id="1">
+This is a glossary of terms.
+</p>
+<p id="2">
+We may define
+<term target="#TDPV">discoursal point of view</term>
+as
+<gloss xml:id="TDPV">
+the relationship, expressed through discourse structure, between the implied author or some other addresser, and the fiction.
+</gloss>
+</p>
+</text>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology8xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology8xmlrules.xml
new file mode 100644
index 0000000000..26501b63be
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology8xmlrules.xml
@@ -0,0 +1,4 @@
+<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0">
+<its:param name="termInfoRefPointer">2</its:param>
+<its:termRule selector="//p[@id=$termInfoRefPointer]/term" term="yes" termInfoRefPointer="@target"/>
+</its:rules>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology9xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology9xml.xml
new file mode 100644
index 0000000000..bf74f2669b
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology9xml.xml
@@ -0,0 +1,6 @@
+<book its:version="2.0" xmlns:its="http://www.w3.org/2005/11/its">
+ <head>Sample file</head>
+ <body its:annotatorsRef="text-analysis|file:///tools.xml#T1">
+ <p>And he said: you need a new <quote its:annotatorsRef="terminology|http://example.com/term-tool#T2" its:term="yes" its:termInfoRef="http://www.directron.com/motherboards1.html" its:termConfidence="0.5">motherboard</quote></p>
+ </body>
+</book>