Skip to content

Commit

Permalink
doc : update powershell setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
hellofinch committed Jan 13, 2025
1 parent 6639e9e commit fd0e160
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
6 changes: 6 additions & 0 deletions docs/ADVANCED.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

---
Expand Down
11 changes: 11 additions & 0 deletions docs/README_ja-JP.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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>
正規表現を使用して保持する必要がある数式フォントと文字を指定します:
Expand Down
11 changes: 11 additions & 0 deletions docs/README_zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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>
使用正则表达式指定需保留的公式字体与字符:
Expand Down

0 comments on commit fd0e160

Please sign in to comment.