-
Notifications
You must be signed in to change notification settings - Fork 210
/
settings.cfg.example
30 lines (21 loc) · 1.33 KB
/
settings.cfg.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[option]
#API key(s) for OpenAI API, e.g. "sk-xxxxxx" or "sk-xxxxxx,sk-xxxxxx"
openai-apikey = sk-
#API Proxy Url, e.g. https://api.openai-proxy.com
openai-proxy =
#Target language for translation, e.g. "en", "zh-cn", "ja",or "繁体中文","文言文"
# target-language setting is deprecated, please use prompt setting instead
#set prompt, you can change Chinese to "en", "zh-cn", "ja", "繁体中文","文言文", or "红楼梦风格的半文言文" etc
prompt = "Please behave like GPT-4 model, translate the following text into Chinese."
#Whether to output bilingual text or just translated text, set to "True" or "False"
bilingual-output = True
#Language code of the output epub file, e.g. "en", "zh-cn", "ja"
langcode = zh
#Translation begins from the specified start page number and is exclusively available for PDF files.
startpage = 1
#Translation will continue until the specified page number in a PDF file. This feature supports PDF files exclusively. If the input is equal to -1, the translation will proceed until the end of the file.
endpage = -1
#Foreign language transliteration list,a xlsx file,For example in the sample from English to simplified Chinese
transliteration-list = transliteration-list-example.xlsx
#Whether case matching is enabled by transliteration list replacement, set to "True" or "False"
case-matching = True