Quote:
Originally Posted by donMaranzano
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.