View Single Post
Old 06-22-2015, 05:15 PM   #3
Markismus
Guru
Markismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicing
 
Markismus's Avatar
 
Posts: 955
Karma: 149907
Join Date: Jul 2013
Location: Rotterdam
Device: HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
@didina
I've checked your dictionary with StarDict-Editor. It checks out o.k. When I de- and recompile it via xml (Textual StarDict dictionary) it gives only some small errors. I can decompile to a tabbed text-file, but it gives the error "Error, duplicate word a." when I try to recompile it.

Koreader uses sdcv, the commandline version of stardict. When I give the command
Code:
sdcv -l --data-dir .
it usually lists the name of the dictionary in the directory and the wordcount. For all dictionaries that I tried, it gives a nice reply. For your dictionary it remains empty.

So I googled "sdcv syn-files" and got the result that syn support for sdcv is still a feature request.

If that doesn't stop you, you could try to edit the tabbed text file generated by StarDict-Editor. It crashes on the recompilation of it, because of the multiple entries for a: interj./prep./prep.:
Quote:
a <b>a</b><br/><font color="#457820">interj.</font> Ah!; (distress/regret/pity, appeal/entreaty, surprise/joy, objection/contempt);
a <b>a</b><br/><font color="#457820">prep.</font> ante, abb. a.; [in calendar expression a. d. = ante diem => before the day];
a <b>a</b><br/><font color="#457820">prep.</font> by (agent), from (departure, cause, remote origin/time); after (reference);
ab <b>ab</b><br/><font color="#457820">prep.</font> by (agent), from (departure, cause, remote origin/time); after (reference);
abactius <b>abactius, abactia, abactium</b><br/><font color="#457820">adj.</font> stolen/rustled (of cattle);
abactor <b>abactor, abactoris</b><br/><font color="#457820">n. m.</font> cattle thief, rustler; one who drives off;
abactus <b>abactus, abacta, abactum</b><br/><font color="#457820">adj.</font> driven away/off/back; forced to resign (office); restrained by; passed (night);
abactus <b>abactus, abactus</b><br/><font color="#457820">n. m.</font> cattle thieving, stealing of cattle, rustling;
Now what you read is: a | tab | whole lot of meaning | end-of-line.
If you remove the "end of line | a | tab" between the 1st and second line and the second and third line, you would end up with one entry for 'a'.

Now the new error would become "Error, duplicate word abactus."

So you could write a script to eliminate the multiple entries and recompile it with StarDict-Editor. However, you would still lose the function provide by the syn-files. Better look at Whitaker's Words here on mobileread before you decide that your dictionary is worth that extra effort.
Markismus is offline   Reply With Quote