![]() |
#421 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,386
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
I can also verify that commenting out the nul term check allows mobi2mobi to work on this particular title. After being converted by calibre. ![]() |
|
![]() |
![]() |
![]() |
#422 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
Code:
use FindBin qw($RealBin); use lib "$RealBin"; |
|
![]() |
![]() |
Advert | |
|
![]() |
#423 |
Member
![]() Posts: 21
Karma: 10
Join Date: May 2011
Device: Amazon Kindle Paperwhite (2015)
|
|
![]() |
![]() |
![]() |
#424 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,386
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I'm just not sure. The source (for the most recent version of calibre) that writes the Palmdoc header seems pretty straightforward and would appear to always create a database name that is 32 characters or less and null terminated.
Code:
title = str(self._oeb.metadata.title[0]) title = re.sub('[^-A-Za-z0-9]+', '_', title)[:31] title = title + ('\0' * (32 - len(title))) A) something screwy is happening in calibre that causes the null termination to fail on longer titles. B) mobi2mobi doesn't think the string is null terminated for some reason. To be perfectly honest... neither seem very likely to me. I'm a little stymied. |
![]() |
![]() |
![]() |
#425 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
Maybe the title contains unicode characters? |
|
![]() |
![]() |
Advert | |
|
![]() |
#426 |
Member
![]() Posts: 21
Karma: 10
Join Date: May 2011
Device: Amazon Kindle Paperwhite (2015)
|
|
![]() |
![]() |
![]() |
#427 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,386
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
With these really long titles, calibre appears to be filling the entire database name string with 32 characters from the title. The NUL doesn't occur until position 33: Code:
The_Demon-Haunted_World__Science\x00 It definitely seems like a calibre issue to me... IF it can be verified that a NUL is definitely supposed to be in the 32nd position (or less) of a valid Palmdoc header. EDIT: Many Kindle books no longer have a Palm DB Name, so I can't compare with one of theirs. The only Kindle book I have with a title longer than 32 characters doesn't have a Database name. Last edited by DiapDealer; 10-24-2011 at 07:07 PM. Reason: Typo |
|
![]() |
![]() |
![]() |
#428 | |||
Member
![]() Posts: 21
Karma: 10
Join Date: May 2011
Device: Amazon Kindle Paperwhite (2015)
|
Quote:
EDIT: Just got a reply from Kovid Goyal: Quote:
EDIT: And another reply from Kovid Goyal: Quote:
He said the fix will be implemented in Friday's release. Last edited by adriantc; 10-24-2011 at 02:04 PM. |
|||
![]() |
![]() |
![]() |
#429 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,386
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Hey, at least we figured out what was going on.
![]() Gotta respect Kovid for making a change like that—since technically it wasn't even a calibre issue. Luckily, the Db name isn't really that critical to most devices/apps anymore. Like I said, A lot of Amazon's ebooks don't even have one. |
![]() |
![]() |
![]() |
#430 | |
Member
![]() Posts: 21
Karma: 10
Join Date: May 2011
Device: Amazon Kindle Paperwhite (2015)
|
Quote:
|
|
![]() |
![]() |
![]() |
#431 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
The text at
https://wiki.mobileread.com/wiki/PDB#...atabase_Format is kind of ambiguous about if it should be always null terminated or not. It says: Quote:
|
|
![]() |
![]() |
![]() |
#432 |
Enthusiast
![]() Posts: 40
Karma: 10
Join Date: Jul 2011
Location: France
Device: iPad, Kindle 3, Kobo Glo, Kobo Aura
|
![]()
Hi,
I discover Mobi2Mobi GUI since i had my kindle ( for 1 Week ) i use it to change some tags in my mobi file. but i have some remarks about this tool specialy when i use it with calibre. I must have my mobi in one folder, calibre explode all in multi-folder. I must use open button to load mobi info, there are some improvement to work with calibre correctly i think. So i obtain vb sources and change some little line in source to add the possibility to pass filepath of the book in command line, show the error when mobi2mobi.exe can't open file. the last thing i change is to add special field for handling ECTH 503 ( there is this my kindle use for book name ) and each time i must unroll the combo to shox exth 503 and retype the value, with this modification i can handle simply this field. now i can directly use from calibre open with menu to open mobi file - with the restrication about 32 char in databasename and 0x00 terminated I don't know who maintain the source but if you want i can provide the modifycations i work with the version 10. or where must i send them second thing is it possible to obtain mobi2mobi sources ? sorry for my english but it's not my birth language Khan-dam |
![]() |
![]() |
![]() |
#433 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,386
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
You can download the latest source for all of the MobiPerl command-line tools from here: https://dev.mobileread.com/dist/tompe/mobiperl/. |
|
![]() |
![]() |
![]() |
#434 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 76
Karma: 928
Join Date: Jul 2008
Location: Down Under
Device: Kobo eReader
|
Hi,
I'm having issue with the mobi2mobi [filename], particulary in relation to its output being a binary or text file. Using grep on mobi2mobi [filename], i get at times, Author is Binary file (standard input) matches, and Title is e (standard input) matches where the bolded parts is the method returns. Conversion of files was done with the same calibre settings Edi: for some reason, the carriage return doesn't exist after the author line for some files :/ Last edited by Bismar; 11-19-2011 at 05:48 AM. |
![]() |
![]() |
![]() |
#435 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jan 2012
Device: Kindle Touch
|
Dictionary Support
It would be nice to see a dictionary option added to this program as with the kindle touch there is less flexibility over selecting the dictionary and publishers are putting them under the wrong language. In the past with other kindle this did not matter. I have one here that i had to unpack, adjust and then it wouldnt repack due to utf-8 errors, its much easier to go in directly and adjust it.
It would also be nicer to see more lanagauge in the language list as this list is more important now too, I see spanish wasnt listed and had to set it as neutal and hope it used the correct dictionary. In addition to adding spanish maybe you could add a manual entry and provide a list of codes etc for this. I see there have been no updates for a long time, has a new program superseded this? |
![]() |
![]() |
![]() |
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 |