Page 1 of 1

.dsl bug: accepts only up to 32 entries per card

PostPosted: Sun Oct 05, 2014 1:55 am
by lhalda
Hello, I wanted to put a list of scrabble-accepted Czech nouns (singular nominative) into .dsl format. The problem I found is that GoldenDict wouldn't load over 32 entries with just one card. My original idea was to have one large list of words with just one line with \t in the end: my original attempt. Unfortunately, GoldenDict loads only the first 32 entries.

The workaround I found is putting empty card after each 32 entries:
Replace all:
Code: Select all
((\w{2,100}\r\n){32})
(I'm SO glad Notepad++ understands letters with diacritics as part of \w as well!)
With:
Code: Select all
$1\t\r\n

Finally working file :)

However this unnecessarily inflates the file. Is this a limitation of the format (and therefore GoldenDict's intended behavior), or a bug?

I used viewtopic.php?f=5&t=1232 and http://lingvo.helpmax.net/en/troubleshooting/dsl-compiler/how-entries-are-sorted/ as reference, couldn't find any DSL syntax anywhere...

Re: .dsl bug: accepts only up to 32 entries per card

PostPosted: Sun Oct 05, 2014 8:25 am
by Abs62
Try to use more fresh GD version.