![]() |
#1 |
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 |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
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 |
![]() |
![]() |
#4 | |
Nameless Being
|
Quote:
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 |
|
![]() |
![]() |
#5 |
Nameless Being
|
I found the solution: replace opf2.pyo with modified opf2.py from source code inside the pylib.zip.
That's it. Regards |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
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 |