Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 02-24-2012, 11:14 AM   #1
lowfive
Junior Member
lowfive plays well with otherslowfive plays well with otherslowfive plays well with otherslowfive plays well with otherslowfive plays well with otherslowfive plays well with otherslowfive plays well with otherslowfive plays well with otherslowfive plays well with otherslowfive plays well with otherslowfive plays well with others
 
Posts: 7
Karma: 2952
Join Date: Feb 2012
Device: Kindle Fire
PDOC to EBOK without converting?

I think most people are aware that some sideloaded mobi books show up under 'documents' instead of 'books' on the Kindle Fire. This problem is resolved by changing the PDOC tag to EBOK. The most common way suggested to do this is to change the mobi output settings in Calibre: you'll see the default is to tag [PDOC] which must be changed to [EBOK].

Here's my problem: it seems that the tag is part of the metadata. Even if it's something a bit more than that I can't believe it should require re-conversion if it's already in mobi format. Re-converting means substantial extra time used and the chance of changing the ebook's format for the worse.

So here's the question: Is there any way to change the PDOC tag to EBOK without re-converting?
lowfive is offline   Reply With Quote
Old 02-24-2012, 08:50 PM   #2
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,979
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3 and Fire
There is a lot of confusion about PDOC. Part of the problem is that the usual way we find out that the PDOC is there is that the MOBI turns up in the Docs app (vs the Books app) on the Fire.

I may be adding to the confusion, but what I now think is true is the following:

a) There is a metadata field in MOBIs called cdetype (number 501). If this is set to EBOK the ebook will show up in Books, otherwise (no cdetype or set to PDOC) it will be in Docs.

b) Calibre does not add cdetype to its own MOBIs (e.g. created by converting from ePub). It adds cdetype when writing a copy of the MOBI via "save to disk" or "send to device".

c) In Preferences -> Output options -> MOBI output. There is a "Personal doc tag" option. This is typically set to [PDOC], but it can have any value you want. The way this works is that if this tag is associated with your ebook in Calibre and you are writing a copy then cdetype is set to PDOC and otherwise it is set to EBOK.

Note that, based on my tests, if the "Personal doc tag" option is set to [EBOK], the cdetype is still set to PDOC if you have added [EBOK] as a tag to the ebook in Calibre. So changing it from [PDOC] to [EBOK] would only have an effect if you have [PDOC] as a tag to your ebook.

One thing I am not sure about is how Calibre knows that the MOBI is Kindle-bound. Some of the reported issues on the Fire makes me wonder if there are additional undocumented requirements. Note that in most cases we don't know that Calibre-generated ebooks contain PDOC - we just know they don't contain EBOK. Also, I'm not sure what happens if the existing MOBI in your Calibre library already contains cdetype set to PDOC.

Anyway, based on the above you should not need to reconvert your MOBIs (except perhaps if they already have a cdetype of PDOC).

If you are familiar with the command line, MobiPerl's mobi2mobi command will printout all the metadata in a MOBI. There is a precompiled version for Windows, so you don't need to install Pearl to use it. Using this command on the same ebook in Calibre's internal folders and on the Fire might be informative.

EDIT: The Java Mobi Metadata Editor can be used to check (and edit) cdetype, and make be easier to use than mobi2mobi.

Last edited by wallcraft; 02-24-2012 at 09:13 PM.
wallcraft is offline   Reply With Quote
Old 02-24-2012, 09:23 PM   #3
lowfive
Junior Member
lowfive plays well with otherslowfive plays well with otherslowfive plays well with otherslowfive plays well with otherslowfive plays well with otherslowfive plays well with otherslowfive plays well with otherslowfive plays well with otherslowfive plays well with otherslowfive plays well with otherslowfive plays well with others
 
Posts: 7
Karma: 2952
Join Date: Feb 2012
Device: Kindle Fire
Thanks for the extensive info! It sounds like the best bet for this particular problem is either mobi2mobi or this java tool found here
http://www.mobileread.com/forums/sho...d.php?t=165729

