|
|
#391 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 833
Karma: 628976
Join Date: Sep 2013
Device: EnergySistemEreaderPro, Nook STG, Pocketbook 622, Bookeen Cybooks ...
|
Very cool, thanks for the effort and sharing it!
|
|
|
|
|
|
#392 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,107
Karma: 18924009
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
Nice work, @datyoma! I'm a linux guy, and it was a pain running the PocketBook dictionary converter in a windows VM. It will be nice to have a native tool for that.
|
|
|
|
|
|
#393 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 971
Karma: 149907
Join Date: Jul 2013
Location: Rotterdam
Device: HiSenseA5ProCC, OnyxNotePro, Note5, Kobo Glo, Aura
|
Nice!
|
|
|
|
|
|
#394 |
|
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2
Karma: 94894
Join Date: Mar 2026
Location: Berlin
Device: PocketBook InkPad 4
|
@rkomar so am I, the only relatively sane way I found to run the converter.exe was by building a Docker image with wine32 in it.
Code:
FROM debian:bookworm-slim
RUN dpkg --add-architecture i386 && \
apt-get update && apt-get install -y --no-install-recommends wine wine32
WORKDIR /data
ENTRYPOINT ["wine", "converter.exe"]
- run the original converter (docker run -v $(pwd):/data pb-converter input.xdxf meta/), rename the output file to input.orig.dic - run the new converter (./pbdt convert input.xdxf --meta-dir=meta/) - run ./pbdt show sdic index on both files - run ./pbdt show sdic block <file.dic> <offset> on two similar blocks (lists the keys) and feed it into vimdiff or the like to compare block contents - finally, there's ./pbdt lookup --debug command for checking raw definition bytes The converted files are very similar, but usually not byte-to-byte identical due to: - non-stable sorting of words with the same collated key in the original converter - minor differences in selecting block boundaries - treatment of special XML characters - I didn't pay much attention to this - not yet discovered bugs |
|
|
|
|
|
#395 |
|
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Mar 2026
Device: Pocketbook Verse Pro
|
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pocketbook dictionary | logan | PocketBook | 324 | 02-13-2026 02:19 PM |
| Dictionary coversion from .mobi to pocketbook format? | doctorat | PocketBook | 16 | 07-01-2020 05:34 PM |
| Webster's 1913 Dictionary in Pocketbook Format | luqmaninbmore | PocketBook | 8 | 05-27-2020 10:41 AM |
| SW>EN Dictionary for Pocketbook | tttrine | PocketBook | 3 | 06-09-2015 06:01 AM |