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

How can i use offline dict ? #36

Closed
adriannedbailo opened this issue Mar 21, 2021 · 2 comments
Closed

How can i use offline dict ? #36

adriannedbailo opened this issue Mar 21, 2021 · 2 comments

Comments

@adriannedbailo
Copy link

I don't understand offered way. Who can help me?

@oltodosel
Copy link
Owner

You need to have your own dictionary in the format - one translation per line; word and its translation is separated by \t.
\t is a symbol that appears when you press Tab key on your keyboard.
In config file change path to your dictionary:

tab_divided_dict_fname = '~/d/python_shit/mpv/scripts/z.dict'

@2V3EvG4LMJFdRe
Copy link

2V3EvG4LMJFdRe commented May 16, 2021

Should the dictionary be added as follows?

#	tab_divided_dict - simple offline dictionary with word \t translation per line
translation_function_names = ['tab_divided_dict', 'reverso']
# path to the offline dictionary
tab_divided_dict_fname = '~/.config/mpv/scripts/french.dict'

As soon as I add tab_divided_dict, the script won't launch any more.

edit: never mind, google dict is instant and marvellously formatted, I'll just go with that.

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

3 participants