File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -257,16 +257,18 @@ pdf2zh example.pdf -f "(CM[^R]|(MS|XY|MT|BL|RM|EU|LA|RS)[A-Z]|LINE|LCIRCLE|TeX-|
257257pdf2zh example.pdf -t 1
258258```
259259
260- <h3 id="prompt">custom prompt</h3>
261- (need Japenese translation)
262- Use `--prompt` to specify which prompt to use in llm:
260+ <h3 id="prompt">カスタム プロンプト</h3>
261+
262+ `--prompt`を使用して、LLMで使用するプロンプトを指定します:
263+
263264```bash
264265pdf2zh example.pdf -pr prompt.txt
265266```
266267
267268
268- example prompt.txt
269- ```
269+ `prompt.txt`の例:
270+
271+ ```txt
270272[
271273 {
272274 "role": "system",
@@ -280,12 +282,14 @@ example prompt.txt
280282```
281283
282284
283- In custom prompt file, there are three variables can be used.
284- |**variables**|**comment**|
285+ カスタムプロンプトファイルでは、以下の3つの変数が使用できます。
286+
287+ |**変数**|**内容**|
285288|-|-|
286- |`lang_in`|input language|
287- |`lang_out`|output language|
288- |`text`|text need to be translated|
289+ |`lang_in`|ソース言語|
290+ |`lang_out`|ターゲット言語|
291+ |`text`|翻訳するテキスト|
292+
289293<h2 id="todo">API</h2>
290294
291295### Python
You can’t perform that action at this time.
0 commit comments