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

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 01-20-2019, 04:32 PM   #1246
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 57,521
Karma: 215654900
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage, Yotaphone 2
Quote:
Originally Posted by mergen3107 View Post
@pdurrant, thank you!
Can you please tell me:
1) Can KindleUnpack extract only TOC? For the purpose of my project I don't need all raw files;
2) How can I get location of TOC entries in a mobi8 file? So far, I can see that it only provides ordered TOC entry reference numbers. As a temporary solution to find percentage of a chapter is to calculated respective cumulative file sizes, but that's very rough.
The python code of KindleUnpack should tell you how to obtain all the information you need, if it's actually in the file.
pdurrant is offline   Reply With Quote
Old 01-21-2019, 07:45 PM   #1247
mergen3107
Connoisseur
mergen3107 can tie a knot in a cherry stem with his or her tonguemergen3107 can tie a knot in a cherry stem with his or her tonguemergen3107 can tie a knot in a cherry stem with his or her tonguemergen3107 can tie a knot in a cherry stem with his or her tonguemergen3107 can tie a knot in a cherry stem with his or her tonguemergen3107 can tie a knot in a cherry stem with his or her tonguemergen3107 can tie a knot in a cherry stem with his or her tonguemergen3107 can tie a knot in a cherry stem with his or her tonguemergen3107 can tie a knot in a cherry stem with his or her tonguemergen3107 can tie a knot in a cherry stem with his or her tonguemergen3107 can tie a knot in a cherry stem with his or her tongue
 
mergen3107's Avatar
 
Posts: 93
Karma: 22824
Join Date: Feb 2012
Location: Cape Canaveral
Device: KPW3 (5.9.7 JB); Kindle 4NT Black (4.1.3 JB)
OK, thank you!
mergen3107 is offline   Reply With Quote
Old 05-01-2019, 12:24 PM   #1248
xeshxzh
Junior Member
xeshxzh began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2019
Device: Kindle Paperwhite
How to convert a .mobi dictionary to a txt file?

Hi pdurrant,

Thank you for maintaining the KindleUnpack library. Really appreciate it.

I am wondering if we can convert a .mobi dictionary file into a txt file. Each line is one word and its definition separated by a tab.

The reason I'm asking is:

I use KindleMate to convert words in Vocabulary Builder to Anki cards. And I want to use my own dictionary (Longman) when creating the Anki cards. Currently KindleMate only takes dictionary in txt format.

That's why I need to convert my mobi dictionary file into a txt.

Any help would be greatly appreciated.

Thank you,
Hannah
xeshxzh is offline   Reply With Quote
Old 05-01-2019, 12:51 PM   #1249
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: 20,281
Karma: 104227632
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Kindleunpack won't help you convert it to text. It will help you to convert your mobi to html. From there, you'd need to use something else to get it into a text-only format.

Just note that there isn't 100% support for kindle dictionaries. Some things work. Some things don't.
DiapDealer is offline   Reply With Quote
Old 05-01-2019, 02:25 PM   #1250
xeshxzh
Junior Member
xeshxzh began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2019
Device: Kindle Paperwhite
Thank you DiapDealer!

In my case, it doesn't seem to work. I can't even convert the mobi dictionary to html. No useful error message either.

Do you know if there is any other library that can parse mobi files? It doesn't have to be python.

Thank you again,
Hannah

Quote:
Originally Posted by DiapDealer View Post
Kindleunpack won't help you convert it to text. It will help you to convert your mobi to html. From there, you'd need to use something else to get it into a text-only format.

Just note that there isn't 100% support for kindle dictionaries. Some things work. Some things don't.
xeshxzh is offline   Reply With Quote
Old 05-01-2019, 04:14 PM   #1251
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: 20,281
Karma: 104227632
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
It's not the mobi format in general that's the problem. It's the extra bits that dictionaries use. There's always been issues with infections and such. I'm not the expert there, so I can't really say what the trouble is with mobi-dictionaries.

