-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: page break role / page list errors were reported multiple times
- Loading branch information
1 parent
fdcb568
commit ea6171a
Showing
10 changed files
with
138 additions
and
3 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
13 changes: 13 additions & 0 deletions
13
tests/data/epubrules-pagelist-missing-pagebreak-target/EPUB/content_001.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,13 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xml:lang="en"> | ||
<head> | ||
<title>Minimal EPUB 1</title> | ||
</head> | ||
<body> | ||
<h1>Loomings</h1> | ||
<p>Call me Ishmael.</p> | ||
<span id="p1" epub:typexx="pagebreak" rolexx="doc-pagebreak" aria-label="p1"/> | ||
<section id="sec"><p>txt1</p><p id="useless">txt2 | ||
<span id="p2" epub:type="pagebreak" role="doc-pagebreak" aria-label="p2">p2</span> | ||
txt3</p><p>txt4</p></section> | ||
</body> | ||
</html> |
15 changes: 15 additions & 0 deletions
15
tests/data/epubrules-pagelist-missing-pagebreak-target/EPUB/content_002.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,15 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xml:lang="en"> | ||
<head> | ||
<title>Minimal EPUB 2</title> | ||
</head> | ||
<body> | ||
<h1>Other</h1> | ||
<p>Bla.</p> | ||
<section id="sec"><p>txt1</p><p id="useless">txt2 | ||
<span id="p3" epub:type="pagebreak" role="doc-pagebreak" aria-label="p3">p3</span> | ||
txt3</p><p>txt4</p></section> | ||
<span id="p4" epub:type="pagebreak" role="doc-pagebreak" aria-label="p4"/> | ||
|
||
<span id="p5" epub:type="pagebreak" role="doc-pagebreak" aria-label="p5"> MISSING p5 in pagelist</span> | ||
</body> | ||
</html> |
40 changes: 40 additions & 0 deletions
40
tests/data/epubrules-pagelist-missing-pagebreak-target/EPUB/nav.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,40 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xml:lang="en"> | ||
<head> | ||
<title>Minimal Nav</title> | ||
</head> | ||
<body> | ||
|
||
<a href="dummyHREF1">DUMMY 1</a> | ||
|
||
<nav epub:type="toc" role="doc-toc"> | ||
<ol> | ||
<li><a href="./content_001.xhtml">content 001</a></li> | ||
<li><ol> | ||
<li><a href="content_001.xhtml#p1">page 1</a></li> | ||
<li><a href="content_001.xhtml#sec">section</a></li> | ||
<li><a href="content_001.xhtml#p2">page 2</a></li> | ||
</ol> | ||
</li> | ||
<li><a href="../EPUB/content_002.xhtml">content 002</a></li> | ||
<li><ol> | ||
<li><a href="content_002.xhtml#sec">section</a></li> | ||
<li><a href="../EPUB/./content_002.xhtml#p3">page 3</a></li> | ||
<li><a href="content_002.xhtml#p4">page 4</a></li> | ||
</ol> | ||
</li> | ||
</ol> | ||
</nav> | ||
<nav epub:type="page-list" role="doc-pagelist"> | ||
<ol> | ||
<li><a href="content_001.xhtml#p1">p1</a></li> | ||
<li><a href="content_001.xhtml#p2">p2</a></li> | ||
<li><a href="content_002.xhtml#p3">p3</a></li> | ||
<li><a href="content_002.xhtml#p4">p4</a></li> | ||
<li><a href="content_002.xhtml#p5">p5</a></li> | ||
</ol> | ||
</nav> | ||
|
||
<a href="dummyHREF2">DUMMY2</a> | ||
|
||
</body> | ||
</html> |
30 changes: 30 additions & 0 deletions
30
tests/data/epubrules-pagelist-missing-pagebreak-target/EPUB/package.opf
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,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<package xmlns="http://www.idpf.org/2007/opf" version="3.0" xml:lang="en" unique-identifier="uid"> | ||
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/"> | ||
<dc:title id="title">Minimal EPUB 3.0</dc:title> | ||
<dc:language>en</dc:language> | ||
<dc:identifier id="uid">NOID</dc:identifier> | ||
|
||
<dc:source id="pg-src">urn:isbn:9781234567891</dc:source> | ||
<meta property="source-of" refines="#pg-src">pagination</meta> | ||
<!-- meta property="pageBreakSource">urn:isbn:9781234567891</meta --> | ||
|
||
<meta property="dcterms:modified">2017-01-01T00:00:01Z</meta> | ||
<meta property="schema:accessibilityFeature">structuralNavigation</meta> | ||
<meta property="schema:accessibilitySummary">everything OK!</meta> | ||
<meta property="schema:accessibilityHazard">noFlashingHazard</meta> | ||
<meta property="schema:accessibilityHazard">noSoundHazard</meta> | ||
<meta property="schema:accessibilityHazard">noMotionSimulationHazard</meta> | ||
<meta property="schema:accessMode">textual</meta> | ||
<meta property="schema:accessModeSufficient">textual</meta> | ||
</metadata> | ||
<manifest> | ||
<item id="nav" href="nav.xhtml" media-type="application/xhtml+xml" properties="nav"/> | ||
<item id="content_001" href="content_001.xhtml" media-type="application/xhtml+xml"/> | ||
<item id="content_002" href="content_002.xhtml" media-type="application/xhtml+xml"/> | ||
</manifest> | ||
<spine> | ||
<itemref idref="content_001" /> | ||
<itemref idref="content_002" /> | ||
</spine> | ||
</package> |
6 changes: 6 additions & 0 deletions
6
tests/data/epubrules-pagelist-missing-pagebreak-target/META-INF/container.xml
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 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<container version="1.0" xmlns="urn:oasis:names:tc:opendocument:xmlns:container"> | ||
<rootfiles> | ||
<rootfile full-path="EPUB/package.opf" media-type="application/oebps-package+xml"/> | ||
</rootfiles> | ||
</container> |
1 change: 1 addition & 0 deletions
1
tests/data/epubrules-pagelist-missing-pagebreak-target/mimetype
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 @@ | ||
application/epub+zip |
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