summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-11-07 22:02:51 +0000
committerKarl Berry <karl@freefriends.org>2020-11-07 22:02:51 +0000
commit510b307c38933e773e9d4885023a4595b978eb33 (patch)
tree24757a93cbb6810fd97c6628981cad1c303eafb4 /Master
parent6e8258ca7f0c5584a4f9919cf65ac0fa093f0e2f (diff)
tex4ebook (7nov20)
git-svn-id: svn://tug.org/texlive/trunk@56876 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/support/tex4ebook/changelog.tex11
-rw-r--r--Master/texmf-dist/doc/support/tex4ebook/tex4ebook-doc.pdfbin79364 -> 79505 bytes
-rwxr-xr-xMaster/texmf-dist/scripts/tex4ebook/tex4ebook2
-rwxr-xr-xMaster/texmf-dist/scripts/tex4ebook/tex4ebook-exec_epub.lua5
-rwxr-xr-xMaster/texmf-dist/scripts/tex4ebook/tex4ebook-exec_epub3.lua1
5 files changed, 16 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/support/tex4ebook/changelog.tex b/Master/texmf-dist/doc/support/tex4ebook/changelog.tex
index f77423e85b7..3d0d6c1c6c4 100644
--- a/Master/texmf-dist/doc/support/tex4ebook/changelog.tex
+++ b/Master/texmf-dist/doc/support/tex4ebook/changelog.tex
@@ -3,6 +3,17 @@
\begin{itemize}
\item
+ 2020/11/06
+
+ \begin{itemize}
+ \tightlist
+ \item
+ bug fix: remove custom elements from the NCX file in the Epub 3
+ format.
+ \item
+ released version \texttt{0.3c}
+ \end{itemize}
+\item
2020/09/07
\begin{itemize}
diff --git a/Master/texmf-dist/doc/support/tex4ebook/tex4ebook-doc.pdf b/Master/texmf-dist/doc/support/tex4ebook/tex4ebook-doc.pdf
index 942a92df29c..3546db973f5 100644
--- a/Master/texmf-dist/doc/support/tex4ebook/tex4ebook-doc.pdf
+++ b/Master/texmf-dist/doc/support/tex4ebook/tex4ebook-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/scripts/tex4ebook/tex4ebook b/Master/texmf-dist/scripts/tex4ebook/tex4ebook
index dc602c4e72b..91df031ffb7 100755
--- a/Master/texmf-dist/scripts/tex4ebook/tex4ebook
+++ b/Master/texmf-dist/scripts/tex4ebook/tex4ebook
@@ -67,7 +67,7 @@ else
end
if args.version then
- print "tex4ebook v0.3b"
+ print "tex4ebook v0.3c"
return
end
diff --git a/Master/texmf-dist/scripts/tex4ebook/tex4ebook-exec_epub.lua b/Master/texmf-dist/scripts/tex4ebook/tex4ebook-exec_epub.lua
index b0ccee62027..75304e24942 100755
--- a/Master/texmf-dist/scripts/tex4ebook/tex4ebook-exec_epub.lua
+++ b/Master/texmf-dist/scripts/tex4ebook/tex4ebook-exec_epub.lua
@@ -393,12 +393,13 @@ local function fix_ncx_toc_levels(dom)
return dom
end
-local function clean_xml_files()
+function clean_xml_files()
local opf_file = outputdir .. "/content.opf"
update_file(opf_file, function(content)
-- remove wrong elements from the OPF file
-- open opf file and create LuaXML DOM
- local opf_dom = dom.parse(content)
+ -- the second argument to dom.parse is needed to avoid parsing issues due to the <meta> element.
+ local opf_dom = dom.parse(content, {})
-- remove child elements from elements that don't allow them
for _, el in ipairs(opf_dom:query_selector("dc|title, dc|creator")) do
-- get text content
diff --git a/Master/texmf-dist/scripts/tex4ebook/tex4ebook-exec_epub3.lua b/Master/texmf-dist/scripts/tex4ebook/tex4ebook-exec_epub3.lua
index 650eea4e6db..fc200bd8661 100755
--- a/Master/texmf-dist/scripts/tex4ebook/tex4ebook-exec_epub3.lua
+++ b/Master/texmf-dist/scripts/tex4ebook/tex4ebook-exec_epub3.lua
@@ -273,6 +273,7 @@ function writeContainer()
log:info "write container"
eb.make_opf()
cleanOPF()
+ eb.clean_xml_files()
local ret = eb.pack_container()
return ret
end