Word's description is not shown when there's more than one same word in a single dictionary #28

Open
opened 2023-03-06 05:52:51 +00:00 by child404 · 2 comments
child404 commented 2023-03-06 05:52:51 +00:00 (Migrated from github.com)

I guess, the problem is that lexic is not able to interact with sdcv, so when you have a word like "hello", and it's in many dictionaries (I personally installed 9 of them), you need additional user input, i.e. type the number (from 0 to 8 in my case) to select dictionary. However, lexic is able to only gather the single-shot output at once. However, it greatly works when you have non-popular words like "identifier", where I have it only in 4 dictionaries

UPD: there's a -n (or --non-interactive) flag to use it in scripts, so I assume it's needed for lexic to use this flag
UPD2: after investigating more time into the code, I found that there's an implemented lookup, but I'm unsure how does it work and work correctly

I guess, the problem is that `lexic` is not able to interact with `sdcv`, so when you have a word like "hello", and it's in many dictionaries (I personally installed 9 of them), you need additional user input, i.e. type the number (from 0 to 8 in my case) to select dictionary. However, `lexic` is able to only gather the single-shot output at once. However, it greatly works when you have non-popular words like "identifier", where I have it only in 4 dictionaries UPD: there's a `-n` (or `--non-interactive`) flag to use it in scripts, so I assume it's needed for `lexic` to use this flag UPD2: after investigating more time into the code, I found that there's an implemented lookup, but I'm unsure how does it work and work correctly
child404 commented 2023-03-06 06:40:31 +00:00 (Migrated from github.com)

Sorry, my mistake, probably due to installation of Webster (1913) twice...

Sorry, my mistake, probably due to installation of Webster (1913) twice...
child404 commented 2023-03-06 07:13:52 +00:00 (Migrated from github.com)

Reopening it as seems that I found what causes an issue.

When there's more than one output from a single dictionary (e.g. the word call from etymology), stardict shows the choice prompt at the end, but doesn't show word's descriptions
And to get word's descriptions, you have to choose one of the dicts (choices). But, as defined in the lexic-do-lookup, lexic just sends -1\n which causes to no description in the lexic buffer

Reopening it as seems that I found what causes an issue. When there's more than one output from a single dictionary (e.g. the word `call` from `etymology`), `stardict` shows the choice prompt at the end, but doesn't show word's descriptions And to get word's descriptions, you have to choose one of the dicts (choices). But, as defined in the `lexic-do-lookup`, `lexic` just sends `-1\n` which causes to no description in the lexic buffer
Sign in to join this conversation.
No description provided.