Skip to content

Commit 80c4a1b

Browse files
authored
Merge pull request PDFMathTranslate#333 from namazuchin/add/jp-document
2 parents f94c6e1 + 66ef10f commit 80c4a1b

1 file changed

Lines changed: 14 additions & 10 deletions

File tree

docs/README_ja-JP.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff 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-|
257257
pdf2zh 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
264265
pdf2zh 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

0 commit comments

Comments
 (0)