Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 09-20-2011, 07:11 PM   #1
Adjust
Addict
Adjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel is
 
Adjust's Avatar
 
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
Best Practice Metadata formatting.

Hi Guys.
I have a couple of things to ask your opinions on.

Firstly.

What's the best way to check metadata from an ePub to see if all the information you put in is correct? Insofar as how it will display on the various eBook websites without actually uploading?

Secondly. And this more about Best practice coding to spec I guess.

I output from InDesignCS3 and the resulting metadata code seems to be different to other people's, but because it still validates I haven't concerned myself with it until now. So I'm going to walk down the metadata section and insert my questions as I go.

Code:
<?xml version="1.0"?>
<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="bookid" version="2.0">
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/">
I've seen some with this OPF reference.
Code:
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf">
I don't know what this means or why it's needed.

Code:
<dc:title>Book Title</dc:title>
<dc:identifier id="bookid">urn:uuid:b9ffc7ae-2221-68aa-a5d5-6aa0d7309af6</dc:identifier>
<dc:identifier id="isbn_1234567890123">123-4-5678-9012-3</dc:identifier>
So I don't get why I should change my line above to read like the line below.
Code:
<dc:identifier opf:scheme="ISBN">123-4-5678-9012-3</dc:identifier>
Code:
<dc:creator>Author Name</dc:creator>
Also why this line needs to be changed to below?
Code:
<dc:creator opf:role="aut" opf:file-as="Name, Author">Author Name</dc:creator>
Code:
<dc:publisher>Publisher</dc:publisher>
<dc:rights>Copyright © Author Name 2011</dc:rights>
<dc:format />
<dc:date>2011</dc:date>
<dc:description>Blurb</dc:description>
What's the best way to format the Blurb? Is it ok to keep it all on one long line, inserting breaks only at paragraphs, or can I insert line breaks to condense the width?

Code:
<dc:subject>Fiction</dc:subject>
<dc:language>en</dc:language>
<meta name="cover" content="my-cover-image"/>
</metadata>
Thanks for any help.
It's confusing as why, if both methods work, to people bother adding the extra code?
Adjust is offline   Reply With Quote
Old 09-21-2011, 03:12 AM   #2
wannabee
Media Bloke
wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.
 
Posts: 2,382
Karma: 113956855
Join Date: Sep 2010
Location: NSW - Australia
Device: iOS
Marcus
All the sights I've uploaded to ask you to supply the meta data by entering it in a title, description, author bio field etc. Some want it as a spreadsheet.

By setting the ID <dc:identifier opf:scheme="ISBN">123-4-5678-9012-3</dc:identifier> you can search by ISBN - however, I've had mixed results in validation and am unsure if it's me or not.

I've not seen <dc:creator opf:role="aut" opf:file-as="Name, Author">Author Name</dc:creator> and can only guess it's old. Doesn't it validate?

For the blurb I creat a text file that has the following information in it so I can cut and paste into the different sites.
  • Title
  • Subtitle
  • Author
  • Author 2
  • Publisher
  • BISAC Code and descriptions
  • Publish Date
  • Pages (print)
  • Search metadata (They only allow 7 items usually)
  • Description with paragraph breaks.
  • Author Bio
  • Author 2 Bio
  • Reviews
wannabee is offline   Reply With Quote
Advert
Old 09-21-2011, 04:16 AM   #3
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,546
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by Adjust View Post
I've seen some with this OPF reference.
Code:
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf">
I don't know what this means or why it's needed.
It defines a namespace. It means you can use attributes from the OPF specification by prefixing them with "opf:" (see below).

Quote:
Code:
<dc:creator>Author Name</dc:creator>
Also why this line needs to be changed to below?
Code:
<dc:creator opf:role="aut" opf:file-as="Name, Author">Author Name</dc:creator>
The "role" and "file-as" attributes come from the OPF spec, that's why they have the "opf:" prefix, as defined above. The "role" attribute says that "Author Name" is the author of the book (it could have been the illustrator, the editor, the illustrator, the compilator...). The "file-as" attribute gives a standardized form to sort the author, something like the "author_sort" in calibre, if you use it. It's not strictly needed, but it's nice to have, although it's ignored by many (most?) readers.

Quote:
What's the best way to format the Blurb? Is it ok to keep it all on one long line, inserting breaks only at paragraphs, or can I insert line breaks to condense the width?
I've found that a single line per paragraph works best, otherwise the inserted line breaks can appear as forced line breaks.
Jellby is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ids - Best practice drMerry Library Management 7 05-07-2011 11:02 AM
[KOBO] Strip existing formatting to apply my own default formatting to all books digital_steve Calibre 2 08-10-2010 06:34 PM
Retaining formatting in metadata (book description) FizzyWater Calibre 5 05-13-2010 10:26 PM
Calibre and FORMATTING how to stop it altering my formatting? nerys Calibre 0 02-28-2010 04:51 PM
restrictive practice nobicus Sony Reader 14 09-30-2008 11:27 AM


All times are GMT -4. The time now is 06:05 PM.


MobileRead.com is a privately owned, operated and funded community.