You might try calibre. I don't know if it will do any better on dictionaries.

But more than likely, anything that claims to convert/unpack mobi files/dictionaries is probably based on calibre or KindleUnpack code (and thus the same limitations). And a lot of the mobi stuff in KindleUnpack was ported from the older Perl-based Mobiperl project. Somebody blasts though every now and again with high hopes of creating a C/C++ or C# version, but I'm not sure if anyone has a fully-functional alternative yet.

Last edited by DiapDealer; 05-01-2019 at 04:17 PM.
DiapDealer is offline   Reply With Quote
Old 05-01-2019, 10:22 PM   #1252
xeshxzh
Junior Member
xeshxzh began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2019
Device: Kindle Paperwhite
Yea, I can understand why. I tried Calibre and it gave me "Memory Error".

But still, thank you for taking the time to explain to me. Appreciate it.

With gratitude,
Hannah

Quote:
Originally Posted by DiapDealer View Post
It's not the mobi format in general that's the problem. It's the extra bits that dictionaries use. There's always been issues with infections and such. I'm not the expert there, so I can't really say what the trouble is with mobi-dictionaries.

You might try calibre. I don't know if it will do any better on dictionaries.

But more than likely, anything that claims to convert/unpack mobi files/dictionaries is probably based on calibre or KindleUnpack code (and thus the same limitations). And a lot of the mobi stuff in KindleUnpack was ported from the older Perl-based Mobiperl project. Somebody blasts though every now and again with high hopes of creating a C/C++ or C# version, but I'm not sure if anyone has a fully-functional alternative yet.
xeshxzh is offline   Reply With Quote
Old 05-02-2019, 08:14 AM   #1253
jhowell
Wizard
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 2,834
Karma: 26152793
Join Date: Nov 2011
Location: Florida
Device: Oasis 2, Fire, iPad Air 2, Nexus 7
Quote:
Originally Posted by xeshxzh View Post
Yea, I can understand why. I tried Calibre and it gave me "Memory Error".
That error is common if you try to convert a large complex book, such as a dictionary, using the 32-bit version of calibre. Switching to the 64-bit version usually allows conversion to complete, however it can take hours or even days to do so.
jhowell is offline   Reply With Quote
Old 05-13-2019, 08:30 AM   #1254
patrik
Evangelist
patrik can program the VCR without an owner's manual.patrik can program the VCR without an owner's manual.patrik can program the VCR without an owner's manual.patrik can program the VCR without an owner's manual.patrik can program the VCR without an owner's manual.patrik can program the VCR without an owner's manual.patrik can program the VCR without an owner's manual.patrik can program the VCR without an owner's manual.patrik can program the VCR without an owner's manual.patrik can program the VCR without an owner's manual.patrik can program the VCR without an owner's manual.
 
Posts: 421
Karma: 185023
Join Date: Jan 2010
Location: Sweden
Device: Kobo Aura HD, Pocketbook InkPad 3
Is there anything I can do to get kindle samples to work for extracting epub?
patrik is offline   Reply With Quote
Old 05-13-2019, 08:48 AM   #1255
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 57,521
Karma: 215654900
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage, Yotaphone 2
Quote:
Originally Posted by patrik View Post
Is there anything I can do to get kindle samples to work for extracting epub?
Kindle samples are not complete files, so I expect that the unpack fall over when it gets to the bit of the file that's missing.
pdurrant is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can i rotate text and insert images in Mobi and EPUB? JanGLi Kindle Formats 5 02-02-2013 04:16 PM
PDF to Mobi with text and images pocketsprocket Kindle Formats 7 05-21-2012 07:06 AM
Mobi files - images DWC Introduce Yourself 5 07-06-2011 01:43 AM
pdf to mobi... creating images rather than text Dumhed Calibre 5 11-06-2010 12:08 PM
Transfer of images on text files anirudh215 PDF 2 06-22-2009 09:28 AM


All times are GMT -4. The time now is 09:07 PM.


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