Page 2 of 2

Re: Sample file for supported DSL features

PostPosted: Sat Aug 27, 2011 8:51 am
by Tvangeste
MaximeB wrote:Why do you have to be so aggressive?

We've been bugging ikm for a very long time with bug reports and feature requests for DSL support, and he probably spent *years* trying to make the DSL support in GoldenDict almost perfect, all in his personal time, completely for free. People who spend years on developing something tend to be pretty sensitive to broad statements, which is rather understandable.

Re: Sample file for supported DSL features

PostPosted: Sat Aug 27, 2011 8:54 am
by Tvangeste
ikm wrote:There are two features it doesn't support: subentries and includes

Ah, I forgot about includes. Not sure how important that is though. In all my years, I haven't seen a single DSL dictionary with #include directive. Maybe this #include stuff made sense when file systems couldn't handle large files. Now it doesn't make much sense.

Re: Sample file for supported DSL features

PostPosted: Tue Sep 06, 2011 9:58 am
by MaximeB
I am just a user without any background in software development. I just shared a file in the hope that it might help other users.
I do not know what FUD is. Whatever it is, I did not intend to disparage GoldenDict, of which I am a strong advocate among my friends.

Re: Sample file for supported DSL features

PostPosted: Tue Sep 06, 2011 11:07 am
by Tvangeste
MaximeB wrote: I just shared a file in the hope that it might help other users.

Which is greatly appreciated. Now we have a small standalone project with sample DSL dictionary, which could be pretty handy for those who intend to create new DSL dictionaries!

Re: Sample file for supported DSL features

PostPosted: Thu Sep 08, 2011 5:49 pm
by C2BlEv
Tvangeste wrote:Ah, I forgot about includes. Not sure how important that is though. In all my years, I haven't seen a single DSL dictionary with #include directive. Maybe this #include stuff made sense when file systems couldn't handle large files. Now it doesn't make much sense.


I did use #include a couple of years ago in a thesauri project to separate the main body of the dictionary from its index. It worked well. But then I just added index to the main dsl file.

How to install the .dsl example dictionary

PostPosted: Fri Apr 27, 2012 2:32 pm
by robertocm
MaximeB wrote:Hi,

... I have written a small DSL file that shows which features are supported and how to use them.
You can put is with your other dictionaries, and see its contents by searching for "sample entry".
BTW, I have tried to upload it as an attachment, but I get a message "The extension dsl is not allowed". I tried to change the extension to .txt with the same result.


Thank you very much!

Just want to comment about some difficultes when I tried to install your dsl dictionary (surely because of my poor computer skills).

I fist copied your code and pasted it in a .txt file, then changed to .dsl and move the file to the "content" GoldenDict subfolder.
The problem was that GoldenDict didn't detect the new dsl dictionary.

Finally, the solution was very simple: open the text file with notepad or similar, replace all sequences of white spaces at the beginning of each line for tabulations. Save and change again the file extension to .dsl if necessary.

Re: Sample file for supported DSL features

PostPosted: Wed Mar 31, 2021 1:26 am
by evelynedechen
I would like to include a description of the dictionary in the header of my DSL files. (so that the description appear in Goldendict when I right click on the dictionary name and ask for Dictionary Info).
Does anyone know how to do that?

Thank you.
Evelyne

Re: Sample file for supported DSL features

PostPosted: Mon Apr 05, 2021 7:13 am
by dg333
You should add an annotation file (.ann) if you want a description. It is a plain-text file in UTF-16. Headers are just headers.