I have a feeling the latter will prove to be the quickest and easiest way to add the EBOK tag.
lowfive is offline   Reply With Quote
Old 02-27-2012, 11:47 AM   #4
cdetype seeker
Junior Member
cdetype seeker began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2012
Device: Kindle Fire, K3 keyboard
I'm doing books for the Kindle Fire in kf8, and changing the Personal Doc tag with calibre does make them show up in "Books", but it also seems to eliminate the kf8 formatting.

And since I'm creating the .opf file anyway, the question is: Can cdetype be set in the .opf file? And, if so, what (exactly) would it look like?

Sorry if the answer to this question is totally obvious, but I'm fairly new to this, and I'd like to avoid downloading and running another program if cdetype can be set with a simple line of text.
cdetype seeker is offline   Reply With Quote
Old 02-27-2012, 11:53 AM   #5
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 9,256
Karma: 42123822
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
No, it can't be done in the OPF file. It's part of the EXTH header in the binary MOBI file itself. If you want to do it with calibre, conversion is the only option (EDIT: or I should say saving/sending as well). There's a Java metadata editor in the Kindle subforum that appears to be able to modify this without conversion, as well as the mobiperl tools, but I'm not exactly sure how much (if any) testing of KF8 files has been done.

Last edited by DiapDealer; 02-27-2012 at 12:09 PM.
DiapDealer is online now   Reply With Quote
Old 02-27-2012, 12:57 PM   #6
cdetype seeker
Junior Member
cdetype seeker began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2012
Device: Kindle Fire, K3 keyboard
Thanks, though, obviously, that's not the answer I was hoping for. But, given that, can either of the 2 programs (mobi2mobi or the java tool) be used to change ONLY the cdetype, and absolutely nothing else?

Or, put another way, can any of these program be set to do absolutely no conversion whatsoever (other than changing some metadata)?

I'll probably just go ahead and try them, but I'd like to know if there's even a chance. My guess is that if they touch the html at all, the kf8 stuff will be lost (most especially the CSS stuff like position:absolute; -- do these conversion programs normally deal with position:absolute?)
cdetype seeker is offline   Reply With Quote
Old 02-27-2012, 12:59 PM   #7
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 9,256
Karma: 42123822
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
But, given that, can either of the 2 programs (mobi2mobi or the java tool) be used to change ONLY the cdetype, and absolutely nothing else?

Or, put another way, can any of these program be set to do absolutely no conversion whatsoever (other than changing some metadata)?
Yes and yes. Neither programs touch the text/structure of the ebook itself as far as I know.
DiapDealer is online now   Reply With Quote
Old 10-08-2014, 02:18 AM   #8
royr719
Junior Member
royr719 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Oct 2014
Device: Kindle Paperwhite
I added [EBOK] using the java mobi metadata editor but still, my books doesn't show under book section of my kindle
royr719 is offline   Reply With Quote
Old 10-08-2014, 05:02 AM   #9
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,840
Karma: 5654321
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by royr719 View Post
I added [EBOK] using the java mobi metadata editor but still, my books doesn't show under book section of my kindle
You just posted to a thread that is over 2 YEARS old
theducks is online now   Reply With Quote
Reply

Tags
calibre, convert, ebok, mobi, pdoc

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PDOC tag different for bulk and individual James76 Conversion 1 12-14-2011 03:06 AM
Searching for [PDOC] tag in library 01_Boxer Library Management 6 11-30-2011 07:13 PM
Which is the best ebok reader for WinCE? jumpjack Alternative Devices 3 11-16-2011 09:38 PM
EBOK FILES tonyyd Library Management 5 10-11-2011 03:01 PM
Converting to RB Epcot Conversion 2 07-22-2011 08:08 AM


All times are GMT -4. The time now is 01:35 PM.


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