Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 04-04-2015, 05:16 AM   #106
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
Alright, no problem.

=== === ===

I have just pushed a new version (v2.0.2) of Penelope on GitHub, adding two functions:

1. reading StarDict .syn files, as requested above
2. the possibility of merging more definitions for the same index word, by specifying the switch(es) --merge-definitions and --merge-separator . The latter can be used to specify a string (the default value is a space: " ") to be placed between two definitions in the merged definition string.

Let me know if you find bugs.
AlPe is offline   Reply With Quote
Old 04-04-2015, 05:18 AM   #107
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
I also add that the current code is a mess, and it should undergo a deep refactoring, which I do not have time to do now. If someone wants to take over, I will be happy to.
AlPe is offline   Reply With Quote
Advert
Old 04-17-2015, 07:08 AM   #108
mietek81
Connoisseur
mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!
 
Posts: 77
Karma: 5414
Join Date: Mar 2013
Location: CK, Poland
Device: Kobo Glo, H2O
I am having this error when trying to merge several stardict dictionaries into one in stardict format:
Code:
michal@konrad ~/penelope/penelope-master/src
$ python penelope.py --sd -p /cygdrive/f/Pobrania/Gotowe/_dict/moje/SJP\ 1.0\ 2006/sjp-nc,/cygdrive/f/Pobrania/Gotowe/_dict/moje/SF\ 1.0\ 2006/sf-nc,/cygdrive/f/Pobrania/Gotowe/_dict/moje/SWB\ 1.0\ 2006/slo-nc,/cygdrive/f/Pobrania/Gotowe/_dict/moje/SWO\ 1.0\ 2006/swo-nc -f pl -t pl --output-sd
[INFO] Input dictionary has sequence type 'h'.
[INFO] Input dictionary does not have a synonym file.
[INFO] Input dictionary has sequence type 'h'.
[INFO] Input dictionary does not have a synonym file.
[INFO] Input dictionary has sequence type 'h'.
[INFO] Input dictionary does not have a synonym file.
[INFO] Input dictionary has sequence type 'h'.
[INFO] Input dictionary does not have a synonym file.
[INFO] Starting conversion with the following parameters:

[INFO] Dictionary file: new./cygdrive/f/Pobrania/Gotowe/_dict/moje/SJP 1.0 2006/sjp-nc.dict
[INFO] Index file:      new./cygdrive/f/Pobrania/Gotowe/_dict/moje/SJP 1.0 2006/sjp-nc.idx
[INFO] Language from:   pl
[INFO] Language to:     pl
[INFO] License:         GNU GPL 3
[INFO] Copyright:       GNU GPL 3
[INFO] Title:           Dictionary pl -> pl
[INFO] Description:     Dictionary pl -> pl
[INFO] Year:            2012

[INFO] Reading input dictionaries...
[INFO] Parsing the input data...
[INFO] Using the built-in parser...
[INFO] Outputting in StarDict format to file...
Traceback (most recent call last):
  File "penelope.py", line 2191, in <module>
    main()
  File "penelope.py", line 2147, in main
    write_to_stardict_format(config, parsed_data, debug)
  File "penelope.py", line 617, in write_to_stardict_format
    dictionary_file = open(dictionary_filename, "wb")
IOError: [Errno 2] No such file or directory: 'new./cygdrive/f/Pobrania/Gotowe/_dict/moje/SJP 1.0 2006/sjp-nc.dict'
Is it because of spaces in directory name? Or maybe rather something else as with the same input dictionaries I created a Kobo version of merged dictionary.

Last edited by mietek81; 04-17-2015 at 07:10 AM.
mietek81 is offline   Reply With Quote
Old 04-17-2015, 07:17 AM   #109
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
It is indeed a bug in penelope, due to poor path management. The fact that the tentative output is

'new./cygdrive/f/Pobrania/Gotowe/_dict/moje/SJP 1.0 2006/sjp-nc.dict'

suggests that you already have

'/cygdrive/f/Pobrania/Gotowe/_dict/moje/SJP 1.0 2006/sjp-nc.dict'

(indeed, it is one of your input files!) so the script attempts to create

