dictd icon indicating copy to clipboard operation
dictd copied to clipboard

Add dictd configuration examples (or improve documentation)

Open hirmanpour opened this issue 3 years ago • 2 comments

Hi there,

I have been unable to find in the documentation (or in Google) any information regarding the syntax of the "filter" command.

It would be helpful to add to the dictd configuration examples section, some examples of filtering (for example to convert html to text).

Many thanks, Arach

hirmanpour avatar Jun 14 '21 19:06 hirmanpour

Actually, dictd documentation doesn't contain this kind of documentation and I think it's irrelevant to dictd. dictfmt(1) utility takes specifically formatted plain text on input. So, man page for dictfmt(1) also don't contain thinks like converting HTMLs to text etc Sorry for so long delay.

cheusov avatar Dec 06 '21 18:12 cheusov

Hi Aleksey and thanks for your reply.

man dictd specifies under the heading "Database Specification":

filter string Specifies the filter command. After the entry is extracted from the database, it will be filtered with this filter. This may be used to provide formatting for the entry (e.g., for html).

Surely, IMHO there should be an indication of the "filter command" syntax, or at least there should be a link to a place where the syntax of the filter command is described.

Or, is it that the "filter command" is somehow common knowledge that I'm not aware of or uses sed syntax ?

I think I'm missing something here ! :-)

Take care,

Arach

hirmanpour avatar Dec 26 '21 11:12 hirmanpour