aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2012-11-04 21:40:03 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2012-11-04 21:40:03 -0800
commit4c1f840c392010309cdb4cc1b8db4f4b24ff6424 (patch)
treee2de09d2f3a69c9282cf9d22619174943d8390a6
parentba97adf746a5573a822f9f5d744d46364814d611 (diff)
downloadpandoc-4c1f840c392010309cdb4cc1b8db4f4b24ff6424.tar.gz
EPUB templates: UTF-8, lang variable, meta tags.
-rw-r--r--default.epub7
-rw-r--r--default.epub36
2 files changed, 9 insertions, 4 deletions
diff --git a/default.epub b/default.epub
index 82bd7f93a..5e849d784 100644
--- a/default.epub
+++ b/default.epub
@@ -1,8 +1,11 @@
<?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">
+<html xmlns="http://www.w3.org/1999/xhtml"$if(lang)$ xml:lang="$lang$"$endif$>
<head>
-<title>$pagetitle$</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <meta http-equiv="Content-Style-Type" content="text/css" />
+ <meta name="generator" content="pandoc" />
+ <title>$pagetitle$</title>
$if(highlighting-css)$
<style type="text/css">
$highlighting-css$
diff --git a/default.epub3 b/default.epub3
index 29287218b..ba7516052 100644
--- a/default.epub3
+++ b/default.epub3
@@ -1,8 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!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"$if(lang)$ xml:lang="$lang$"$endif$>
<head>
-<title>$pagetitle$</title>
+ <meta charset="utf-8" />
+ <meta name="generator" content="pandoc" />
+ <title>$pagetitle$</title>
$if(quotes)$
<style type="text/css">
q { quotes: "“" "”" "‘" "’"; }