public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* How to embed ISBN in EPUB file
@ 2019-05-23 10:32 CR
       [not found] ` <a5f89c3a-c9a5-47be-954f-ad36973626ad-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: CR @ 2019-05-23 10:32 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1887 bytes --]

I write or convert books to Markdown using a YAML block. Each book could be 
multiple Markdown files but the YAML block is always at the top of the 
first Markdown file. I'd like to embed the book ISBN (if it has one) in the 
EPUB itself but I don't know how to write that in MMD. 

Is there a way to embed the ISBN in the EPUB file using Markdown? Or some 
other method?

Thank you.

This is all the YAML that is supported by Pandoc as far as I know.
---
title:
- type: main
  text: My Book
- type: subtitle
  text: An investigation of metadata
creator:
- role: author
  text: John Smith
- role: editor
  text: Sarah Jones
identifier:
- scheme: DOI
  text: doi:10.234234.234/33
publisher:  My Press
rights: © 2007 John Smith, CC BY-NC
date: 1999
tags: [nothing, nothingness]
abstract: |
  This is the abstract.

  It consists of two paragraphs.
---


Pandoc YAML docs are here: 
https://pandoc.org/MANUAL.html#creating-epubs-with-pandoc

Ok, is this how to do it in the YAML block in the MMD file?
- scheme: ISBN10
  text: 1234567988




Another question: does Pandoc do any validation of the format of the ISBN10 
or ISBN13 number? I'm not asking Pandoc to look the ISBN up in a database, 
just to do a general check on the length of the ISBN and format. 

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/a5f89c3a-c9a5-47be-954f-ad36973626ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 10088 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to embed ISBN in EPUB file
       [not found] ` <a5f89c3a-c9a5-47be-954f-ad36973626ad-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2019-05-23 10:37   ` CR
  2019-05-23 10:39   ` CR
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: CR @ 2019-05-23 10:37 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 2118 bytes --]

Ok I'm seeing that Pandoc is not putting the ISBN-10, ISBN-13 or DOI number 
from the YAML block into the EPUB. It should be in the content.opf file but 
I'm not seeing it. 

Here's my markdown file with YAML block called 'superscript.md'. I was 
testing the markdown superscript the other day.
---
title: Title Superscript poss causing problems
author: John Author
date: 2019-05-20
identifier:
- scheme: DOI
  text: doi:10.234234.234/33
- scheme: ISBN-10
  text: 1234567988
- scheme: ISBN-13
  text: 978-1112223334
---

# Chapter 1

This is a normal chapter.

# Chapter 2

This is subscript: H~2~O

This is superscript: 10^5^

## I. The Holographic Field Aspects of the Universe

Now we add a footnote after the superscript.[^footnote]

This is superscript after calling out the footnote: 10^5^

## A Look At Human Memory



The human brain is estimated to be able to store »
information in the quantity between 1x10^11^ (one hundred
trillion) and 2.8 x 10^20^ (280 quintillion) bits of
information.

[^footnote]: this is the footnote here.


Here's my batch file to produce the Epub. 
set outfile=superscript.epub
c:\chuck\ebook\pandoc\pandoc --from=markdown_mmd+backtick_code_blocks+
yaml_metadata_block+line_blocks+auto_identifiers+superscript+subscript  --to
=epub -o %outfile% superscript.md
copy superscript.epub superscript.zip


The DOI in the EPUB will be critical if I convert an article into an EPUB 
file. The DOI is the universal locator for that article or study.


-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/8acc1d34-4cf0-47a8-8a6f-70fb3b22c689%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 16070 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to embed ISBN in EPUB file
       [not found] ` <a5f89c3a-c9a5-47be-954f-ad36973626ad-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  2019-05-23 10:37   ` CR
@ 2019-05-23 10:39   ` CR
  2019-05-23 10:46   ` CR
  2019-05-23 11:21   ` CR
  3 siblings, 0 replies; 6+ messages in thread
From: CR @ 2019-05-23 10:39 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 2276 bytes --]

Forgot to post the content.opf file that I got. Here it is. 

<?xml version="1.0" encoding="UTF-8"?>
<package version="3.0" xmlns="http://www.idpf.org/2007/opf" 
unique-identifier="epub-id-1" prefix="ibooks: 
http://vocabulary.itunes.apple.com/rdf/ibooks/vocabulary-extensions-1.0/">
  <metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf=
"http://www.idpf.org/2007/opf">
    <dc:identifier id="epub-id-1">
urn:uuid:2040b10b-1e23-491c-978f-bb49c136f24c</dc:identifier>
    <dc:title id="epub-title-1">Title Superscript poss causing problems
</dc:title>
    <dc:date id="epub-date">2019-05-20</dc:date>
    <dc:language>en-US</dc:language>
    <dc:creator id="epub-creator-1">me</dc:creator>
    <meta refines="#epub-creator-1" property="role" scheme="marc:relators">
aut</meta>
    <meta property="dcterms:modified">2019-05-20T17:58:49Z</meta>
  </metadata>
  <manifest>
    <item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml" />
    <item id="nav" href="nav.xhtml" media-type="application/xhtml+xml" 
properties="nav" />
    <item id="style" href="styles/stylesheet1.css" media-type="text/css" />
    <item id="title_page_xhtml" href="text/title_page.xhtml" media-type=
"application/xhtml+xml" />
    <item id="ch001_xhtml" href="text/ch001.xhtml" media-type=
"application/xhtml+xml" />
    <item id="ch002_xhtml" href="text/ch002.xhtml" media-type=
"application/xhtml+xml" />
  </manifest>
  <spine toc="ncx">
    <itemref idref="title_page_xhtml" linear="yes" />
    <itemref idref="ch001_xhtml" />
    <itemref idref="ch002_xhtml" />
  </spine>
  <guide>
    <reference type="toc" title="Title Superscript poss causing problems" 
href="nav.xhtml" />
  </guide>
</package>


-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/8e9f7c83-7cb5-407e-b402-006fa2289e12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 20140 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to embed ISBN in EPUB file
       [not found] ` <a5f89c3a-c9a5-47be-954f-ad36973626ad-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  2019-05-23 10:37   ` CR
  2019-05-23 10:39   ` CR
