Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 10-07-2013, 06:50 PM   #1
SIRSteiner
Nameless Being
 
Order of metadata in content.opf

Hello!

Is there any way to change the order of the metadata inside (content.opf) the written epub file to the device? Maybe in .py file?

The problem is that the PocketBook 623 don't read the dc:subject tag(s) (genre) if they are behind series tags. If I manually set these tags in the "right" order all things are fine.

Many thanks
Ronny
  Reply With Quote
Old 10-07-2013, 11:16 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,260
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
opf files are generated by the code in opf2.py, you can modify it if you want.
kovidgoyal is offline   Reply With Quote
Advert
Old 10-08-2013, 01:05 PM   #3
SIRSteiner
Nameless Being
 
Thank you for the quick reply! I found it in the for-in loop on the "def smart_update" definition. I moved the series metadata to the end and all things are fine on my PocketBook 623. It is only a workaround, the reader should also understand the original order.

Regards
Ronny
  Reply With Quote
Old 10-08-2013, 04:39 PM   #4
SIRSteiner
Nameless Being
 
Quote:
Originally Posted by kovidgoyal View Post
opf files are generated by the code in opf2.py, you can modify it if you want.
Hello again,

with Linux there is no problem but there are some Win-users. I found the opf2.pyo in pylib.zip. How can I change that file? Or is it possible to send me the changed file? "series" and "series_index" should be at the end of the metadata.

Thank you very much
Ronny
  Reply With Quote
Old 10-08-2013, 06:11 PM   #5
SIRSteiner
Nameless Being
 
I found the solution: replace opf2.pyo with modified opf2.py from source code inside the pylib.zip.

That's it.

Regards
  Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change opf filename from content.opf to title.opf northstar7 Sigil 3 09-23-2013 12:44 PM
Sort plugin or update content.opf velde046 Plugins 1 06-17-2012 05:08 AM
Sigil corrupting content.opf (0.4, 0.5) cyana Sigil 21 02-11-2012 05:25 PM
Sigil resets edits to content.opf adv_dp_fan Sigil 7 09-28-2011 06:50 PM
cleaning the content.opf file Adjust ePub 6 09-01-2010 05:54 PM


All times are GMT -4. The time now is 11:42 AM.


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