forked from standardebooks/tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add s-104 and t-076 for possible <dfn> candidates in endnotes
- Loading branch information
Showing
6 changed files
with
99 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
m-033 [Manual Review] endnotes.xhtml `endnotes` semantic inflection found, but | ||
no MARC relator `ann` (Annotator). | ||
s-056 [Error] endnotes.xhtml Last `<p>` child of endnote missing backlink. | ||
<li epub:type="endnote"> | ||
<li epub:type="endnote"> | ||
<li epub:type="endnote"> | ||
<li epub:type="endnote"> | ||
<li epub:type="endnote"> | ||
<li epub:type="endnote"> | ||
s-104 [Error] endnotes.xhtml `<i>` element without semantic at beginning of | ||
endnote. Hint: Should this be `<dfn>` instead? | ||
<li epub:type="endnote"> | ||
<p><i>Cho</i> is generally translated as “street.”</p> | ||
</li> | ||
<li epub:type="endnote"> | ||
<p>Some other text.</p> | ||
<p><i>Tsu</i> is an instance of shortening a name in familiar | ||
speech.</p> | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" epub:prefix="z3998: http://www.daisy.org/z3998/2012/vocab/structure/, se: https://standardebooks.org/vocab/1.0" xml:lang="en-GB"> | ||
<head> | ||
<title>Endnotes</title> | ||
<link href="../css/core.css" rel="stylesheet" type="text/css"/> | ||
<link href="../css/local.css" rel="stylesheet" type="text/css"/> | ||
</head> | ||
<body epub:type="backmatter"> | ||
<section id="endnotes" epub:type="endnotes"> | ||
<h2 epub:type="title">Endnotes</h2> | ||
<ol> | ||
<li epub:type="endnote"> | ||
<p><i>Cho</i> is generally translated as “street.”</p> | ||
</li> | ||
<!-- s-104 looks at each <p> within an endnote --> | ||
<li epub:type="endnote"> | ||
<p>Some other text.</p> | ||
<p><i>Tsu</i> is an instance of shortening a name in familiar speech.</p> | ||
</li> | ||
<!-- not relevant for s-104 because the <i> has an epub:type --> | ||
<li epub:type="endnote"> | ||
<p><i epub:type="se:name.vessel.ship">Nautilus</i> is a submarine.</p> | ||
</li> | ||
<!-- not relevant for s-104 because the <i> text is too long --> | ||
<li epub:type="endnote"> | ||
<p><i>012345678901234567891</i> is 21 characters long.</p> | ||
</li> | ||
<!-- not relevant for s-104 because the following text is too short --> | ||
<li epub:type="endnote"> | ||
<p><i>X</i> 12345678901234567.</p> | ||
</li> | ||
<!-- not relevant for s-104 because the <i> is not the first child of the <p> --> | ||
<li epub:type="endnote"> | ||
<p>An <i>X</i> marked the spot.</p> | ||
</li> | ||
</ol> | ||
</section> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
m-033 [Manual Review] endnotes.xhtml `endnotes` semantic inflection found, but | ||
no MARC relator `ann` (Annotator). | ||
s-056 [Error] endnotes.xhtml Last `<p>` child of endnote missing backlink. | ||
<li epub:type="endnote"> | ||
t-076 [Manual Review] endnotes.xhtml `<dfn>` at beginning of endnote should be | ||
set in italics. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@charset "utf-8"; | ||
|
||
/* browser.css defaults this to italic, so override it here */ | ||
dfn{ | ||
font-style: normal; | ||
} |
18 changes: 18 additions & 0 deletions
18
tests/lint/typography/t-076/in/src/epub/text/endnotes.xhtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" epub:prefix="z3998: http://www.daisy.org/z3998/2012/vocab/structure/, se: https://standardebooks.org/vocab/1.0" xml:lang="en-GB"> | ||
<head> | ||
<title>Endnotes</title> | ||
<link href="../css/core.css" rel="stylesheet" type="text/css"/> | ||
<link href="../css/local.css" rel="stylesheet" type="text/css"/> | ||
</head> | ||
<body epub:type="backmatter"> | ||
<section id="endnotes" epub:type="endnotes"> | ||
<h2 epub:type="title">Endnotes</h2> | ||
<ol> | ||
<li epub:type="endnote"> | ||
<p><dfn>Cho</dfn> is generally translated as “street.”</p> | ||
</li> | ||
</ol> | ||
</section> | ||
</body> | ||
</html> |