=
commited on
Commit
·
f4c7330
1
Parent(s):
3d61598
updated readme
Browse files- README.rst +18 -15
README.rst
CHANGED
@@ -113,7 +113,7 @@ This includes the google, pons, linguee and mymemory translator (at least for no
|
|
113 |
translators will be integrated in the future.
|
114 |
|
115 |
Imports
|
116 |
-
|
117 |
|
118 |
.. code-block:: python
|
119 |
|
@@ -125,7 +125,7 @@ Imports
|
|
125 |
|
126 |
|
127 |
Check Supported Languages
|
128 |
-
|
129 |
|
130 |
.. note::
|
131 |
|
@@ -141,7 +141,7 @@ Check Supported Languages
|
|
141 |
langs_dict = GoogleTranslator.get_supported_languages(as_dict=True) # output: {arabic: ar, french: fr, english:en etc...}
|
142 |
|
143 |
Language Detection
|
144 |
-
|
145 |
|
146 |
.. note::
|
147 |
|
@@ -156,7 +156,7 @@ Language Detection
|
|
156 |
|
157 |
|
158 |
Google Translate
|
159 |
-
|
160 |
|
161 |
.. code-block:: python
|
162 |
|
@@ -196,7 +196,7 @@ Google Translate
|
|
196 |
|
197 |
|
198 |
PONS Translator
|
199 |
-
|
200 |
|
201 |
.. note::
|
202 |
|
@@ -226,7 +226,7 @@ PONS Translator
|
|
226 |
|
227 |
|
228 |
Linguee Translator
|
229 |
-
|
230 |
|
231 |
|
232 |
.. code-block:: python
|
@@ -251,7 +251,7 @@ Linguee Translator
|
|
251 |
|
252 |
|
253 |
Mymemory Translator
|
254 |
-
|
255 |
|
256 |
.. note::
|
257 |
|
@@ -265,7 +265,7 @@ Mymemory Translator
|
|
265 |
translated = MyMemoryTranslator(source='auto', target='french').translate(text)
|
266 |
|
267 |
Usage from Terminal
|
268 |
-
|
269 |
|
270 |
For a quick access, you can use the deep_translator from terminal. For this to work, you need to provide
|
271 |
the right arguments, which are the translator you want to use, source language, target language and the text
|
@@ -292,7 +292,7 @@ If you want, you can also pass the source and target language by their abbreviat
|
|
292 |
$ deep_translator -trans "google" -src "en" -tg "de" -txt "happy coding"
|
293 |
|
294 |
Side Hint
|
295 |
-
|
296 |
|
297 |
Generally, I find the google and mymemory translators suitable for translating sentences, whereas
|
298 |
the pons and linguee translators are good choices if you want to translate words.
|
@@ -303,6 +303,15 @@ Links
|
|
303 |
Check this article on medium to know why you should use the deep-translator package and how to translate text using python.
|
304 |
https://medium.com/@nidhalbacc/how-to-translate-text-with-python-9d203139dcf5
|
305 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
306 |
===========================
|
307 |
The Translator++ mobile app
|
308 |
===========================
|
@@ -351,9 +360,3 @@ Here are some screenshots:
|
|
351 |
:height: 300
|
352 |
:alt: screenshot3
|
353 |
|
354 |
-
==========
|
355 |
-
Next Steps
|
356 |
-
==========
|
357 |
-
|
358 |
-
Take a look in the examples folder for more :)
|
359 |
-
Contributions are always welcome. Feel free to make a pull request and give me a feedback if you found the package useful or you are using it :)
|
|
|
113 |
translators will be integrated in the future.
|
114 |
|
115 |
Imports
|
116 |
+
--------
|
117 |
|
118 |
.. code-block:: python
|
119 |
|
|
|
125 |
|
126 |
|
127 |
Check Supported Languages
|
128 |
+
-------------------------
|
129 |
|
130 |
.. note::
|
131 |
|
|
|
141 |
langs_dict = GoogleTranslator.get_supported_languages(as_dict=True) # output: {arabic: ar, french: fr, english:en etc...}
|
142 |
|
143 |
Language Detection
|
144 |
+
-------------------
|
145 |
|
146 |
.. note::
|
147 |
|
|
|
156 |
|
157 |
|
158 |
Google Translate
|
159 |
+
-----------------
|
160 |
|
161 |
.. code-block:: python
|
162 |
|
|
|
196 |
|
197 |
|
198 |
PONS Translator
|
199 |
+
----------------
|
200 |
|
201 |
.. note::
|
202 |
|
|
|
226 |
|
227 |
|
228 |
Linguee Translator
|
229 |
+
-------------------
|
230 |
|
231 |
|
232 |
.. code-block:: python
|
|
|
251 |
|
252 |
|
253 |
Mymemory Translator
|
254 |
+
--------------------
|
255 |
|
256 |
.. note::
|
257 |
|
|
|
265 |
translated = MyMemoryTranslator(source='auto', target='french').translate(text)
|
266 |
|
267 |
Usage from Terminal
|
268 |
+
--------------------
|
269 |
|
270 |
For a quick access, you can use the deep_translator from terminal. For this to work, you need to provide
|
271 |
the right arguments, which are the translator you want to use, source language, target language and the text
|
|
|
292 |
$ deep_translator -trans "google" -src "en" -tg "de" -txt "happy coding"
|
293 |
|
294 |
Side Hint
|
295 |
+
----------
|
296 |
|
297 |
Generally, I find the google and mymemory translators suitable for translating sentences, whereas
|
298 |
the pons and linguee translators are good choices if you want to translate words.
|
|
|
303 |
Check this article on medium to know why you should use the deep-translator package and how to translate text using python.
|
304 |
https://medium.com/@nidhalbacc/how-to-translate-text-with-python-9d203139dcf5
|
305 |
|
306 |
+
|
307 |
+
==========
|
308 |
+
Next Steps
|
309 |
+
==========
|
310 |
+
|
311 |
+
Take a look in the examples folder for more :)
|
312 |
+
Contributions are always welcome.
|
313 |
+
Read the Contribution guildlines `Here <https://deep-translator.readthedocs.io/en/latest/contributing.html/>`_
|
314 |
+
|
315 |
===========================
|
316 |
The Translator++ mobile app
|
317 |
===========================
|
|
|
360 |
:height: 300
|
361 |
:alt: screenshot3
|
362 |
|
|
|
|
|
|
|
|
|
|
|
|