'new.' + '/cygdrive/f/Pobrania/Gotowe/_dict/moje/SJP 1.0 2006/sjp-nc.dict'

instead of

'/cygdrive/f/Pobrania/Gotowe/_dict/moje/SJP 1.0 2006/new.sjp-nc.dict'

(here is the bug).

=== === ===

A workaround should be the following:

1. cd to the directory containing the python script
2. copy your input dictionaries there
3. run penelope.py from the same directory

(Not elegant, I know...)

Code:
$ cd ~/penelope/penelope-master/src

$ cp /cygdrive/f/Pobrania/Gotowe/_dict/moje/SJP\ 1.0\ 2006/sjp-nc* .
$ cp /cygdrive/f/Pobrania/Gotowe/_dict/moje/SF\ 1.0\ 2006/sf-nc* .
$ cp /cygdrive/f/Pobrania/Gotowe/_dict/moje/SWB\ 1.0\ 2006/slo-nc* .
$ cp /cygdrive/f/Pobrania/Gotowe/_dict/moje/SWO\ 1.0\ 2006/swo-nc* .

$ python penelope.py --sd -p sjp-nc,sf-nc,slo-nc,swo-nc -f pl -t pl --output-sd
should generate new.sjp-nc.* files with the merged contents.

Last edited by AlPe; 04-17-2015 at 07:27 AM.
AlPe is offline   Reply With Quote
Old 04-17-2015, 09:10 AM   #110
mietek81
Connoisseur
mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!
 
Posts: 77
Karma: 5414
Join Date: Mar 2013
Location: CK, Poland
Device: Kobo Glo, H2O
Ah, reliable as always!

Code:
michal@konrad ~/penelope/penelope-master/src
$ python penelope.py --sd -p sjp-nc,sf-nc,slo-nc,swo-nc -f pl -t pl --output-sd

...

[INFO] Creating compressed dictionary file new.sjp-nc.dict.dz...
[INFO] File new.sjp-nc.dict.dz created successfully!
[INFO] Files new.sjp-nc.dict.dz, new.sjp-nc.idx, and new.sjp-nc.ifo created successfully!
Another thing. When merging like this - I guess that definitions from scource dictionaries for the same word in merged dictionary are in order of provided to Penelope? So it would be: definition from sjp-nc, definition from sf-nc, definition from slo-nc, definition from swo-nc?

Last edited by mietek81; 04-17-2015 at 09:20 AM.
mietek81 is offline   Reply With Quote
Advert
Old 04-17-2015, 12:59 PM   #111
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
Yes, when merging more dictionaries into one, order of the (word, definition) is the same as the order of the input dictionaries. That is:

Code:
Input D1: (word1, defA), (word1, defB), (word2, defC)
Input D2: (word0, defD), (word1, defE), (word2, defF), (word2, defG)
Output D1+D2: (word0, defD), (word1, defA), (word1, defB), (word1, defE), (word2, defC), (word2, defF), (word2, defG)
=== === ===

Note that with the latest version (2.0.2), you can specify the

--merge-definitions

flag, which will collapse all the (word, def1), ..., (word, defN) into a single index entry (word, def1 ... defN), i.e. it concatenates the definitions from all the input dictionaries. Continuing the example above:

Code:
Output D1+D2 (with --merge-definitions):
(word0, defD)
(word1, defA defB defE)
(word2, defC defF defG)
There is also --merge-separator=STRING to specify the separator to be used when merging:

Code:
Output D1+D2 (with --merge-definitions and --merge-separator=" | "):
(word0, defD)
(word1, defA | defB | defE)
(word2, defC | defF | defG)
AlPe is offline   Reply With Quote
Old 05-05-2015, 09:28 PM   #112
unaj41
Enthusiast
unaj41 actually enjoys Vogon poetry.unaj41 actually enjoys Vogon poetry.unaj41 actually enjoys Vogon poetry.unaj41 actually enjoys Vogon poetry.unaj41 actually enjoys Vogon poetry.unaj41 actually enjoys Vogon poetry.unaj41 actually enjoys Vogon poetry.unaj41 actually enjoys Vogon poetry.unaj41 actually enjoys Vogon poetry.unaj41 actually enjoys Vogon poetry.unaj41 actually enjoys Vogon poetry.
 
