texlive[56876] trunk: tex4ebook (7nov20)
commits+karl at tug.org
commits+karl at tug.org
Sat Nov 7 23:02:51 CET 2020
Revision: 56876
http://tug.org/svn/texlive?view=revision&revision=56876
Author: karl
Date: 2020-11-07 23:02:51 +0100 (Sat, 07 Nov 2020)
Log Message:
-----------
tex4ebook (7nov20)
Modified Paths:
--------------
trunk/Build/source/texk/texlive/linked_scripts/tex4ebook/tex4ebook
trunk/Master/texmf-dist/doc/support/tex4ebook/changelog.tex
trunk/Master/texmf-dist/doc/support/tex4ebook/tex4ebook-doc.pdf
trunk/Master/texmf-dist/scripts/tex4ebook/tex4ebook
trunk/Master/texmf-dist/scripts/tex4ebook/tex4ebook-exec_epub.lua
trunk/Master/texmf-dist/scripts/tex4ebook/tex4ebook-exec_epub3.lua
Modified: trunk/Build/source/texk/texlive/linked_scripts/tex4ebook/tex4ebook
===================================================================
--- trunk/Build/source/texk/texlive/linked_scripts/tex4ebook/tex4ebook 2020-11-07 22:02:36 UTC (rev 56875)
+++ trunk/Build/source/texk/texlive/linked_scripts/tex4ebook/tex4ebook 2020-11-07 22:02:51 UTC (rev 56876)
@@ -67,7 +67,7 @@
end
if args.version then
- print "tex4ebook v0.3b"
+ print "tex4ebook v0.3c"
return
end
Modified: trunk/Master/texmf-dist/doc/support/tex4ebook/changelog.tex
===================================================================
--- trunk/Master/texmf-dist/doc/support/tex4ebook/changelog.tex 2020-11-07 22:02:36 UTC (rev 56875)
+++ trunk/Master/texmf-dist/doc/support/tex4ebook/changelog.tex 2020-11-07 22:02:51 UTC (rev 56876)
@@ -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}
Modified: trunk/Master/texmf-dist/doc/support/tex4ebook/tex4ebook-doc.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/scripts/tex4ebook/tex4ebook
===================================================================
--- trunk/Master/texmf-dist/scripts/tex4ebook/tex4ebook 2020-11-07 22:02:36 UTC (rev 56875)
+++ trunk/Master/texmf-dist/scripts/tex4ebook/tex4ebook 2020-11-07 22:02:51 UTC (rev 56876)
@@ -67,7 +67,7 @@
end
if args.version then
- print "tex4ebook v0.3b"
+ print "tex4ebook v0.3c"
return
end
Modified: trunk/Master/texmf-dist/scripts/tex4ebook/tex4ebook-exec_epub.lua
===================================================================
--- trunk/Master/texmf-dist/scripts/tex4ebook/tex4ebook-exec_epub.lua 2020-11-07 22:02:36 UTC (rev 56875)
+++ trunk/Master/texmf-dist/scripts/tex4ebook/tex4ebook-exec_epub.lua 2020-11-07 22:02:51 UTC (rev 56876)
@@ -393,12 +393,13 @@
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
Modified: trunk/Master/texmf-dist/scripts/tex4ebook/tex4ebook-exec_epub3.lua
===================================================================
--- trunk/Master/texmf-dist/scripts/tex4ebook/tex4ebook-exec_epub3.lua 2020-11-07 22:02:36 UTC (rev 56875)
+++ trunk/Master/texmf-dist/scripts/tex4ebook/tex4ebook-exec_epub3.lua 2020-11-07 22:02:51 UTC (rev 56876)
@@ -273,6 +273,7 @@
log:info "write container"
eb.make_opf()
cleanOPF()
+ eb.clean_xml_files()
local ret = eb.pack_container()
return ret
end
More information about the tex-live-commits
mailing list.