| 
			
			 | 
		#106 | 
| 
			
			
			
			 Digital Amanuensis 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#107 | 
| 
			
			
			
			 Digital Amanuensis 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#108 | 
| 
			
			
			
			 Connoisseur 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 86 
				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'
Last edited by mietek81; 04-17-2015 at 08:10 AM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#109 | 
| 
			
			
			
			 Digital Amanuensis 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 Last edited by AlPe; 04-17-2015 at 08:27 AM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#110 | 
| 
			
			
			
			 Connoisseur 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 86 
				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! Last edited by mietek81; 04-17-2015 at 10:20 AM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#111 | 
| 
			
			
			
			 Digital Amanuensis 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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) Code: 
	Output D1+D2 (with --merge-definitions and --merge-separator=" | "): (word0, defD) (word1, defA | defB | defE) (word2, defC | defF | defG)  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#112 | 
| 
			
			
			
			 Enthusiast 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30 
				Karma: 56426 
				Join Date: Jun 2011 
				Location: San Francisco 
				
				
				Device: Kobo Glo HD 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			English -> Czech
		 
		
	
		
		
			 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#113 | 
| 
			
			
			
			 Digital Amanuensis 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 727 
				Karma: 1446357 
				Join Date: Dec 2011 
				Location: Turin, Italy 
				
				
				Device: Several eReaders and tablets 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Added, thank you!
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#114 | 
| 
			
			
			
			 Enthusiast 
			
			![]() 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 Last edited by huuduc1kk2; 01-09-2022 at 12:27 AM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#115 | 
| 
			
			
			
			 Enthusiast 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30 
				Karma: 56426 
				Join Date: Jun 2011 
				Location: San Francisco 
				
				
				Device: Kobo Glo HD 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			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!
		 
		
	
		
		
			 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#116 | 
| 
			
			
			
			 Digital Amanuensis 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#117 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 1 
				Karma: 10 
				Join Date: May 2015 
				
				
				
				Device: Kobo Touch 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			English - Serbian  
		
	
		
		
			 
		 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#118 | 
| 
			
			
			
			 Digital Amanuensis 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 727 
				Karma: 1446357 
				Join Date: Dec 2011 
				Location: Turin, Italy 
				
				
				Device: Several eReaders and tablets 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Added, thank you.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#119 | 
| 
			
			
			
			 Member 
			
			![]() 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.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#120 | 
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,698 
				Karma: 79983758 
				Join Date: Nov 2007 
				Location: Toronto 
				
				
				Device: Libra H2O, Libra Colour 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Remember a user added dictionary has to replace one of the existing ones; so the Swedish-English one is replacing the German-English one.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
            
| Tags | 
| kobo dictionaries | 
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| New custom English dictionaries | ShellShock | Kobo Developer's Corner | 166 | 09-22-2020 03:48 PM | 
| Kobo desktop loading dictionaries | brudigia | Kobo Reader | 1 | 07-16-2014 01:55 PM | 
| Touch building custom dictionaries, especially Japanese-English | tshering | Kobo Reader | 0 | 07-12-2012 07:00 PM | 
| Custom dictionaries for 350/650? | 1drey | Sony Reader | 5 | 12-28-2010 01:49 PM | 
| non-English dictionaries in eReader on iPod Touch? | ficbot | Reading and Management | 1 | 10-11-2008 10:04 AM |