Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dict: MIME OPTION problem #1

Open
Michahel opened this issue Sep 25, 2016 · 1 comment
Open

dict: MIME OPTION problem #1

Michahel opened this issue Sep 25, 2016 · 1 comment

Comments

@Michahel
Copy link

Michahel commented Sep 25, 2016

The version number of the dict: 1.12.1/rf

How to reproduce the problem.

Go to the terminal prompt. Enter the command
dict -h dict.bibleonline.ru --mime "ide"
and press enter. You will not receive any response from the DICT-server.
Now, if you enter another command:
dict -h dict.bibleonline.ru --mime "ide" "idea"
You will have the following result:

1 definition found

From Греческо-русский лексикон Нового Завета [ell-rus_strong]:

  Content-type: text/html; charset=utf-8
  Content-transfer-encoding: 8bit

  2397  ἰδέα  idea
  вид (1. наружность, внешность;<BR>2. разновидность, тип);<BR><I TITLE='синоним
' STYLE='COLOR: GREEN; CURSOR:DEFAULT'>син.</I> 3444 (μορφή), 4976 (σχῆμα).

Make one more test:

dict -h dict.bibleonline.ru --mime - "ide" "idea"
1 definition found

From Греческо-русский лексикон Нового Завета [ell-rus_strong]:

  Content-type: text/html; charset=utf-8
  Content-transfer-encoding: 8bit

  2396  ἴδε   ide
  вот, се, смотри, посмотри;<BR><I TITLE='второе лицо, единственное число, повел
ительное наклонение, действительный залог от' STYLE='COLOR: GREEN; CURSOR:DEFAUL
T'>2-е л. ед.ч. повел. действ. от</I> 1492 (εἰδῶ, οἶδα).
1 definition found

From Греческо-русский лексикон Нового Завета [ell-rus_strong]:

  Content-type: text/html; charset=utf-8
  Content-transfer-encoding: 8bit

  2397  ἰδέα  idea
  вид (1. наружность, внешность;<BR>2. разновидность, тип);<BR><I TITLE='синоним
' STYLE='COLOR: GREEN; CURSOR:DEFAULT'>син.</I> 3444 (μορφή), 4976 (σχῆμα).

Conclusion: The element following the mime option (--mime) is treated as an parameter for this option. While the mime option does not have a parameter.

@Michahel Michahel changed the title MIME OPTION problem dict: MIME OPTION problem Jan 21, 2018
@Michahel
Copy link
Author

This should fix it. Change line 1366 in dict.c to
{ "mime", 0, 0, 'M' },

Michahel added a commit to Michahel/dictd that referenced this issue Feb 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant