|
@@ -39,7 +39,9 @@ pip install pdf2zh
|
|
|
|
|
|
|
|
## Usage
|
|
## Usage
|
|
|
|
|
|
|
|
-Execute the translation command in the command line to generate the translated document `example-zh.pdf` and the bilingual document `example-dual.pdf` in the current directory. Use Google as the default translation service.
|
|
|
|
|
|
|
+Execute the translation command in the command line to generate the translated document `example-zh.pdf` and the bilingual document `example-dual.pdf` in the current directory. Use Google as the default translation service.
|
|
|
|
|
+
|
|
|
|
|
+Please refer to [ChatGPT](https://chatgpt.com/share/6734a83d-9d48-800e-8a46-f57ca6e8bcb4) for how to set environment variables.
|
|
|
|
|
|
|
|
### Translate the entire document
|
|
### Translate the entire document
|
|
|
|
|
|
|
@@ -55,7 +57,7 @@ pdf2zh example.pdf -p 1-3,5
|
|
|
|
|
|
|
|
### Translate with the specified language
|
|
### Translate with the specified language
|
|
|
|
|
|
|
|
-See [Google Languages Codes](https://developers.google.com/admin-sdk/directory/v1/languages), [DeepL Languages Codes](https://developers.deepl.com/docs/resources/supported-languages).
|
|
|
|
|
|
|
+See [Google Languages Codes](https://developers.google.com/admin-sdk/directory/v1/languages), [DeepL Languages Codes](https://developers.deepl.com/docs/resources/supported-languages)
|
|
|
|
|
|
|
|
```bash
|
|
```bash
|
|
|
pdf2zh example.pdf -li en -lo ja
|
|
pdf2zh example.pdf -li en -lo ja
|