This is a program that translates manga primary from Japanese to English (tho it can also trans other languages to english).
Clone or download the repository. I recommend running the program within a virtual environment.
If you're using VScode, open the repository, go to the command pallete, type "Create Environment", and click. Vscode will create the virtual environment and install everything in requirement.txt. If it doesn't type "pip install -r requirements.txt" in the terminal.
If you don't have VScode, open the repo within your IDE and go to the terminal:
- Type "virtualenv venv"
- Then activate the virtual environment by typing ".venv\Scripts\activate"
- Finally, install the required packages by typing "pip install -r requirements.txt"
- Run Main.py
By default, the app is set to automatic translation. You can manipulate the automatic translation by clicking on the automatic button as seen below.
The "Combine Overlap" checkbox combines overlapping rectangle and "Combine Neighbors" checkbox combines rectangles within a certain distance, which is decided by the slider. The "Retranslate current page" checkbox translates a single page if you don't like how that page turned out. Example of automatic translation:You can manually translate by clicking on the Manual button. You draw rectangles on the text you want translated. On the left, you change the color of the rectangles, the text, etc.
After:
The most important thing here is that you can change the translator. By default it is set to Bing.
When you click on the the button, a bar will appear at the top. You can download "manga" from twitter. You need to sign up on https://developer.twitter.com to the API key and other required keys.
Example of a valid link would be: https://twitter.com/sanka_kumaru/status/1589452581910335488