Posts: 30
Karma: 56426
Join Date: Jun 2011
Location: San Francisco
Device: Kobo Glo HD
English -> Czech
Attached Files
File Type: zip dicthtml-en-cs.zip (6.22 MB, 1831 views)
unaj41 is offline   Reply With Quote
Old 05-06-2015, 04:19 AM   #113
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
Added, thank you!
AlPe is offline   Reply With Quote
Old 05-06-2015, 10:13 AM   #114
huuduc1kk2
Enthusiast
huuduc1kk2 began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Apr 2015
Device: Kobo glo, LifeBook plus
Here are 2 Dict EV and VE i have convert, it have break line
English-Vietnamese:

Vietnamese-English:


09/01/2022 Update: I Uploaded Files Here
Attached Files
File Type: zip dicthtml-en-vi_mab en de.zip (18.66 MB, 225 views)
File Type: zip dicthtml-vi_en.zip (8.61 MB, 139 views)

Last edited by huuduc1kk2; 01-08-2022 at 11:27 PM.
huuduc1kk2 is offline   Reply With Quote
Old 05-06-2015, 12:18 PM   #115
unaj41
Enthusiast
unaj41 actually enjoys Vogon poetry.unaj41 actually enjoys Vogon poetry.unaj41 actually enjoys Vogon poetry.unaj41 actually enjoys Vogon poetry.unaj41 actually enjoys Vogon poetry.unaj41 actually enjoys Vogon poetry.unaj41 actually enjoys Vogon poetry.unaj41 actually enjoys Vogon poetry.unaj41 actually enjoys Vogon poetry.unaj41 actually enjoys Vogon poetry.unaj41 actually enjoys Vogon poetry.
 
Posts: 30
Karma: 56426
Join Date: Jun 2011
Location: San Francisco
Device: Kobo Glo HD
Quote:
Originally Posted by AlPe View Post
Added, thank you!
No, thank you AlPe - you helped me couple years back with compiling these ... And while you at it please add the opposite (Czech -> En) dictionary too ... Thanks!
Attached Files
File Type: zip dicthtml-cs-en.zip (4.15 MB, 2340 views)
unaj41 is offline   Reply With Quote
Old 05-06-2015, 03:01 PM   #116
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
@unaj41 : sure, no problem. Added also the Czech->English.

@huuduc1kk2 : thank you, I added them to the first post.
AlPe is offline   Reply With Quote
Old 05-15-2015, 08:00 PM   #117
indiffereddie
Junior Member
indiffereddie began at the beginning.
 
Posts: 1
Karma: 10
Join Date: May 2015
Device: Kobo Touch
English - Serbian
Attached Files
File Type: zip dicthtml-eng-serb.zip (829.6 KB, 1637 views)
indiffereddie is offline   Reply With Quote
Old 05-16-2015, 02:57 AM   #118
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
Added, thank you.
AlPe is offline   Reply With Quote
Old 07-06-2015, 08:24 PM   #119
invention13
Member
invention13 began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Jun 2015
Location: Mission Viejo, CA
Device: kobo h20
swedish-english dictionary?

Is there a Swedish-English dictionary.
The ones I saw posted are ...de-en.zip which suggests it is a german-english dictionary.
invention13 is offline   Reply With Quote
Old 07-06-2015, 11:48 PM   #120
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,172
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
Remember a user added dictionary has to replace one of the existing ones; so the Swedish-English one is replacing the German-English one.
PeterT is offline   Reply With Quote
Reply

Tags
kobo dictionaries


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New custom English dictionaries ShellShock Kobo Developer's Corner 166 09-22-2020 02:48 PM
Kobo desktop loading dictionaries brudigia Kobo Reader 1 07-16-2014 12:55 PM
Touch building custom dictionaries, especially Japanese-English tshering Kobo Reader 0 07-12-2012 06:00 PM
Custom dictionaries for 350/650? 1drey Sony Reader 5 12-28-2010 12:49 PM
non-English dictionaries in eReader on iPod Touch? ficbot Reading and Management 1 10-11-2008 09:04 AM


All times are GMT -4. The time now is 02:44 PM.


MobileRead.com is a privately owned, operated and funded community.