Byaidu 1 anno fa
parent
commit
1d3a92789e
2 ha cambiato i file con 6 aggiunte e 4 eliminazioni
  1. 3 2
      README.md
  2. 3 2
      README_zh-CN.md

+ 3 - 2
README.md

@@ -155,6 +155,7 @@ In the following table, we list all advanced options for reference:
 | `-lo` | [Target language](#languages) |  `pdf2zh example.pdf -lo zh` |
 | `-s`  | [Translation service](#services) |  `pdf2zh example.pdf -s deepl` |
 | `-t`  | [Multi-threads](#threads) | `pdf2zh example.pdf -t 1` |
+| `-o`  | Output dir | `pdf2zh example.pdf -o output` |
 | `-f`, `-c` | [Exceptions](#exceptions) | `pdf2zh example.pdf -f "(MS.*)"` |
 
 Some services require setting environmental variables. Please refer to [ChatGPT](https://chatgpt.com/share/6734a83d-9d48-800e-8a46-f57ca6e8bcb4) for how to set environment variables.
@@ -251,12 +252,12 @@ pdf2zh example.pdf -li en -lo ja
   - `TENCENT_SECRET_KEY`, e.g, `export TENCENT_SECRET_KEY=xxx`
 
   ```bash
-  pdf2zh example.pdf -s tmt
+  pdf2zh example.pdf -s tencent
   ```
 
 <h3 id="exceptions">Translate wih exceptions</h3>
 
-Use regex to specify formula fonts and characters that need to be preserved.
+Use regex to specify formula fonts and characters that need to be preserved:
 
 ```bash
 pdf2zh example.pdf -f "(CM[^RT].*|MS.*|.*Ital)" -c "(\(|\||\)|\+|=|\d|[\u0080-\ufaff])"

+ 3 - 2
README_zh-CN.md

@@ -155,6 +155,7 @@
 | `-lo` | [目标语言](#languages) |  `pdf2zh example.pdf -lo zh` |
 | `-s`  | [指定翻译服务](#services) |  `pdf2zh example.pdf -s deepl` |
 | `-t`  | [多线程](#threads) | `pdf2zh example.pdf -t 1` |
+| `-o`  | 输出目录 | `pdf2zh example.pdf -o output` |
 | `-f`, `-c` | [例外规则](#exceptions) | `pdf2zh example.pdf -f "(MS.*)"` |
 
 某些服务需要设置环境变量。关于设置环境变量的详细说明,请参考 [ChatGPT](https://chatgpt.com/share/6734a83d-9d48-800e-8a46-f57ca6e8bcb4)
@@ -258,12 +259,12 @@ pdf2zh example.pdf -s azure
 - `TENCENT_SECRET_KEY`, e.g., `export TENCENT_SECRET_KEY=xxx`
 
 ```bash
-pdf2zh example.pdf -s tmt
+pdf2zh example.pdf -s tencent
 ```
 
 <h3 id="exceptions">指定例外规则</h3>
 
-使用正则表达式指定需保留的公式字体与字符
+使用正则表达式指定需保留的公式字体与字符
 
 ```bash
 pdf2zh example.pdf -f "(CM[^RT].*|MS.*|.*Ital)" -c "(\(|\||\)|\+|=|\d|[\u0080-\ufaff])"