This is the core component of 2.x and 3.x
But also supports the translation work under the command line
One is hpn.py
, and one is hpn_plus.py
So, what is the difference between them?
For online translation, it is very important for the HTTP module has been use C language reconstruction and compliation, making this module the probability if error is very small
If you are going to deal with a large number of paragraphs, we recommend that you use hpn_plus.py
hpn.py
is the oldest version, and the smallest package dependency, this means that your computer only needs to install the Python
to run the program
But the hpn.py
process a large number of data will appear whrn the network blocking and the collapse of the program
-
Download the entrie folder to your local directory
-
Install the
Python
* In the program directory, there is a configure file name appkey
, Input you appid
in the first line, and the sercetKey
in second line
-
Use the
cmd
(Windows) orshell
(Linux) switch to the place where you put the program -
Input the command in
cmd
(Windows) orshell
(Linux) like this:
./hpn.py YOU_SOURCE_LANGUAGE YOU_TARGET_LANGUAGE
or
./hpn_plus.py YOU_SOURCE_LANGUAGE YOU_TARGET_LANGUAGE
We have been working to deal with errors that can occur in any program, but this will inevitably be an unexpected error in the program
In order to make the program not because of some unknown mistakes, stop halfway down, take some of the necessary
measures
If you find that you would have to eb trnaslated into Spanish
is Japanses
appear, that is not
a translation error, is we to remind you, this paragraph of word cannot transmitted via HTTP to the API to translate, so the display into Japanses
to remind you from the text to find the corresponding words and translation by youself.
Symbol | Significance |
auto | automatic detection |
zh | Chinese |
en | English |
yue | Cantonese |
wyw | Classical Chinese |
jp | Japanese |
kor | Korean |
fra | French |
spa | Spain |
th | Thai |
ara | Arabic |
ru | Russian |
pt | Portuguese |
de | German |
it | Italian |
el | Greek |
nl | Dutch |
pl | Polish |
bul | Bulgarian |
est | Estonia Language |
dan | Danish |
fin | Finnish |
cs | Czech |
rom | Romanian |
slo | Slovenia Language |
swe | Swedish |
hu | Hugarian language |
cht | Traditional Chinese |