-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
meta elements (except cover) not supported in metadata.xml #5098
Comments
As the documentation for |
OK, looking at https://www.eboundcanada.org/Resources/whats-in-an-epub-the-opf-file/ I see that |
I misremembered. We actually parse the metadata into a structured EPUBMetadata type, which defines the metadata that get put in content.opf. We could probably address this by adding a field for generic custom metadata like this. |
I really appreciate the speedy responses and fix. I'm a big fan of your software. Is there a way to incorporate these latest changes into the 2.4 release? I've tried various ways of compiling from source but no joy. I can of course wait until the next release. I'm on Debian (and I have updated to the most recent Github release, thanks for pointing that out). |
@jeffmcneill you can try the unofficial nightly builds. |
@mb21 nightly worked a charm :) |
I'm trying to put all the metadata in a YAML header instead of a metadata.xml file. This seems to work for everything except for the Calibre meta tags as mentioned above in this original issue. Is there any way to get these kinds of tags into the YAML header of a markdown file? Note that I generate PDF and Epub from this file.
|
Can you post the YAML you tried? |
Try
I just tried it and it worked. |
Works for me, thanks!
|
Sorry to make this thread alive after a long time, but I wanted to check I have not missed something before making a possible Issue message. Following the instructions here, I have included in the YAML preamble of my markdown text
in the hope I would get Is there something I have misunderstood ? Edit : I forgot to say that my intent is to include Accessibility Metadata |
The manual contains a list of the fields that are recognized in epub metadata: |
Thank you very much for your answer (and this marvelous engine) |
@jgm Unless I missed something, I don't think the manual does contain them all. I see in the code epubCalibreFields but I don't see any mention of calibre fields in the manual, as @YannKervran pointed out. I potentially have a need for the accessibility metadata as well, and at first read this thread made me think I could just add them and have them get picked up, since that's what appears to happen with calibre fields. It's not, though, correct? Would the accessibility fields need coded in as well? Just trying to confirm before I start looking at putting a PR together. Thank you! |
@davidlday yes, it needs to be coded in ... we want to make sure that we don't generate invalid EPUBs, so all the metadata must be representable in the EPUBMetadata record. |
It appears that meta elements (except for the cover) do not appear to be supported in metadata.xml. See: #269 similar issue.
Specifically, I am trying to add the popular calibre:series and calibre:series_index tags: These are not pulled into the content.opf file when generating an epub. Is there a different process I should be using to include these meta tags (YAML file or something else)?
Pandoc version: 1.17.2~dfsg-3
Meta tags included in metadata.xml, which do not appear in content.opf:
The text was updated successfully, but these errors were encountered: