View Single Post
Old 10-05-2021, 01:20 PM   #1
Grimaud
Guru
Grimaud could sell banana peel slippers to a Deveel.Grimaud could sell banana peel slippers to a Deveel.Grimaud could sell banana peel slippers to a Deveel.Grimaud could sell banana peel slippers to a Deveel.Grimaud could sell banana peel slippers to a Deveel.Grimaud could sell banana peel slippers to a Deveel.Grimaud could sell banana peel slippers to a Deveel.Grimaud could sell banana peel slippers to a Deveel.Grimaud could sell banana peel slippers to a Deveel.Grimaud could sell banana peel slippers to a Deveel.Grimaud could sell banana peel slippers to a Deveel.
 
Grimaud's Avatar
 
Posts: 748
Karma: 3000
Join Date: May 2009
Device: PRS-505, PRS-600, PRS-650
Question How to add ISBN to an EPUB file, to have it visible on my Elipsa?

Hello,

I’m working on a Bash script to create an EPUB with proper metadata, from a directory full of pictures, in other words, manga and comics, because official EPUBs are not always that great, some are even so badly formatted that spreads are not working correctly .

Following advice from friends and looking at examples – either from the official EPUB websites, EPUB I purchased myself or using Sigil to have examples – , I’m including the ISBN and a unique ID randomly generated with uuidgen.

As far as epubcheck is concerned, my Frankenstein code is valid – no error, no alert, nothing – and kepubify doesn’t report any error either, but my Kobo Elispa doesn’t show the ISBN while the rest of my EPUB metadata are shown – thanks to nickel series .

I thought, after reading an old message from davidfor that I only needed to make sure that the ISBN was the first dc:identifier, but despite changing my script to do so, my Elipsa is still not showing the ISBN.

The content.opf of my EPUB looks like that and the ISBN is the real ISBN from that book but no ISBN is shown by my Elipsa.
Code:
<?xml version="1.0" encoding="utf-8"?>
<package version="3.0" unique-identifier="pub-id" id="package" prefix="rendition: http://www.idpf.org/vocab/rendition/# cc: http://creativecommons.org/ns#" xml:lang="fr" xmlns="http://www.idpf.org/2007/opf">
  <metadata xmlns:dc="http://purl.org/dc/elements/1.1/">
    <dc:identifier id="isbn-id">urn:isbn:9782811622077</dc:identifier>
    <meta property="identifier-type" refines="#isbn-id" scheme="onix:codelist5">15</meta>
    <dc:identifier id="pub-id">urn:uuid:CC8757AF-657B-4CBB-BF2F-45252FAAABAB</dc:identifier>
    <meta property="identifier-type" refines="#pub-id" scheme="xsd:string">uuid</meta>
toc.ncx
Code:
<?xml version="1.0" encoding="utf-8"?>
<ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1">
	<head>
		<meta name="dtb:uid" content="urn:uuid:CC8757AF-657B-4CBB-BF2F-45252FAAABAB"/>
I also tried with only an ISBN but the same problem happened: no ISBN shown by the Elipsa

Content.opf
Code:
<?xml version="1.0" encoding="utf-8"?>
<package version="3.0" unique-identifier="isbn-id" id="package" prefix="rendition: http://www.idpf.org/vocab/rendition/# cc: http://creativecommons.org/ns#" xml:lang="fr" xmlns="http://www.idpf.org/2007/opf">
  <metadata xmlns:dc="http://purl.org/dc/elements/1.1/">
		<dc:identifier id="isbn-id">urn:isbn:9782811621957</dc:identifier>
		<meta property="identifier-type" refines="#isbn-id" scheme="onix:codelist5">15</meta>
toc.ncx
Code:
<?xml version="1.0" encoding="utf-8"?>
<ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1">
	<head>
		<meta name="dtb:uid" content="urn:isbn:9782811621957"/>
Ideally, I would like to avoid using Calibre, because dragging and dropping my EPUB files to my Elipsa is faster than using Calibre. And it’s also using less space because I don’t keep the kepub files after that: I’m only keeping the images, downscaled by my computer, the rest can be recreated in a couple of seconds.

I'm sure it's a simple mistake on my part (I did plenty working on that script ), but if someone knows which one, I'm all hears

Grimaud is offline   Reply With Quote