pdf-translator translates English PDF files into Japanese, preserving the original layout.
Python
347
57 commits
updated May 7, 2024
To be more readable, the translated PDF file displays the original PDF page in the left side and the translated text in the right side (see the image above).
To speed up the translation process, translation is performed until "References" section in the PDF file. After that, the rest of the page is copied as it is.
This repository contains some unsolved issues. Pull requests for improvements are always welcome.
git clone https://github.com/discus0434/pdf-translator.git
cd pdf-translator/docker
make build
make run
Access to GUI via browser.
http://localhost:8288
cd pdf-translator/docker && make translate INPUT="path/to/input_pdf_or_dir"
You can throw a PDF file or a directory containing PDF files.
The translated PDF files will be saved in ./outputs directory.
This repository does not allow commercial use.
This repository is licensed under CC BY-NC 4.0. See LICENSE for more information.
For PDF layout analysis, using DiT.
For PDF to text conversion, using PaddlePaddle model.
For text translation, using FuguMT model from HuggingFace.
FuguMT models are distributed under the CC BY-SA 4.0 license. Please also note that the use is clearly stated as "for research purposes only" and that "no responsibility is assumed for operation or output".
Font files are from Source Han Serif.
Thanks to the following people who have contributed to this project:
translator.py81 followers · starred Aug 2024
36 followers · starred Aug 2024
1,004 followers · starred Apr 2023
257 followers · starred Jun 2023
pdf-translator translates English PDF files into Japanese, preserving the original layout.
Python
347
57 commits
updated May 7, 2024
To be more readable, the translated PDF file displays the original PDF page in the left side and the translated text in the right side (see the image above).
To speed up the translation process, translation is performed until "References" section in the PDF file. After that, the rest of the page is copied as it is.
This repository contains some unsolved issues. Pull requests for improvements are always welcome.
git clone https://github.com/discus0434/pdf-translator.git
cd pdf-translator/docker
make build
make run
Access to GUI via browser.
http://localhost:8288
cd pdf-translator/docker && make translate INPUT="path/to/input_pdf_or_dir"
You can throw a PDF file or a directory containing PDF files.
The translated PDF files will be saved in ./outputs directory.
This repository does not allow commercial use.
This repository is licensed under CC BY-NC 4.0. See LICENSE for more information.
For PDF layout analysis, using DiT.
For PDF to text conversion, using PaddlePaddle model.
For text translation, using FuguMT model from HuggingFace.
FuguMT models are distributed under the CC BY-SA 4.0 license. Please also note that the use is clearly stated as "for research purposes only" and that "no responsibility is assumed for operation or output".
Font files are from Source Han Serif.
Thanks to the following people who have contributed to this project:
translator.py81 followers · starred Aug 2024
36 followers · starred Aug 2024
1,004 followers · starred Apr 2023
257 followers · starred Jun 2023