@ 2019-05-23 10:46   ` CR
  2019-05-23 11:21   ` CR
  3 siblings, 0 replies; 6+ messages in thread
From: CR @ 2019-05-23 10:46 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1058 bytes --]

I'm using Pandoc 2.2.1.

Here's where the ISBN goes in the content.opf metadata: 


<metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf"> 
<dc:title>Alice in Wonderland</dc:title> 
<dc:language>en</dc:language> 
*<dc:identifier id="BookId" opf:scheme="ISBN">123456789X</dc:identifier>*
<dc:creator opf:role="aut">Lewis Carroll</dc:creator> 
</metadata>

I got this example from: http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.2


-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/5554687e-2acd-4c62-af64-78e0318c745d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 1825 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to embed ISBN in EPUB file
       [not found] ` <a5f89c3a-c9a5-47be-954f-ad36973626ad-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
                     ` (2 preceding siblings ...)
  2019-05-23 10:46   ` CR
@ 2019-05-23 11:21   ` CR
       [not found]     ` <cc6a2882-212d-484c-9b51-b701e4e536d3-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  3 siblings, 1 reply; 6+ messages in thread
From: CR @ 2019-05-23 11:21 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1962 bytes --]

Ok I upgraded to Pandoc 2.7.2 (most recent version) and it looks like it's 
putting in the DOI, ISBN-10 and ISBN-13 numbers in. Here's the metadata 
from the content.opf file: 

  <metadata xmlns:dc="http://purl.org/dc/elements/1.1/" 
xmlns:opf="http://www.idpf.org/2007/opf">
    <dc:identifier id="epub-id-1">doi:10.234234.234/33</dc:identifier>
    <meta refines="#epub-id-1" property="identifier-type" 
scheme="onix:codelist5">06</meta>
    <dc:identifier id="epub-id-2">1234567988</dc:identifier>
    <meta refines="#epub-id-2" property="identifier-type" 
scheme="onix:codelist5">02</meta>
    <dc:identifier id="epub-id-3">978-1112223334</dc:identifier>
    <meta refines="#epub-id-3" property="identifier-type" 
scheme="onix:codelist5">15</meta>
    <dc:title id="epub-title-1">Title Superscript poss causing 
problems</dc:title>
    <dc:date id="epub-date">2019-05-20</dc:date>
    <dc:language>en-US</dc:language>
    <dc:creator id="epub-creator-1">John Author</dc:creator>
    <meta refines="#epub-creator-1" property="role" 
scheme="marc:relators">aut</meta>
    <meta property="dcterms:modified">2019-05-23T11:17:50Z</meta>
  </metadata>

I still have this question though. Does Pandoc do any validation of the 
format of the ISBN10 or ISBN13 number? I'm not asking Pandoc to look the 
ISBN up in a database, just to do a general check on the length of the ISBN 
and format. 


-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/cc6a2882-212d-484c-9b51-b701e4e536d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 3064 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to embed ISBN in EPUB file
       [not found]     ` <cc6a2882-212d-484c-9b51-b701e4e536d3-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2019-05-27 19:07       ` John MacFarlane
  0 siblings, 0 replies; 6+ messages in thread
From: John MacFarlane @ 2019-05-27 19:07 UTC (permalink / raw)
  To: CR, pandoc-discuss

CR <chuckr69-Wuw85uim5zDR7s880joybQ@public.gmane.org> writes:


> I still have this question though. Does Pandoc do any validation of the 
> format of the ISBN10 or ISBN13 number? I'm not asking Pandoc to look the 
> ISBN up in a database, just to do a general check on the length of the ISBN 
> and format. 

No, we don't do any validation on this.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-05-27 19:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-23 10:32 How to embed ISBN in EPUB file CR
     [not found] ` <a5f89c3a-c9a5-47be-954f-ad36973626ad-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-05-23 10:37   ` CR
2019-05-23 10:39   ` CR
2019-05-23 10:46   ` CR
2019-05-23 11:21   ` CR
     [not found]     ` <cc6a2882-212d-484c-9b51-b701e4e536d3-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-05-27 19:07       ` John MacFarlane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).