summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-03-21 20:57:24 +0000
committerKarl Berry <karl@freefriends.org>2019-03-21 20:57:24 +0000
commita5de2c33c167bd9438ec901fd013cbd3ded17861 (patch)
treed5153925188fec09cf1a15f83b658bccc89b1cbb /Master/texmf-dist/tex/latex
parent042522d56eecc50b11be37d5284fc43d2a6b51fe (diff)
tex4ebook (21mar19)
git-svn-id: svn://tug.org/texlive/trunk@50512 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/tex4ebook/tex4ebook.4ht9
1 files changed, 6 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/tex4ebook/tex4ebook.4ht b/Master/texmf-dist/tex/latex/tex4ebook/tex4ebook.4ht
index 82d03df3100..e4233fc55a4 100644
--- a/Master/texmf-dist/tex/latex/tex4ebook/tex4ebook.4ht
+++ b/Master/texmf-dist/tex/latex/tex4ebook/tex4ebook.4ht
@@ -29,6 +29,9 @@
% use this only if it doesn't work
\NewConfigure{DocumentLanguage}[1]{\def\GetLanguage{#1}}
+% definitions of commands ignored in \author
+\def\a:@author{}
+\NewConfigure{@author}[1]{\concat:config\a:@author{#1}}
\NewConfigure{OpfScheme}{1}
\Configure{OpfScheme}{URI}
@@ -319,7 +322,7 @@ href="#1" media-type="\a:CoverMimeType" />}}
% We don't want crosslinks in xml
% Basic sctructure of the ncx file
\NoFonts
-{\HCode{<?xml version="1.0"?>\Hnewline}}
+{\HCode{<?xml version="1.0" encoding="utf-8"?>\Hnewline}}
{\a:NcxDoctype}
{\Tg<ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1">}{}
% To print document map, we customize the tableofcontents. We don't want TOC title,
@@ -372,7 +375,7 @@ href="#1" media-type="\a:CoverMimeType" />}}
\special{t4ht>content.opf}
\NoFonts
\HtmlParOff
-{\HCode{<?xml version="1.0"?>\Hnewline}}
+{\HCode{<?xml version="1.0" encoding="utf-8"?>\Hnewline}}
\HCode{<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="dcidid"
version="\a:EpubVersion">\Hnewline}
{\HCode{<metadata\Hnewline xmlns:dc="http://purl.org/dc/elements/1.1/"\Hnewline xmlns:opf="http://www.idpf.org/2007/opf">\Hnewline}}
@@ -381,7 +384,7 @@ href="#1" media-type="\a:CoverMimeType" />}}
%Add interface for such things
{\HCode{<dc:identifier id="dcidid" \print:opf:scheme\a:OpfScheme>\a:UniqueIdentifier}\HCode{</dc:identifier>\Hnewline}}
\def\and{\HCode{</dc:creator>\Hnewline<dc:creator>}}
-{\HCode{<dc:creator>}\Author\HCode{</dc:creator>\Hnewline}}
+{\HCode{<dc:creator>}{\a:@author\Author}\HCode{</dc:creator>\Hnewline}}
%{\HCode{<dc:contributor>\HP:file</dc:contributor>\Hnewline}}
{\HCode{<dc:date>}\:iso:date\HCode{</dc:date>}}
\a:OpfMetadata