Split epub-page.html into default.epub and default.epub3.

This commit is contained in:
John MacFarlane 2012-11-04 21:11:31 -08:00
parent 1709949ce5
commit ba97adf746
2 changed files with 34 additions and 5 deletions

29
default.epub Normal file
View file

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
<title>$pagetitle$</title>
$if(highlighting-css)$
<style type="text/css">
$highlighting-css$
</style>
$endif$
$for(css)$
<link rel="stylesheet" type="text/css" href="$css$" />
$endfor$
</head>
<body>
$if(titlepage)$
<h1 class="title">$title$</h1>
$for(author)$
<h2 class="author">$author$</h2>
$endfor$
$if(date)$
<h3 class="date">$date$</h3>
$endif$
$else$
$body$
$endif$
</body>
</html>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html$if(epub3)$$else$ PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"$endif$> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head> <head>
<title>$pagetitle$</title> <title>$pagetitle$</title>
@ -14,17 +14,17 @@ $highlighting-css$
</style> </style>
$endif$ $endif$
$for(css)$ $for(css)$
<link rel="stylesheet" $if(epub3)$$else$type="text/css"$endif$ href="$css$" /> <link rel="stylesheet" href="$css$" />
$endfor$ $endfor$
</head> </head>
<body> <body>
$if(titlepage)$ $if(titlepage)$
<h1 class="title">$title$</h1> <h1 class="title">$title$</h1>
$for(author)$ $for(author)$
<h2 class="author">$author$</h2> <h2 class="author">$author$</h2>
$endfor$ $endfor$
$if(date)$ $if(date)$
<h3 class="date">$date$</h3> <h3 class="date">$date$</h3>
$endif$ $endif$
$else$ $else$
$body$ $body$