![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 343
Karma: 1010002
Join Date: Apr 2008
Location: London. UK
Device: Marvin Reader on iPad Air (via Calibre)
|
Converting Mobi Dictionaries to other formats
Is there a way to convert Mobi Dictionaries to another format and have the links and lookup options preserved?
I tried converting to ePub in Calibre, but the links were broken and the "Lookup a word" option at the start of the dictionary didn't work either? Is there a way to do this? regards Christo |
![]() |
![]() |
![]() |
#2 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,590
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Quote:
I don't think there are any current tools form converting Mobipocket dictionaries into other formats. |
|
![]() |
![]() |
![]() |
#3 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 343
Karma: 1010002
Join Date: Apr 2008
Location: London. UK
Device: Marvin Reader on iPad Air (via Calibre)
|
OK - I will have a peek at the files and see if I can make sense of it. Dictionaries do seem to be handled differently from a conventional book (obviously). I just hoped the steps were already known!
|
![]() |
![]() |
![]() |
#4 |
Kindler of the Flame
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 582
Karma: 646016
Join Date: Oct 2009
Location: US of A
Device: K DX,3,KT,KP,KF, KFHD; Nook C, PRS600, iPad, Xoom, N900, N810, Zaurus
|
Unless I am mistaken mobiunpack.py does not preserve all of the original tags and structure of the dictionary and loses lots of information.
|
![]() |
![]() |
![]() |
#5 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,590
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Quote:
It should be fairly straightforward to tweak mobiunpack to also dump out all the EXTH fields in some simple text format - why not give it a go? |
|
![]() |
![]() |
![]() |
#6 | |
Enthusiast
![]() Posts: 41
Karma: 12
Join Date: Jul 2009
Device: ppc
|
Quote:
Code:
<idx:entry>..</idx:entry> <idx:orth>Label of entry in Index</idx:orth> <idx:key name="xx">..</idx:key> So I could not generate it as what it was after unpack the dic. |
|
![]() |
![]() |
![]() |
#7 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
What is it in the ePub reader that you were expecting would do the lookup? This is a function of the reader software, not the dictionary itself.
|
![]() |
![]() |
![]() |
#8 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,590
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Quote:
|
|
![]() |
![]() |
![]() |
#9 | |
Enthusiast
![]() Posts: 41
Karma: 12
Join Date: Jul 2009
Device: ppc
|
Quote:
|
|
![]() |
![]() |
![]() |
#10 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,590
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Quote:
I suspect that it might be possible to process the HTML to convert it back into the tagged format, because it is very regularly coded. But it would be quite a lot of effort. Sorry for misleading you. |
|
![]() |
![]() |
![]() |
#11 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,439
Karma: 5703082
Join Date: Nov 2009
Device: many
|
Hi,
I looked at a Mobi dictionary I had by running strings and found it had a number of additional sections not usually found in a normal mobi book. These section types names were: INDX, IDXT, ORDT, SPL1, SPL2, SPL3, SPL4, SPL5, SPL6 If I run "strings" on a dictionary that is a .mobi file, I find a sequences of INDX followed by selected words that span the alphabet ending with a IDXT. This looks like the first index table and that redirects you by comparison to the next layer of INDX tables which are much longer and seem to be all of the words in the dictionary in one of the segments covered in the first INDX table. These must be generated by the missing code you noticed. You could possibly modify mobiunpack to find and identify and dump these extra sections and use this information to put back the original code. Unfortunately, I have no idea which bytes in the header point to the number of each of these section types and their starting offset. So it would take some exploring to reverse all of this out. The missing code related pieces are in the dictionary .mobi, but without info on how to find them and use them they are not very useful. |
![]() |
![]() |
![]() |
#12 | |
Enthusiast
![]() Posts: 41
Karma: 12
Join Date: Jul 2009
Device: ppc
|
Quote:
I enjoyed your every word and is feeling warm, without you (and others) , we could not get close to the secret of mobi book. |
|
![]() |
![]() |
![]() |
#13 |
Enthusiast
![]() Posts: 41
Karma: 12
Join Date: Jul 2009
Device: ppc
|
Mobi book on PC or PPC(WM) have some features, which Kindle doesn't has. Although Mobipocket has a back page bug, I found no other ereader replaces it completely in coming future.
With Mobi commercial dictinary, I just want to learn how to make it or some tips. From dic-unpacked html, I observe that it use database and javascript. Using database, it could fine the search function and make the full search look very attactive. |
![]() |
![]() |
![]() |
#14 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,251
Karma: 3720310
Join Date: Jan 2009
Location: USA
Device: Kindle, iPad (not used much for reading)
|
The Mobipocket info on dictionaries might be helpful: http://www.mobipocket.com/dev/articl...e=indexing.htm.
For unpacking a .mobi to html, you might want to try the MobiPerl program mobi2html, in raw mode. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
converting a lit (and prc) dictionaries to stardict | Brandobras | Workshop | 2 | 09-05-2014 07:15 AM |
Converting Encarta Dictionaries to Mobipocket Tutorial | owl123 | Kindle Formats | 16 | 06-16-2011 03:35 PM |
Converting Formats | Neelly | Sony Reader | 10 | 09-26-2010 05:30 PM |
converting from standard mobi to compressed mobi | noideaatall | Kindle Formats | 6 | 07-11-2010 03:10 PM |
Converting StarDict (and other) dictionaries to iPad | owl123 | Apple Devices | 0 | 06-22-2010 06:38 AM |