Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to get dictd compatible dictionaries
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Jimmy2027
n00b
n00b


Joined: 12 May 2020
Posts: 30

PostPosted: Tue Jan 02, 2024 3:02 pm    Post subject: how to get dictd compatible dictionaries Reply with quote

I'm looking for a dictionary cli that allows for translation between multiple languages and definition lookup in multiple languages.
I stumbled upon dictd: https://wiki.gentoo.org/wiki/Dictd but I can't figure out how to find dictd compatible dictionaries.
There are a few english to english dictionaries available but no between language translations.

I know that freedict has many dictionaries available but freedict-tools, the tool necessary to convert their dicts to dictd is not available on portage.

Is there any way to get dictd compatible dictionaries or is there another dictionary tool that is better supported on gentoo?
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30922
Location: here

PostPosted: Tue Jan 02, 2024 6:12 pm    Post subject: Reply with quote

Debian dict packages seems to use these dicts.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
flexibeast
Guru
Guru


Joined: 04 Apr 2022
Posts: 324
Location: Naarm/Melbourne, Australia

PostPosted: Wed Jan 03, 2024 2:14 am    Post subject: Reply with quote

The freedict packages in the main repo - freedict-deu-eng, freedict-eng-fra, freedict-eng-ita, freedict-eng-swe, freedict-fra-eng and freedict-ita-eng - are already in dict format; their ebuilds, using the 'freedict' eclass, simply pull .tar.gz files from http://freedict.sourceforge.net/download/linux/ (which unfortunately is down right now).

The freedict.org FAQ says:
Quote:
Currently only one output format is supported: the dict format.

So i presume the dictionaries available on SourceForge are those pre-built by FreeDict's build system.
Back to top
View user's profile Send private message
flexibeast
Guru
Guru


Joined: 04 Apr 2022
Posts: 324
Location: Naarm/Melbourne, Australia

PostPosted: Wed Jan 03, 2024 2:20 am    Post subject: Reply with quote

i've just updated the dictd wiki page to say:
Quote:
Dictionaries in the dict format can be found in the app-dicts category with the prefixes dictd- and freedict-; the freedict packages install .tar.gz files available on SourceForge.
Back to top
View user's profile Send private message
flexibeast
Guru
Guru


Joined: 04 Apr 2022
Posts: 324
Location: Naarm/Melbourne, Australia

PostPosted: Wed Jan 03, 2024 6:27 am    Post subject: Reply with quote

i've also edited the wiki page to reference freedict.org/downloads, and opened an issue on b.g.o about possibly modifying the freedict eclass to download dictionaries from download.freedict.org, which would enable packaging many more freedict dictionaries.
Back to top
View user's profile Send private message
Jimmy2027
n00b
n00b


Joined: 12 May 2020
Posts: 30

PostPosted: Wed Jan 03, 2024 1:37 pm    Post subject: Reply with quote

thanks a lot for your help!

I didn't realise that the dictionaries available in the main repo already have a dictd compatible format.
The issue is that the ebuilds install the dictionaries under "/usr/lib64/dict/" while other ebuilds expect the dictionaries to be in "/usr/share/dict/": https://gitweb.gentoo.org/repo/gentoo.git/tree/app-dicts/dictd-wn/dictd-wn-3.0_p33-r1.ebuild

The path for the dictionaries can be edited in "/etc/conf.d/dictd" but as far as I can tell "/etc/init.d/dictd" expects only one path to be set.
Back to top
View user's profile Send private message
flexibeast
Guru
Guru


Joined: 04 Apr 2022
Posts: 324
Location: Naarm/Melbourne, Australia

PostPosted: Thu Jan 04, 2024 12:44 am    Post subject: Reply with quote

Ah, thanks for noting this! i've just added a new comment on the bug about it.
Back to top
View user's profile Send private message
Jimmy2027
n00b
n00b


Joined: 12 May 2020
Posts: 30

PostPosted: Thu Jan 04, 2024 5:39 pm    Post subject: Reply with quote

perfect, thanks a lot!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum