![]() |
#406 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,373
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Take careful note of the "Output File" field. This is the file you will need to load on your device. If you're just overwriting the file ("Output File" = "Opened File") then it's a no-brainer. But if they're different... you're creating a second file and the "Output File" name is the one with changed data. The Input File will of course be the unchanged original. |
|
![]() |
![]() |
![]() |
#407 | |
Banned
![]() Posts: 4
Karma: 10
Join Date: Aug 2011
Device: Bryan790
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#408 | |
Member
![]() Posts: 21
Karma: 10
Join Date: May 2011
Device: Amazon Kindle Paperwhite (2015)
|
Calibre and Mobi2Mobi
Hello everybody,
I have a small book library with a few books, some of them having large titles. I have noticed on one of them that reconverting it to mobi using Calibre and then trying to modify it in Mobi2Mobi result in the following error: Quote:
I know I could anytime use a smaller title, but it's just annoying to have such a limitation. The weird thing is the same thing don't happen to other books with long names, just with one. Maybe you can help me figure this thing out... ![]() |
|
![]() |
![]() |
![]() |
#409 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
It is the reading of the file that fails so this is not a problem with mobi2mobi since mobi2mobi uses standard Perl modules (patched a bit). |
|
![]() |
![]() |
![]() |
#410 |
Member
![]() Posts: 21
Karma: 10
Join Date: May 2011
Device: Amazon Kindle Paperwhite (2015)
|
Could you please be more specific when you say Palm/PDB.pm file?
I use the mobi book file and the mobi2mobi.exe and I run it from cmd. Other then that nothing. For other long titled books, it works just great. I can provide you with the book file in question... Do you want it in a PM? |
![]() |
![]() |
Advert | |
|
![]() |
#411 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,373
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I suspect you're trying to force all 52 characters into the Palm Database Name. Don't do that. Palm Db names have to be 32 bytes or less (it doesn't matter if your title is longer than that). Put the full title in an EXTH record (type 503). Devices/apps will use that for the metadata. They will only fall back on the Palm database name if there is no full title elsewhere in the mobi.
|
![]() |
![]() |
![]() |
#412 | |
Member
![]() Posts: 21
Karma: 10
Join Date: May 2011
Device: Amazon Kindle Paperwhite (2015)
|
Quote:
Again, the weird thing it doesn't happen for all large title files... I have reconverted another large title book in Calibre and it works just great in mobi2mobi. |
|
![]() |
![]() |
![]() |
#413 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,373
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
What version of calibre?
|
![]() |
![]() |
![]() |
#414 |
Member
![]() Posts: 21
Karma: 10
Join Date: May 2011
Device: Amazon Kindle Paperwhite (2015)
|
Calibre v0.8.23... Kovid Goyal said it's not a Calibre bug and I think it is true since converting a book with a large title (one or two less characters then the one I have problem with) works just great. He thinks it's a bug in mobi2mobi...
|
![]() |
![]() |
![]() |
#415 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,373
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Also, have you tried using the command-line version of mobi2mobi to see if the problem might be limited to mobi2mobi-gui? Can you give one of the titles that seem to trigger the problem (exactly as it was entered)? |
|
![]() |
![]() |
![]() |
#416 |
Member
![]() Posts: 21
Karma: 10
Join Date: May 2011
Device: Amazon Kindle Paperwhite (2015)
|
Sorry, but I don't have Python installed. I use directly the mobi2mobi.exe.
Yes I have tried both versions, in fact the error I get is in cmd not in gui... In gui I only get an exception. This is the exact title: The Demon-Haunted World: Science as a Candle in the Dark If for example I only write The Demon-Haunted World and reconvert in calibre, the file works great in mobi2mobi. For example the title: Pale Blue Dot: A Vision of the Human Future in Space works just great if I reconvert it in Calibre. In other words I only get the error when I try with a book reconverted using the title The Demon-Haunted World: Science as a Candle in the Dark. Thank you! Last edited by adriantc; 10-24-2011 at 08:23 AM. |
![]() |
![]() |
![]() |
#417 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,373
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I get the exact same results you do. With Calibre 0.8.20 and 0.8.21. The mobiperl tools (or more specifically, the Palm/PDB.pm perl library) expects the Palm Database Name to be terminated with a null character otherwise you get the error you're getting:
Code:
# database names must include a terminating NUL. die "bogus database name! is this really a PalmOS file?" unless $name =~ /.+\0/; |
![]() |
![]() |
![]() |
#418 | |
Member
![]() Posts: 21
Karma: 10
Join Date: May 2011
Device: Amazon Kindle Paperwhite (2015)
|
Quote:
|
|
![]() |
![]() |
![]() |
#419 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
And just open file book file in a binary editor and check that there is a 0 in the end. If not then the file is not generated correctly. Strangely enough the PDB.pm file I include with the mobipoicket distribution does not contain this check. The file on my Dabian machine have this check. It was so long time since I looked into this so I do not remember why I made a special PDB.pm file and why it was used. There was a reason. I think the standard one did not work for certain files. So the idea was that the one include should be used and looking at the code it seem to be used if running the Perl source. Strangely anough it seems not to be used in the packed Windows binary. |
|
![]() |
![]() |
![]() |
#420 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,373
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I couldn't tell you that. I don't know the "official" Palmdoc header specs. But I can tell you that looking at some older calibre source, it appears that the Db name is being null terminated like the Perl module expects. I don't currently have any recent calibre source to check.
|
![]() |
![]() |
![]() |
Tags |
mobi2mobi |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mobiperl Mobiperl - Perl tools for handling MobiPocket files | tompe | Kindle Formats | 890 | 01-17-2021 06:16 PM |
Problem updating metadata (using mobi2mobi command line and gui) | whitearrow | Kindle Formats | 3 | 12-05-2009 07:07 PM |
Mobi2mobi GUI has died again/New version? | AlexBell | Kindle Formats | 8 | 12-10-2008 08:13 PM |
Mobi2Mobi Mobi2Mobi GUI Cover Art Help? | huskies4all | Kindle Formats | 7 | 09-04-2008 11:31 AM |
I seem to have killed Mobi2Mobi gui | AlexBell | Kindle Formats | 8 | 09-02-2008 01:54 AM |