-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
= Description =
In the German language, nouns and verbs are distiguished by capitalisation.
For example, the following dictionary entries points to different words.
https://de.wiktionary.org/wiki/Essen
https://de.wiktionary.org/wiki/essen
I am attempting to convert German Wiktionary to dictd format. I observed that querying the dictionary does not work.
= Minimal reproducible example =
Create a new text file:
%%h Case Sensitive Dictionary
%s
%h hello
%d
%h Essen
%d
This is a noun.
%h essen
%d
This is a verb.
Format the dictionary:
dictfmt -p test-dict-case-sensitive --case-sensitive --utf8 --columns 0 < test-dict.txt
The dictfmt command produces two files,
[yc@mini:~]$ cat test-dict-case-sensitive.dict
00-database-dictfmt-1.13.3
This file was converted from the original database on:
Sun Jan 4 21:32:44 2026
The original data is available from:
unknown
The original data was distributed with the notice shown below. No
additional restrictions are claimed. Please redistribute this changed
version under the same conditions and restriction that apply to the
original version.
%%h Case Sensitive Dictionary
%s
Essen
This is a noun.
essen
This is a verb.
unknown
00-database-short
unknown
Eens
And the index file
[yc@mini:~]$ cat test-dict-case-sensitive.index
00databasealphabet IE F
00databasecasesensitive B B
00databasedictfmt1133 C b
00databaseinfo d GR
00databaseshort Hl f
00databaseurl Hd I
00databaseutf8 A B
Essen Gu Y
essen HG X
Then add the new case-sensitive dictionary to dictd service configuration
... omitted ...
database test-dict-case-sensitive {
data /home/yc/test-dict-case-sensitive.dict
index /home/yc/test-dict-case-sensitive.index
}
Only non-capitalised Query succeeds:
$ dict essen
From unknown [test-dict-case-sensitive]:
essen
This is a verb.
$ dict Essen
No definition found for "Essen".
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels