bible-plus-pdb-format

119 views
Skip to first unread message

Raphael

unread,
Oct 18, 2011, 11:01:54 AM10/18/11
to symbia...@googlegroups.com
I'm trying to write a program (QT/QML) to read the PDB. PDB struct is easy to find. But structs used by Bible+ is not documented (I've found a forum post that an user writing a reader for PocketPC)

I found the great page made by Yohanes (http://yohan.es/bible-pdb/bible-plus-pdb-format/), that describes the structs. But I've found a problem in WordList, reading my PDB. And this PDB works with  SymbianBible). 

Using a HexEditor, I've started to decode the PDB to find the pointers to "PDB Records".At Record 1, the Word Index starts (describe in your page). 27 entries.

But I've found:

WL = Word Length
TW = Total Words (in HEX)

WL - TW
01 - 2D (45)
02 - D7 (215)
03 - 029E (670)
04 - 0634 (1588)
05 - 0CEC (3308)
06 - 0FFF
06 - 00E1
...
How many words with 6 chars do we have? 0x0FFF + 0x00E1? Looking at hexeditor, theres aprox 0x0B2B (2859) words with 6 chars. Until WL=5, the TW is correct.

How to decode that?









PBFormat.txt

Yohanes Nugroho

unread,
Oct 18, 2011, 9:48:01 PM10/18/11
to symbia...@googlegroups.com
Hi,

I can't remember the detail about the PDB format and currently I don't
have time to check on the details, but I have source code in Java
which should be easier to understand and port

http://www.compactbyte.com/bb-bible/download/source/

The source is for blackberry, but the reader works in desktop (run
test.sh for testing).

Or you can just use my c++ version, but this is mostly unreadable,
because when I ported the code from Palm I didn't understand the file
format.

Clone the repository here:

https://gitorious.org/symbianbible/symbianbible/

then go to the readertest directory, and type make (you don't need
symbian environment setup for the readertest), it uses POSIX calls and
runs in Linux (and it should run in Mac or Cygwin).

--
Regards
Yohanes
http://yohan.es/

> --
> You received this message because you are subscribed to the Google Groups
> "symbianbible" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/symbianbible/-/f54XlXCelmEJ.
> To post to this group, send email to symbia...@googlegroups.com.
> To unsubscribe from this group, send email to
> symbianbible...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/symbianbible?hl=en.
>

Reply all
Reply to author
Forward
0 new messages