03-26-2014, 08:11 AM | #1 |
Zealot
Posts: 105
Karma: 10
Join Date: Feb 2014
Device: none
|
[solved] StarDict: .IFO file missing. How to create/generate one?
EDIT: issue solved thanks to Doitsu's hint!
I have some dictionaries consisting of 3 files: cdi, dict, idx. I use them on my android phone with the app "colordict". I assume they do not work with GoldenDict because of the missing .IFO file. They do not get added to Goldendict. How could i generate the necessary "IFO" or otherwise make them working? Last edited by nikoski; 03-27-2014 at 01:08 PM. |
03-27-2014, 05:42 AM | #2 | ||
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Quote:
For this method, you'll need to create a dummy .ifo (plain text) file with the following information: Code:
StarDict's dict ifo file
version=2.4.2
bookname=DICTIONARY_NAME
sametypesequence=h
1. Download pyGlossary. (Unless you have a Mac or a Linux machine, you'll also need to install ActivePython or another Python distro, if you haven't already installed one.) 2. Unzip the archive with 7Zip. 3. Double-click pyglossary.bat to start pyGlossary. 4. Select StarDict (ifo) as input and output formats. 5. Click Browse, select the dummy .ifo file as the input file and click Load. 6. Select a different file name for the output .ifo file and click Convert. If all went well, pyGlossary should have created a new .ifo file with the following lines added: Code:
StarDict's dict ifo file version=2.4.2 wordcount=XXXX idxfilesize=XXXX bookname=DICTIONARY_NAME sametypesequence=h bookname=DICTIONARY_NAME |
||
Advert | |
|
03-27-2014, 08:36 AM | #3 |
Zealot
Posts: 105
Karma: 10
Join Date: Feb 2014
Device: none
|
Thanks, Doitsu, i appreciate very much your help.
But "pyGlossary.bat" does not start the GUI on my windows 8.1-x64. When i double-click on it there comes the standard dialog to select an aplication with which pyGlossary.bat should be opened. When i run it as Admin there comes another dialog saying: "src/pyglossary.pyw can not be found." But this file is there. I also tried all the versions 2.7 and 3.3 (x86 and x64) of the ActivePYthon. What could it be that prevents the GUI from starting? Last edited by nikoski; 03-27-2014 at 09:09 AM. |
03-27-2014, 09:18 AM | #4 | |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Instead of executing the .bat file, you can also double-click pyglossary.pyw in the \pyglossary-2010.10.03\src folder. If you don't see pyglossary.pyw (and several other files) in this folder or if it doesn't have the yellow and blue ActivePython icon, either your Python installation or folder extraction failed. (Both work fine on my x64 Win 8 machine.) Alternatively, you could also first try to simply copy the dummy .ifo file with the dictionary name to the GoldenDict content folder, because GoldenDict might not need the wordcount and idxfilesize entries. |
|
03-27-2014, 01:04 PM | #5 | ||
Zealot
Posts: 105
Karma: 10
Join Date: Feb 2014
Device: none
|
Quote:
But strange that the pyGlossary won't work on my PC I've extracted all for sure and have all the files in the incl. "pyglossary.pyw" and there are several with ActivePython icon: Quote:
Last edited by nikoski; 03-28-2014 at 03:16 PM. |
||
Advert | |
|
03-27-2014, 01:38 PM | #6 | |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
If so this might be the cause of the problem, because Python 3 introduced some syntax changes that can cause errors when running Python scripts not designed for Python 3. Since many other Python scripts for ebook/dictionary conversion etc. expect Python 2.7, you may want to uninstall Python 3 unless you need this specific version for other Python scripts. (You can display the Python version number by entering python at a command prompt.) |
|
03-27-2014, 01:45 PM | #7 |
Zealot
Posts: 105
Karma: 10
Join Date: Feb 2014
Device: none
|
I first installed python 3 but uninstalled it and now i have python 2.7 but the error remains the same.
How does the GUI of the pyglossary actually look? Do you maybe have a link on the internet to see how it looks when started? |
03-27-2014, 02:25 PM | #8 |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
|
03-28-2014, 03:04 PM | #9 |
Zealot
Posts: 105
Karma: 10
Join Date: Feb 2014
Device: none
|
Ok, i see, thank a lot once more!
Because the issue about the missing IFO file is now solved, for the time being i'm not going to try to get that script to work on my PC any more, but at least i know now how it should look when working correctly :-) |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Generate Catalog: How to save as .txt file? | allowingtoo | Library Management | 7 | 08-20-2013 04:01 PM |
[Old Thread] Generate Cover from First Page of PDF File | dp green | Calibre | 2 | 07-03-2012 04:53 AM |
Generate Cover missing | Chrysanthemum | Calibre | 1 | 01-13-2011 07:36 PM |
pulling an entire website into Calibre and generate an epub file using news function? | N13L5 | Calibre | 2 | 10-06-2010 10:00 PM |
can't generate a toc from an html file | p3aul | Calibre | 13 | 08-27-2010 06:44 AM |