Git Product home page Git Product logo

Comments (6)

Yao-DY avatar Yao-DY commented on August 22, 2024

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.

kevinhendricks avatar kevinhendricks commented on August 22, 2024

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.

kevinhendricks avatar kevinhendricks commented on August 22, 2024

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.

Yao-DY avatar Yao-DY commented on August 22, 2024

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.

kevinhendricks avatar kevinhendricks commented on August 22, 2024

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.

Yao-DY avatar Yao-DY commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.