App-Greple-xlate

 view release on metacpan or  search on metacpan

i18n/src/xlate.pod.xlate-deepl-ZH.json  view on Meta::CPAN

      "Masking protects markup from being translated. To conceal sensitive strings from the translation service itself, see L</ANONYMIZATION AND TEMPLATES>; both can be used together.\n",
      "屏蔽功能可防止标记被翻译。若要向翻译服务本身隐藏敏感字符串,请参阅 L</ANONYMIZATION AND TEMPLATES>;这两种方法可以同时使用。\n"
   ],
   [
      "This interface is experimental and subject to change in the future.\n",
      "此接口为试验性接口,将来可能会更改。\n"
   ],
   [
      "Sensitive strings can be concealed before they are sent to the translation API and restored in the output. Three sources of anonymization rules are available: a dictionary file (B<--xlate-anonymize>), inline marks in the document itself (B<--x...
      "敏感字符串可在发送至翻译 API 之前被隐藏,并在输出中恢复。提供三种匿名化规则来源:词典文件(B<--xlate-anonymize>)、文档本身中的内联标记(B<--xlate-anonymize-mark>)以及 YAML 前置信æ...
   ],
   [
      "For form documents (quarterly reports and the like), define the actors up front and reference them in the body:\n",
      "对于表单文档(如季度报告等),请预先定义参与方并在正文中引用它们:\n"
   ],
   [
      "Translate the template once per language with C<--xlate-template> (and C<--xlate-frontmatter> when the values are kept in the file), then render each case with B<pandoc-embedz> standalone mode -- values under C<global:> in an external config n...
      "使用 C<--xlate-template> 将模板按每种语言翻译一次 (当值保存在文件中时使用 C<--xlate-frontmatter>),然后使用 B<pandoc-embedz> 独立模式渲染每个案例——外部配置中 C<global:> 下的值根本不会...
   ],
   [
      "For inline marks, providing a macro definition config makes the same translated template render either the real names or a redacted version:\n",
      "对于内联标记,提供宏定义配置可使同一翻译后的模板渲染真实名称或经过遮蔽处理的版本:\n"
   ],
   [
      "Exclude embedz blocks from translation when a document contains them:\n",
      "当文档包含 embedz 块时,将其排除在翻译之外:\n"
   ],
   [
      "Invoke the translation process for each matched area.\n",
      "对每个匹配的区域调用翻译过程。\n"
   ],
   [
      "Without this option, B<greple> behaves as a normal search command. So you can check which part of the file will be subject of the translation before invoking actual work.\n",
      "如果没有这个选项,B<greple>的行为就像一个普通的搜索命令。所以你可以在调用实际工作之前检查文件的哪一部分将成为翻译的对象。\n"
   ],
   [
      "Command result goes to standard out, so redirect to file if necessary, or consider to use L<App::Greple::update> module.\n",
      "命令的结果会进入标准输出,所以如果需要的话,可以重定向到文件,或者考虑使用L<App::Greple::update>模块。\n"
   ],
   [
      "Option B<--xlate> calls B<--xlate-color> option with B<--color=never> option.\n",
      "选项B<--xlate>调用B<--xlate-color>选项与B<--color=never>选项。\n"
   ],
   [
      "With B<--xlate-fold> option, converted text is folded by the specified width. Default width is 70 and can be set by B<--xlate-fold-width> option. Four columns are reserved for run-in operation, so each line could hold 74 characters at most.\n"...
      "使用B<--xlate-fold>选项,转换后的文本将按指定的宽度进行折叠。默认宽度为70,可以通过B<--xlate-fold-width>选项设置。四列是为磨合操作保留的,所以每行最多可以容纳74个字符。\n"
   ],
   [
      "Specifies the translation engine to be used.\n",
      "指定要使用的翻译引擎。\n"
   ],
   [
      "At this time, the following engines are available\n",
      "目前有以下引擎\n"
   ],
   [
      "Engine modules are searched in backend namespaces first (C<llm>, then C<gpty>), then directly under C<App::Greple::xlate>. So C<gpt5> loads C<App::Greple::xlate::llm::gpt5> which calls the C<llm> command, while C<gpt4o> falls back to C<App::Gr...
      "引擎模块首先在后端命名空间中搜索(C<llm>,然后是 C<gpty>),然后直接在 C<App::Greple::xlate> 下搜索。 因此,C<gpt5> 会加载 C<App::Greple::xlate::llm::gpt5>,后者调用 C<llm> 命令,而 C<gpt4o> 则å›...
   ],
   [
      "Instead of calling translation engine, you are expected to work for. After preparing text to be translated, they are copied to the clipboard. You are expected to paste them to the form, copy the result to the clipboard, and hit return.\n",
      "您需要做的不是调用翻译引擎,而是为其工作。准备好要翻译的文本后,它们会被复制到剪贴板。您需要将它们粘贴到表单中,将结果复制到剪贴板,然后点击回车键。\n"
   ],
   [
      "Specify the target language. LLM engines accept any language name or code the model understands; it is interpolated into the translation prompt. You can get available languages by C<deepl languages> command when using B<DeepL> engine.\n",
      "指定目标语言。LLM引擎接受模型所理解的任何语言名称或代码;该语言将被插值到翻译提示中。使用B<DeepL>引擎时,可通过C<deepl languages>命令获取可用语言列表。\n"
   ],
   [
      "Label used for the original text in C<conflict>, C<colon> and C<ifdef> output formats. With the B<DeepL> engine a non-default value is also passed as the source language.\n",
      "在 C<conflict>、C<colon> 和 C<ifdef> 输出格式中,用于源文本的标签。使用 B<DeepL> 引擎时,非默认值也会作为源语言传递。\n"
   ],
   [
      "Specify the output format for original and translated text.\n",
      "指定原始和翻译文本的输出格式。\n"
   ],
   [
      "The following formats other than C<xtxt> assume that the part to be translated is a collection of lines. In fact, it is possible to translate only a portion of a line, but specifying a format other than C<xtxt> will not produce meaningful resu...
      "除 C<xtxt> 以外的以下格式都假定要翻译的部分是行的集合。事实上,可以只翻译一行的一部分,但指定 C<xtxt> 以外的格式不会产生有意义的结果。\n"
   ],
   [
      "Original and converted text are printed in L<git(1)> conflict marker format.\n",
      "原始文本和转换后的文本以 L<git(1)> 冲突标记格式打印。\n"
   ],
   [
      "You can recover the original file by next L<sed(1)> command.\n",
      "你可以通过下一个L<sed(1)>命令恢复原始文件。\n"
   ],
   [
      "The original and translated text are output in a markdown's custom container style.\n",
      "原文和译文以 markdown 的自定义容器样式输出。\n"
   ],
   [
      "Above text will be translated to the following in HTML.\n",
      "以上文本将在 HTML 中翻译为以下内容。\n"
   ],
   [
      "Number of colon is 7 by default. If you specify colon sequence like C<:::::>, it is used instead of 7 colons.\n",
      "冒号数默认为 7。如果指定冒号序列,如 C<:::::>,则会使用它来代替 7 个冒号。\n"
   ],
   [
      "Original and converted text are printed in L<cpp(1)> C<#ifdef> format.\n",
      "原始文本和转换后的文本以 L<cpp(1)> C<#ifdef> 格式打印。\n"
   ],
   [
      "You can retrieve only Japanese text by the B<unifdef> command:\n",
      "你可以通过B<unifdef>命令只检索日文文本。\n"
   ],
   [
      "Original and converted text are printed separated by single blank line. For C<space+>, it also outputs a newline after the converted text.\n",
      "原始文本和转换后的文本在打印时以单行空行隔开。对于 C<space+>,它还会在转换后的文本后输出一个换行符。\n"
   ],
   [
      "If the format is C<xtxt> (translated text) or unkown, only translated text is printed.\n",
      "如果格式是C<xtxt>(翻译文本)或不知道,则只打印翻译文本。\n"
   ],
   [
      "Specify the maximum length of text to be sent to the API at once. The default value 0 means the engine's own limit: for the free DeepL account service that is 128K for the API (B<--xlate>) and 5000 for the clipboard interface (B<--xlate-labor>...
      "指定一次发送至 API 的文本最大长度。 默认值 0 表示引擎自身的限制:对于 DeepL 免费账户服务,API(B<--xlate>)的限制为 128K,剪贴板接口(B<--xlate-labor>)的限制为 5000。 如果您使用的æ...
   ],
   [
      "Specify the maximum lines of text to be sent to the API at once.\n",
      "指定一次发送到 API 的最大文本行数。\n"
   ],
   [
      "Set this value to 1 if you want to translate one line at a time. This option takes precedence over the C<--xlate-maxlen> option.\n",
      "如果想一次翻译一行,则将该值设为 1。该选项优先于 C<--xlate-maxlen> 选项。\n"
   ],
   [
      "Specify a custom prompt to be sent to the translation engine. This option is available for the LLM engines (C<gpt3>, C<gpt4o>, C<gpt5>) but not for DeepL. You can customize the translation behavior by providing specific instructions to the AI ...
      "指定要发送给翻译引擎的自定义提示词。此选项适用于 LLM 引擎(C<gpt3>, C<gpt4o>, C<gpt5>),但不适用于 DeepL。您可以通过向 AI 模型提供具体指令来自定义翻译行为。如果提示词中包含 C<%...
   ],
   [
      "Specify additional context information to be sent to the translation engine. This option can be used multiple times to provide multiple context strings. The context information helps the translation engine understand the background and produce...
      "指定要发送给翻译引擎的其他上下文信息。此选项可多次使用,以提供多个上下文字符串。上下文信息有助于翻译引擎理解背景并生成更准确的翻译。\n"
   ],
   [
      "Number of surrounding translated blocks passed as reference context when re-translating changed blocks (default 2). The context also includes the raw source text around the changed region (headings, list structure, captions) and, when availabl...
      "在重新翻译已修改的块时,作为参考上下文传递的周围已翻译块的数量(默认值为 2)。该上下文还包括已修改区域周围的原始源文本(标题、列表结构、图注)以及(如有)从缓存中æ...
   ],
   [
      "Initialize a new document's cache from another document's cache file. Useful for periodic reports: seed the new issue's cache with the previous issue's, so unchanged paragraphs are not re-translated and edited paragraphs keep the previous issu...
      "从另一个文档的缓存文件初始化新文档的缓存。这对于定期报告非常有用:使用上一期报告的缓存作为新期报告缓存的初始值,这样未更改的段落就不会被重新翻译,而编辑过的段落则...
   ],
   [
      "Anonymize sensitive strings before they are sent to the translation API, and restore them in the output. The dictionary file gives one entry per item: in JSON (canonical, machine-generatable)\n",
      "在将敏感字符串发送至翻译 API 之前对其进行匿名化处理,并在输出中恢复其原始内容。词典文件为每个项目提供一条条目:以 JSON 格式(规范的、可由机器生成)\n"
   ],
   [
      "or in a simple line format (C<category pattern>, C</.../> for regex). Each item is replaced by a category tag such as C<< <person id=\"1\" /> >>; the same string always gets the same tag, so the model can keep track of who is who. Unknown JSON...
      "或采用简单的行格式(C<category pattern>,  表示C</.../>正则表达式)。每个项目都会被替换为类别标签,例如 C<< <person id=\"1\" /> >>;同一字符串始终对应相同的标签,因此模型能够区分不å...
   ],
   [
      "A dictionary can be generated by an external tool -- for example a local model extracting sensitive entities:\n",
      "词典可由外部工具生成——例如用于提取敏感实体的本地模型:\n"
   ],
   [
      "A UTF-8 BOM in the file is tolerated. Values in the front matter line format may carry a trailing comment only on their own line, not after the value.\n",
      "文件中允许存在 UTF-8 BOM。前置信息行格式的值仅可在单独一行末尾带有尾注,不可紧跟在值之后。\n"
   ],
   [
      "Collect anonymization entries from inline marks in the document itself. Mark the first occurrence like C<{{ person(\"山田太郎\") }}> and every occurrence of the string document-wide is anonymized. The mark itself stays in the source and in...
      "从文档本身的内联标记中收集匿名化条目。 将首次出现的位置标记为 C<{{ person(\"山田太郎\") }}>,该字符串在整个文档中的所有出现位置均会被匿名化。标记本身会保留在源文档和译文ä...
   ],
   [
      "Note that with an optional-value option like this, a following file argument would be taken as the value: write C<--xlate-anonymize-mark=> (with a trailing C<=>) when using the default notation.\n",
      "请注意,对于此类可选值的选项,后续的文件参数将被视为该值:在使用默认表示法时,应写为 C<--xlate-anonymize-mark=>(末尾跟一个 C<=>)。\n"
   ],
   [
      "Alternative notations can be configured, for example C<< --xlate-anonymize-mark='@@(?<category>[a-z][a-z0-9_]*):(?<text>[^\\n]+?)@@' >> for C<@@person:NAME@@>-style marks, or an HTML-comment form that stays invisible in rendered Markdown. Mark...
      "可以配置其他表示法,例如 C<< --xlate-anonymize-mark='@@(?<category>[a-z][a-z0-9_]*):(?<text>[^\\n]+?)@@' >> 用于 C<@@person:NAME@@> 风格的标记,或者一种在渲染后的 Markdown 中不可见的 HTML 注释形式。 æ ‡è®...
   ],
   [
      "Treat template expressions (default: Jinja2 C<{{ ... }}>, C<{% ... %}>, C<{# ... #}>) as opaque placeholders: instruct the model to copy them unchanged and verify, per block, that the response contains exactly the same expressions, each the sa...
      "将模板表达式(默认:Jinja2 C<{{ ... }}>、C<{% ... %}>、C<{# ... #}>)视为不透明占位符:指示模型将其原样复制,并按块验证响应中是否包含完全相同的表达式,且每个表达式出现的次数完å…...
   ],
   [
      "Note that with an optional-value option like this, a following file argument would be taken as the value: write C<--xlate-template=> (with a trailing C<=>) when using the default notation.\n",



( run in 0.661 second using v1.01-cache-2.11-cpan-364913b4093 )