Comments (6)
Have you solved this problem? I have encountered a similar problem to yours. Reported errors when unpacking an dictionary.
The following is the error message.
Palm DB type: BOOKMOBI, 38548 sections.
Unpacking a Mobipocket 7 book...
Processing Mobipocket 7 section of book...
Mobi Version: 7
Codec: utf-8
Title: 汉典
Palmdoc compression
Unpacking images, resources, fonts, etc
Extracting image: cover38542.gif from section 38542
Extracting image: image38543.jpeg from section 38543
Unpacking raw markup language
Write ncx
Info: Document contains orthographic index, handle as dictionary
Parsing metaOrthIndex
orthIndexCount is 106
orth entry uses ordt2 lookup table of type 0
Read dictionary index data
Error: 2
Traceback (most recent call last):
File "F:\kindle\KindleUnpack\KindleUnpack.pyw", line 370, in unpackEbook
kindleunpack.unpackBook(infile, outdir, apnxfile, epubversion, use_hd, dodump=dump, dowriteraw=writeraw, dosplitcombos=splitcombos)
File "F:\kindle\KindleUnpack\lib\kindleunpack.py", line 923, in unpackBook
process_all_mobi_headers(files, apnxfile, sect, mhlst, K8Boundary, False, epubver, use_hd)
File "F:\kindle\KindleUnpack\lib\kindleunpack.py", line 844, in process_all_mobi_headers
processMobi7(mh, metadata, sect, files, rscnames)
File "F:\kindle\KindleUnpack\lib\kindleunpack.py", line 627, in processMobi7
positionMap = dictSupport(mh, sect).getPositionMap()
File "lib\mobi_dict.py", line 218, in getPositionMap
assert len(tagMap[0x02]) == 1
KeyError: 2
from kindleunpack.
No, and I can not as dictionaries in some of the older formats have never been reverse engineered.
Without examples to work from and the correct before and after html to see, reversing an older dictionary in a language you do not speak is next to impossible.
If this is a project you want to take on I would supply whatever help I could.
from kindleunpack.
There was an older c based mobi library that did have somewhat better dictionary support. You may still be able to find it on the web.
from kindleunpack.
There was an older c based mobi library that did have somewhat better dictionary support. You may still be able to find it on the web.
Thank you for tell me.
Do you mean "mobi library" a program (or script)?Can you tell me its name by the way. I searched "c based mobi library" on Bing but didn't find any useful information.
Finally, let me express my thanks again.
from kindleunpack.
You might search for "libmobi" on github. It was about 5 years back I saw it though. Perhaps you can find a fork that still exists.
from kindleunpack.
You might search for "libmobi" on github. It was about 5 years back I saw it though. Perhaps you can find a fork that still exists.
Thank you so much
from kindleunpack.
Related Issues (20)
- unpack awz4 is grayed out HOT 2
- UnicodeEncodeError HOT 4
- Crash unpacking calibre-generated 'both' MOBI files HOT 29
- Unable to unpack azw file with .opf content HOT 5
- Unpacked files size doubled HOT 7
- Script throws AttributeError when parsing NCX navList HOT 5
- except error: Processing ncx / toc HOT 7
- Fix simple typo: specifc -> specific
- Re-packing to .mobi HOT 1
- Have considered package kindle ebooks parser into a pip package? HOT 5
- Incorrect language codes HOT 5
- Some Inflection data lost in the html file produced from kindle dictionary by KindleUnpack HOT 1
- KindleUnpack_ReadMe.htm references incorrect Python version HOT 2
- Incorrect version displayed on screen in DumpMobiHeader_v023.py HOT 1
- Convert `original-resolution` to `rendition:viewport` HOT 20
- encoding issue with source code under Microsoft Windows and default codepage HOT 1
- Book title not escaped in NCX HOT 8
- AttributeError: 'array.array' object has no attribute 'tostring' proposed fix HOT 4
- imghdr used in cover will be removed in python 3.13 HOT 4
- Named character references are not allowed in ePub HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kindleunpack.