View Single Post
Old 05-31-2013, 10:10 AM   #6
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,731
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by donMaranzano View Post
Hi,
I have an error in the command window to execute command “”tab2opf.exe dict.exe”"

” Traceback : (most recent call last):
File “tab2opf.py”, line 240, in (module)
ValueError: need more than 1 value to unpack”

Please tell me what am I doing wrong…
Most likely your input file format is incorrect. I.e. it's not a tab delimited file.
Note that each line must contain one headword followed by a tabulator and the translation (the translation can be multiple words, but mustn't contain line breaks.).
The best way to prepare the input file is to use a spreadsheet software. E.g. MS Excel or LibreOffice Calc. Just make sure that the first column contains the headword and the second word the definition(s) for the headword in the left column. When you're done select both columns and copy the text into a text editor (e.g. Notead) and save it as a utf8-8 Unicode file.
Depending on where you got your source file from, you might also be able to use pyGlossary to convert your file to a tab-delimted file if it's formatted in a way that pyglossary supports. Of course, you'll also need Python.

If you're source file is unstructured, you probably won't be able to convert it to format that tab2opf can handle unless you know your way around an editor with regular expression support.

You could also try to find an English-Bulgarian BGL file and convert it following the instructions on this page.
Doitsu is offline   Reply With Quote