Parcourir la source

doc : update powershell setting.

hellofinch il y a 1 an
Parent
commit
fd0e160046
4 fichiers modifiés avec 33 ajouts et 0 suppressions
  1. 5 0
      README.md
  2. 6 0
      docs/ADVANCED.md
  3. 11 0
      docs/README_ja-JP.md
  4. 11 0
      docs/README_zh-CN.md

+ 5 - 0
README.md

@@ -165,6 +165,11 @@ The present program needs an AI model(`wybxc/DocLayout-YOLO-DocStructBench-onnx`
 set HF_ENDPOINT=https://hf-mirror.com
 ```
 
+For PowerShell user:
+```shell
+$env:HF_ENDPOINT = https://hf-mirror.com
+```
+
 If the solution does not work to you / you encountered other issues, please refer to [frequently asked questions](https://github.com/Byaidu/PDFMathTranslate/wiki#-faq--%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98).
 
 <h2 id="usage">Advanced Options</h2>

+ 6 - 0
docs/ADVANCED.md

@@ -86,6 +86,12 @@ set OPENAI_MODEL=gpt-4o-mini
 pdf2zh example.pdf -s openai
 ```
 
+For PowerShell user:
+```shell
+$env:OPENAI_MODEL = gpt-4o-mini
+pdf2zh example.pdf -s openai
+```
+
 [⬆️ Back to top](#toc)
 
 ---

+ 11 - 0
docs/README_ja-JP.md

@@ -80,6 +80,11 @@ pdf2zhの実行には追加モデル(`wybxc/DocLayout-YOLO-DocStructBench-onnx
 set HF_ENDPOINT=https://hf-mirror.com
 ```
 
+For PowerShell user:
+```shell
+$env:HF_ENDPOINT = https://hf-mirror.com
+```
+
 <h3 id="cmd">方法1. コマンドライン</h3>
 
   1. Pythonがインストールされていること (バージョン3.8 <= バージョン <= 3.12)
@@ -247,6 +252,12 @@ set OPENAI_MODEL=gpt-4o-mini
 pdf2zh example.pdf -s openai
 ```
 
+For PowerShell user:
+```shell
+$env:OPENAI_MODEL = gpt-4o-mini
+pdf2zh example.pdf -s openai
+```
+
 <h3 id="exceptions">例外を指定して翻訳</h3>
 
 正規表現を使用して保持する必要がある数式フォントと文字を指定します:

+ 11 - 0
docs/README_zh-CN.md

@@ -82,6 +82,11 @@ pdf2zh的运行依赖于额外模型(`wybxc/DocLayout-YOLO-DocStructBench-onnx`)
 set HF_ENDPOINT=https://hf-mirror.com
 ```
 
+如使用 PowerShell,请使用如下方法设置环境变量:
+```shell
+$env:HF_ENDPOINT = https://hf-mirror.com
+```
+
 <h3 id="cmd">方法一、命令行工具</h3>
 
   1. 确保安装了版本大于 3.8 且小于 3.12 的 Python
@@ -248,6 +253,12 @@ set OPENAI_MODEL=gpt-4o-mini
 pdf2zh example.pdf -s openai
 ```
 
+对于 PowerShell 用户,请使用如下方式设置环境变量指定模型:
+```shell
+$env:OPENAI_MODEL = gpt-4o-mini
+pdf2zh example.pdf -s openai
+```
+
 <h3 id="exceptions">指定例外规则</h3>
 
 使用正则表达式指定需保留的公式字体与字符: