[Bug report] makedict doesn't recognize stardict dictionaries with html fields

304 views
Skip to first unread message

Alessandro Pezzoni

unread,
Oct 7, 2012, 11:51:31 AM10/7/12
to xdxf-...@googlegroups.com
Dear list,
first of all, this is my first post. I'm writing here because the xdxf SourceForge bugtracker seems to be inactive and the xdxf forum seems to be down. Please let me know if there is a more appropriate place to report bugs.

When trying to convert a stardict dictionary file with html fields with makedict I get the following error:
"Not supported data type: h"

A quick inspection of makedict source code (stardict_parser.cpp from svn trunk [1]) reveals that only pure text (m), phonetic (t), and xdxf markup (x) fields are currently supported. See [2] as a reference, for example.

Here [3] you can find the dictionary I tried to convert (which I got from stardict's own wiki page [4], so I think is legit).
I would give a stab at this myself, but I don't know anything about C++ (other than some basic C syntax).

Alessandro

[1] http://xdxf.svn.sourceforge.net/viewvc/xdxf/trunk/src/stardict_parser.cpp?revision=117&view=markup
[2] https://code.google.com/p/babiloo/wiki/StarDict_format
[3] http://abloz.com/huzheng/stardict-dic/dict.org/stardict-collins5-2.4.2.tar.bz2
[4] https://code.google.com/p/stardict-3/wiki/DownloadDictionaries

Lenny Soshinskiy

unread,
Oct 8, 2012, 6:14:58 PM10/8/12
to xdxf-...@googlegroups.com
I'm sorry, but all people who where coding makedict left. But you may write them directly (https://github.com/Dushistov and https://github.com/kubtek)

jare...@poczta.onet.pl

unread,
Jun 20, 2013, 3:43:29 AM6/20/13
to xdxf-...@googlegroups.com
On Sunday, October 7, 2012 5:51:31 PM UTC+2, Alessandro Pezzoni wrote:

When trying to convert a stardict dictionary file with html fields with makedict I get the following error:
"Not supported data type: h"


Hi Alessandro
 
I just came to this problem too. As a simplest workaround you may edit the ifo file and change the letter h to t in line:
sametypesequence=h

The resulting dictionary is uncomfortable to use, but readable. It contains a lot of unrecognized tags like B, FONT, but this may not be necessarily the case with all the dictionairies. The makedict project at github (by soshial) seems to be alive now, so maybe an improvement will come to this issue.
Reply all
Reply to author
Forward
0 new messages