Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A small question about using the script. #2

Open
Nickyg001 opened this issue Mar 20, 2023 · 2 comments
Open

A small question about using the script. #2

Nickyg001 opened this issue Mar 20, 2023 · 2 comments

Comments

@Nickyg001
Copy link

I state that I have not yet "materially" tested the script.
I need to figure out how to fulfill pre-requisites, subscribe to Google API etc first.

What I wanted to understand:
Once the script has been launched, will the output file obtained be a PDF? a TXT? or what?

It would be feasible somehow, to make sure that the output file would be "the exact same PDF paginated with photos etc" but with only the text blocks modified inside that will be editable, changing only the updated translation. So as to have the same file but with the translated text.
I don't know if the script already does all this, or if this thing could be an idea to propose to you for new modifications and implementations.

@aquacode
Copy link
Owner

Output writes to PDF
However, I need to update the prerequisites for using Google's Transation API as the recommended setup has changed, see here https://cloud.google.com/translate/docs/setup
I don't recall if the original document's pagination is respected but I'll see what I can do
In addition, the pdftotext library has some OS dependencies I'm not too fond of and so I'll rewrite this to use pypdf which is more maintained as well
This was a script I wrote in about an hour and just thought I'd share it

@Nickyg001
Copy link
Author

Output writes to PDF However, I need to update the prerequisites for using Google's Transation API as the recommended setup has changed, see here https://cloud.google.com/translate/docs/setup I don't recall if the original document's pagination is respected but I'll see what I can do In addition, the pdftotext library has some OS dependencies I'm not too fond of and so I'll rewrite this to use pypdf which is more maintained as well This was a script I wrote in about an hour and just thought I'd share it

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants