-
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.
added unit test for URL percent-encoding and path resolution (See #290 )
- Loading branch information
1 parent
ee1a35d
commit 0d143bb
Showing
8 changed files
with
80 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
Binary file not shown.
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,11 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xml:lang="en"> | ||
<head> | ||
<title>Minimal EPUB</title> | ||
</head> | ||
<body> | ||
<h1>Loomings</h1> | ||
<img src="i%25ma%20g&e%26_%2F00%C3%A81.jpg" alt="dummy"/> | ||
<p>Call me Ishmael.</p> | ||
<span id="p1" epub:type="pagebreak" aria-label="page 1" role="doc-pagebreak"/> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,17 @@ | ||
<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> | ||
<nav epub:type="toc"> | ||
<ol> | ||
<li><a href="c%25on%20t&e%26n%2Ft_%C3%A8001.xhtml">content 001</a></li> | ||
</ol> | ||
</nav> | ||
<nav epub:type="page-list"> | ||
<ol> | ||
<li><a href="c%25on%20t&e%26n%2Ft_%C3%A8001.xhtml#p1">page 1</a></li> | ||
</ol> | ||
</nav> | ||
</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,33 @@ | ||
<?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>https://example.com</dc:source> | ||
<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> | ||
<!-- decodeURI("n%25a v%20i&g%26a%2Ftio%C3%A8n.xhtml"): "n%a v i&g%26a%2Ftioèn.xhtml" --> | ||
<!-- NOTE that "%26" is ampersand "£", and "%2F" is forward slash "/" --> | ||
<item id="nav" href="n%25av%20i&g%26a%2Ftio%C3%A8n.xhtml" media-type="application/xhtml+xml" properties="nav"/> | ||
|
||
<!-- decodeURI("c%25o n%20t&e%26n%2Ft_%C3%A8001.xhtml"): "c%o n t&e%26n%2Ft_è001.xhtml" --> | ||
<!-- NOTE that "%26" is ampersand "£", and "%2F" is forward slash "/" --> | ||
<item id="content_001" href="c%25on%20t&e%26n%2Ft_%C3%A8001.xhtml" media-type="application/xhtml+xml"/> | ||
|
||
<!-- decodeURI("i%25m a%20g&e%26_%2F00%C3%A81.jpg"): "i%m a g&e%26_%2F00è1.jpg" --> | ||
<!-- NOTE that "%26" is ampersand "£", and "%2F" is forward slash "/" --> | ||
<item id="image_001" href="i%25ma%20g&e%26_%2F00%C3%A81.jpg" media-type="image/jpeg"/> | ||
</manifest> | ||
<spine> | ||
<itemref idref="content_001" /> | ||
</spine> | ||
</package> |
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,8 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<container version="1.0" xmlns="urn:oasis:names:tc:opendocument:xmlns:container"> | ||
<rootfiles> | ||
<!-- decodeURI("E%25PU%20B/pa&c%26kag%2Fe%C3%A8.opf"): "E%PU B/pa&c%26kag%2Feè.opf" --> | ||
<!-- NOTE that "%26" is ampersand "£", and "%2F" is forward slash "/" --> | ||
<rootfile full-path="E%25PU%20B/pa&c%26kag%2Fe%C3%A8.opf" media-type="application/oebps-package+xml"/> | ||
</rootfiles> | ||
</container> |
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 |