04-25-2023, 02:56 AM | #226 |
Guru
Posts: 906
Karma: 149877
Join Date: Jul 2013
Location: Netherlands
Device: Cracked HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
|
Yes, you do need the stardict binaries for the conversion. Usually it is as simple as 'apt-get install stardict', iirc, or 'pacman -S stardict'. The binaries are then available at the commandline for use.
|
04-25-2023, 09:20 AM | #227 |
Groupie
Posts: 177
Karma: 100516
Join Date: Jan 2018
Device: Cybook Orizon, PocketBook Touch HD
|
I see. I imagine not stardict, but stardict-tools. The problem is that the binaries are available for Ubuntu 18 and 22, but not for 20. I had a quick try, but predictably the available packages for 18 and 22 don't install on 20. If I was really serious about I could look into compiling the source code, but...
|
Advert | |
|
04-30-2023, 07:02 AM | #228 |
Junior Member
Posts: 1
Karma: 10
Join Date: Apr 2023
Device: Kobo Libra 2
|
Hey @Markismus thank you for your hard work. I did take a look at your hosted files. There is already a En - Ger Pons dictionary but couldn't find any Ger-Eng Pons dictionary. I wonder if anyone already converted the Ger - En one yet?
(PONS Premium German -English Dictionary PONS) |
05-01-2023, 07:25 AM | #229 |
Guru
Posts: 906
Karma: 149877
Join Date: Jul 2013
Location: Netherlands
Device: Cracked HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
|
The newer PONS has a lot of frills that can't be interpreted by the script. I've uploaded the 2016 Pons premium de-en, though.
|
05-02-2023, 03:19 PM | #230 | |
Junior Member
Posts: 1
Karma: 10
Join Date: May 2023
Device: Pocketbook Touch HD3
|
Quote:
|
|
Advert | |
|
05-17-2023, 03:16 AM | #231 |
Guru
Posts: 906
Karma: 149877
Join Date: Jul 2013
Location: Netherlands
Device: Cracked HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
|
@pattila97 I've uploaded the converted English-Hungarian dictionary from jDictionary 2009, 67262 words (from the Stardict tar-ball) to pCloud. I think you can do better in terms of dictionary quality, but can't really assess the quality of the Hungarian descriptions.
|
05-17-2023, 03:19 AM | #232 | |
Guru
Posts: 906
Karma: 149877
Join Date: Jul 2013
Location: Netherlands
Device: Cracked HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
|
Quote:
Stardict editor converts between text, xml- and binary- Stardict format. So it only converts to and from csv-format to and from Stardict format. |
|
12-13-2023, 03:43 PM | #233 |
Grand Sorcerer
Posts: 6,643
Karma: 26963509
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
I am trying to get this to run in WSL (Windows Subsystem for Linux), Ubuntu-22.04. Installed stardict-tools and wine, have the perl code, pocketbook.exe and its config files in same folder.
Code:
perl pocketbookdic.pl ../stardict-rus_eng_full-2.4.2/rus_eng_full.ifo Can't locate DicGlobals.pm in @INC (you may need to install the DicGlobals module) (@INC contains: /home/mark/git/PocketBookDic/ /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.34.0 /usr/local/share/perl/5.34.0 /usr/lib/x86_64-linux-gnu/perl5/5.34 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.34 /usr/share/perl/5.34 /usr/local/lib/site_perl) at pocketbookdic.pl line 10. BEGIN failed--compilation aborted at pocketbookdic.pl line 10. Any suggestions on what might be wrong? |
12-13-2023, 03:45 PM | #234 |
Grand Sorcerer
Posts: 6,643
Karma: 26963509
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
I am trying to get this to run in WSL (Windows Subsystem for Linux), running Ubuntu-22.04. Installed stardict-tools and wine, have the perl code, pocketbook.exe and its language config files in same folder.
Code:
$ perl pocketbookdic.pl ../stardict-rus_eng_full-2.4.2/rus_eng_full.ifo Can't locate DicGlobals.pm in @INC (you may need to install the DicGlobals module) (@INC contains: /home/mark/git/PocketBookDic/ /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.34.0 /usr/local/share/perl/5.34.0 /usr/lib/x86_64-linux-gnu/perl5/5.34 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.34 /usr/share/perl/5.34 /usr/local/lib/site_perl) at pocketbookdic.pl line 10. BEGIN failed--compilation aborted at pocketbookdic.pl line 10. Any suggestions on what might be wrong? I know absolutely nothing about Perl. Last edited by tomsem; 12-13-2023 at 11:20 PM. |
12-14-2023, 02:35 AM | #235 |
Guru
Posts: 906
Karma: 149877
Join Date: Jul 2013
Location: Netherlands
Device: Cracked HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
|
Very nice that you're working with the script. First steps are usually harder, but you'll get the hang of it. You won't have to learn Perl for it. However, you will have to change some strings in the code to modify it to your PC. At the GitHub repository I have written some installation notes, so it might be worth it to look at them.
The script can't find the extra code that is separated from the script to keep things readable. As the dump from @INC states the path in which Perl searches for modules starts with the local library /home/mark/git/pocketbookdic. That's not where your script is, right? So you might point the script to your directory. Just search the script for this string and you'll find a statement for the script to look at the local library of modules. Iirc, it's a LIB statement before the USE statements that tell the script to use the local modules. This is basic Perl. So any trouble you have with it can be solved with Google using Perl and lib as keywords. Last edited by Markismus; 12-14-2023 at 03:03 AM. |
12-14-2023, 10:57 PM | #236 | |
Grand Sorcerer
Posts: 6,643
Karma: 26963509
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
Quote:
Still having issues installing required perl libraries. 'cpan' takes forever to think about things, then spits out hundreds of lines of logging, burying error messages in a haystack. Maybe this is 'basic Perl' but it is frustrating nevertheless. |
|
12-17-2023, 08:51 PM | #238 |
Grand Sorcerer
Posts: 6,643
Karma: 26963509
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
Why not remove the hard coded paths, e.g.:
use lib "." |
12-18-2023, 03:59 AM | #239 |
Guru
Posts: 906
Karma: 149877
Join Date: Jul 2013
Location: Netherlands
Device: Cracked HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
|
Because I have the modules at another place using them for another script, too. That was the reason for modularization. (Well, that and the script kept growing on me when I tried to tackle free-form mobi- and kindle- dictionaries. Still haven't managed those, though. Still to big a puzzle.)
However, feel free to add an extra line "lib '.';" so the modules in the same path are found and issue a pull request on github. I think you're the first to play with the script since I modularized it. Last edited by Markismus; 12-18-2023 at 04:12 AM. |
12-18-2023, 04:00 PM | #240 |
Member
Posts: 11
Karma: 10
Join Date: Dec 2023
Device: Kobo Libra Color, Pocketbook Touch HD 3, Kindle Paperwhite 11th
|
Can't access pCloud without Premium plan
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pocketbook dictionary | logan | PocketBook | 322 | 03-05-2024 09:48 AM |
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 |