Translate a word, listen to its pronunciation, see example sentences
Mercury is a web app that uses the Oxford Dictionaries to show you translations of a word that you specify. It also gives you a sound file that you can play to listen to the pronunciation of the English word. Further, Mercury also gives you some example sentences with the English word, so that you can see how to use the word in English sentences.
To use Mercury, you need API keys from Oxford Dictionaries API and an internet connection. After you've obtained the API keys, you can install Mercury and use it. You don't need any programming knowledge to either install or use Mercury.
Demo
To use Mercury, you need Python. Mercury uses Python 3.7. If you already have Python 3.7 on your computer, jump to step B.7. If you don't, begin with step A.1.
https://www.python.org/downloads/
.Looking for a specific release
section, locate the latest version of Python 3.7. This version will have a name like Python 3.7.5
or 3.7.7
. Click the version.https://www.jetbrains.com/pycharm/download/#section=windows
. Click the operating system you use, and click the Download button in the Community
section.After Python 3.7 and JetBrains PyCharm Community Edition are installed, you are ready to install Mercury.
Project Interpreter
section by clicking the arrow next to it. Select the New environment using option and, from the list, select Pipenv.Basic interpreter
field, browse to the location where you installed Python, and select the python.exe
file in that directory. If you just installed Python, this is the location you made a note of in step A.3.Pipenv executable
field, browse to the location where you installed Python, go to the Scripts
directory, and select the pipenv.exe
file.GitHub URL
. Click the arrow next to the Clone or download button and save the .zip
file on your computer..zip
file. Select all of the extracted files, and press CTRL+C.Project
tree on the left now has all the files that you copied over in the previous step.static
> config.json
file. Replace the three dots for app_id
and app_key
with your Oxford API credentials. Replace the three dots for source_language
with the code for the language for which you need English translations (see language codes). Save the config.json
file.mercury.py
file and click Run 'mercury'. A console opens at the bottom of the screen and you should see something similar to this image.http://127.0.0.1:5000/
. A browser page opens to show the Mercury interface.The user interface of Mercury is in English. You can change the text to your language.
static
> interface.json
file. You see the words and sentences that are used for the Mercury interface. Replace these with your own. Be careful about not changing anything to the left of the colon (:
). You can change the text to the right of the colon. Also be careful about not deleting any commas (,
), quotation marks ("
), or braces ({
and }
).http://127.0.0.1:5000/
. You should see your own text now. Return to JetBrains Pycharm and stop Mercury.http://127.0.0.1:5000/
.ترجمہ
in the Nastalikh script instead of entering the English transliterated tarjuma
in the Roman script.