Skip to content

fansubgroup/Hyperion1.x

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hyperion1.x

This is the core component of 2.x and 3.x

But also supports the translation work under the command line

We now have two version of the software in 1.0

One is hpn.py, and one is hpn_plus.py

So, what is the difference between them?

[1] First, hpn_plus.py is based on a completely new structure

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

[2] Second, but this is not to say that hpn.py is not good

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

How to use these language(the usage of two version is same)?

  • 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) or shell (Linux) switch to the place where you put the program

  • Input the command in cmd (Windows) or shell (Linux) like this:

./hpn.py YOU_SOURCE_LANGUAGE YOU_TARGET_LANGUAGE

or

./hpn_plus.py YOU_SOURCE_LANGUAGE YOU_TARGET_LANGUAGE

User attention using hpn_plus.py

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.

This coeerspondence table is here

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