File tree Expand file tree Collapse file tree 15 files changed +125
-0
lines changed
main/java/com/adobe/epubcheck/css Expand file tree Collapse file tree 15 files changed +125
-0
lines changed Original file line number Diff line number Diff line change @@ -324,6 +324,7 @@ else if (propertyName.equals("src"))
324
324
URL fontURL = parsedURLs .get (((CssURI ) construct ).toUriString ());
325
325
if (fontURL != null && context .resourceRegistry .isPresent ())
326
326
{
327
+ fontURI = context .relativize (fontURL );
327
328
// check font mimetypes
328
329
String fontMimeType = context .getMimeType (fontURL );
329
330
if (fontMimeType != null )
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html xmlns ="http://www.w3.org/1999/xhtml " xml:lang ="en " lang ="en ">
3
+ < head >
4
+ < meta charset ="utf-8 " />
5
+ < title > Minimal EPUB</ title >
6
+ </ head >
7
+ < body >
8
+ < h1 > Loomings</ h1 >
9
+ < p > Call me Ishmael.</ p >
10
+ </ body >
11
+ </ html >
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html xmlns ="http://www.w3.org/1999/xhtml " xmlns:epub ="http://www.idpf.org/2007/ops " xml:lang ="en " lang ="en ">
3
+ < head >
4
+ < meta charset ="utf-8 "/>
5
+ < title > Minimal Nav</ title >
6
+ </ head >
7
+ < body >
8
+ < nav epub:type ="toc ">
9
+ < ol >
10
+ < li > < a href ="content_001.xhtml "> content 001</ a > </ li >
11
+ </ ol >
12
+ </ nav >
13
+ </ body >
14
+ </ html >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <package xmlns =" http://www.idpf.org/2007/opf" version =" 3.0" xml : lang =" en" unique-identifier =" q" >
3
+ <metadata xmlns : dc =" http://purl.org/dc/elements/1.1/" >
4
+ <dc : title id =" title" >Minimal EPUB 3.0</dc : title >
5
+ <dc : language >en</dc : language >
6
+ <dc : identifier id =" q" >NOID</dc : identifier >
7
+ <meta property =" dcterms:modified" >2017-06-14T00:00:01Z</meta >
8
+ </metadata >
9
+ <manifest >
10
+ <item id =" content_001" href =" content_001.xhtml" media-type =" application/xhtml+xml" />
11
+ <item id =" nav" href =" nav.xhtml" media-type =" application/xhtml+xml" properties =" nav" />
12
+ <item id =" css" href =" style.css" media-type =" text/css" properties =" remote-resources" />
13
+ <item id =" font" href =" font.woff" media-type =" font/woff" />
14
+ </manifest >
15
+ <spine >
16
+ <itemref idref =" content_001" />
17
+ </spine >
18
+ </package >
Original file line number Diff line number Diff line change
1
+ @font-face {
2
+ font-family : "Open Sans" ;
3
+ src : url ("font.woff" ) format ("woff" );
4
+ }
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <container version =" 1.0" xmlns =" urn:oasis:names:tc:opendocument:xmlns:container" >
3
+ <rootfiles >
4
+ <rootfile full-path =" EPUB/package.opf" media-type =" application/oebps-package+xml" />
5
+ </rootfiles >
6
+ </container >
Original file line number Diff line number Diff line change
1
+ application/epub+zip
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html xmlns ="http://www.w3.org/1999/xhtml " xml:lang ="en " lang ="en ">
3
+ < head >
4
+ < meta charset ="utf-8 " />
5
+ < title > Minimal EPUB</ title >
6
+ </ head >
7
+ < body >
8
+ < h1 > Loomings</ h1 >
9
+ < p > Call me Ishmael.</ p >
10
+ </ body >
11
+ </ html >
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html xmlns ="http://www.w3.org/1999/xhtml " xmlns:epub ="http://www.idpf.org/2007/ops " xml:lang ="en " lang ="en ">
3
+ < head >
4
+ < meta charset ="utf-8 "/>
5
+ < title > Minimal Nav</ title >
6
+ </ head >
7
+ < body >
8
+ < nav epub:type ="toc ">
9
+ < ol >
10
+ < li > < a href ="content_001.xhtml "> content 001</ a > </ li >
11
+ </ ol >
12
+ </ nav >
13
+ </ body >
14
+ </ html >
You can’t perform that action at this time.
0 commit comments