summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2012-06-09 02:40:13 +0300
committerMarius <mariausol@gmail.com>2012-06-09 02:40:13 +0300
commita8d90ec17f9ba850721305edcf360407c3aae5b3 (patch)
tree45f42c4904ea1eca395264d828ab443542d1d95d /scripts
parent51cc4a57d6646dcecac5d5281d698a7b741d3b5a (diff)
downloadcontext-a8d90ec17f9ba850721305edcf360407c3aae5b3.tar.gz
beta 2012.06.09 01:22
Diffstat (limited to 'scripts')
-rw-r--r--scripts/context/lua/mtx-epub.lua11
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/context/lua/mtx-epub.lua b/scripts/context/lua/mtx-epub.lua
index 88e31ceee..6b7f7e718 100644
--- a/scripts/context/lua/mtx-epub.lua
+++ b/scripts/context/lua/mtx-epub.lua
@@ -31,7 +31,7 @@ mtxrun --script epub --make mydocument
local application = logs.application {
name = "mtx-epub",
- banner = "ConTeXt EPUB Helpers 0.11",
+ banner = "ConTeXt EPUB Helpers 0.12",
helpinfo = helpinfo,
}
@@ -197,9 +197,18 @@ function scripts.epub.make()
local language = specification.language or "en"
local creator = specification.author or "My Self"
local title = specification.title or "My Title"
+ local firstpage = specification.firstpage or ""
+ local lastpage = specification.lastpage or ""
-- identifier = gsub(identifier,"[^a-zA-z0-9]","")
+ if firstpage == "" then
+ images[firstpage] = firstpage
+ end
+ if lastpage == "" then
+ images[lastpage] = lastpage
+ end
+
identifier = "BookId" -- weird requirement
local epubname = name