Fix document section assignments in EPUB writer.
For example, introduction should go in bodymatter, not frontmatter, and epigraph, conclusion, and afterward should go in bodymatter, not backmatter. For the full list of assignments, see the manual. Closes #5546.
This commit is contained in:
parent
dddad515e8
commit
b5af8eed38
2 changed files with 19 additions and 9 deletions
17
MANUAL.txt
17
MANUAL.txt
|
@ -4944,17 +4944,24 @@ abstract frontmatter
|
|||
acknowledgments frontmatter
|
||||
copyright-page frontmatter
|
||||
dedication frontmatter
|
||||
credits frontmatter
|
||||
keywords frontmatter
|
||||
imprint frontmatter
|
||||
contributors frontmatter
|
||||
other-credits frontmatter
|
||||
errata frontmatter
|
||||
revision-history frontmatter
|
||||
titlepage frontmatter
|
||||
halftitlepage frontmatter
|
||||
seriespage frontmatter
|
||||
foreword frontmatter
|
||||
halftitle, frontmatter
|
||||
introduction frontmatter
|
||||
preface frontmatter
|
||||
seriespage frontmatter
|
||||
titlepage frontmatter
|
||||
afterword backmatter
|
||||
appendix backmatter
|
||||
colophon backmatter
|
||||
conclusion backmatter
|
||||
epigraph backmatter
|
||||
bibliography backmatter
|
||||
index backmatter
|
||||
|
||||
[epub-type]: http://www.idpf.org/epub/31/spec/epub-contentdocs.html#sec-epub-type-attribute
|
||||
|
||||
|
|
|
@ -584,11 +584,14 @@ pandocToEPUB version opts doc = do
|
|||
_ -> (Pandoc nullMeta bs, "bodymatter")
|
||||
frontMatterTypes = ["prologue", "abstract", "acknowledgments",
|
||||
"copyright-page", "dedication",
|
||||
"foreword", "halftitle",
|
||||
"introduction", "preface",
|
||||
"credits", "keywords", "imprint",
|
||||
"contributors", "other-credits",
|
||||
"errata", "revision-history",
|
||||
"titlepage", "halftitlepage", "seriespage",
|
||||
"foreword", "preface",
|
||||
"seriespage", "titlepage"]
|
||||
backMatterTypes = ["afterword", "appendix", "colophon",
|
||||
"conclusion", "epigraph"]
|
||||
backMatterTypes = ["appendix", "colophon", "bibliography",
|
||||
"index"]
|
||||
|
||||
chapterEntries <- zipWithM chapToEntry [1..] chapters
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue