App-Greple-xlate

 view release on metacpan or  search on metacpan

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

      "By default, original and translated text is printed in the \"conflict marker\" format compatible with L<git(1)>. Using C<ifdef> format, you can get desired part by L<unifdef(1)> command easily. Output format can be specified by B<--xlate-forma...
      "默认情况下,原文和译文以与 L<git(1)> 兼容的 \"冲突标记 \"格式打印。使用 C<ifdef> 格式,可以通过 L<unifdef(1)> 命令轻松获得所需的部分。输出格式可以通过 B<--xlate-format> 选项指定。\n"
   ],
   [
      "If you want to translate entire text, use B<--match-all> option. This is a short-cut to specify the pattern C<(?s).+> which matches entire text.\n",
      "如果要翻译整个文本,请使用 B<--match-all> 选项。这是指定匹配整个文本的模式 C<(?s).+> 的快捷方式。\n"
   ],
   [
      "Conflict marker format data can be viewed in side-by-side style by L<sdif|App::sdif> command with C<-V> option. Since it makes no sense to compare on a per-string basis, the C<--no-cdif> option is recommended. If you do not need to color the t...
      "冲突标记格式数据可以通过 L<sdif|App::sdif> 命令和 C<-V> 选项并排查看。由于按字符串进行比较毫无意义,因此建议使用 C<--no-cdif> 选项。如果不需要给文本着色,可指定 C<--no-textcolor>(æˆ...
   ],
   [
      "Processing is done in specified units, but in the case of a sequence of multiple lines of non-empty text, they are converted together into a single line. This operation is performed as follows:\n",
      "处理是以指定单位进行的,但如果是多行非空文本序列,则会一起转换为单行。具体操作如下\n"
   ],
   [
      "Remove white space at the beginning and end of each line.\n",
      "删除每行开头和结尾的空白。\n"
   ],
   [
      "If a line ends with a full-width punctuation character, concatenate with next line.\n",
      "如果一行以全角标点符号结束,则与下一行连接。\n"
   ],
   [
      "If a line ends with a full-width character and the next line begins with a full-width character, concatenate the lines.\n",
      "如果一行以全角字符结束,而下一行以全角字符开始,则将这两行连接起来。\n"
   ],
   [
      "If either the end or the beginning of a line is not a full-width character, concatenate them by inserting a space character.\n",
      "如果一行的末尾或开头不是全宽字符,则通过插入空格字符将它们连接起来。\n"
   ],
   [
      "Cache data is managed based on the normalized text, so even if modifications are made that do not affect the normalization results, the cached translation data will still be effective.\n",
      "缓存数据是根据规范化文本进行管理的,因此即使进行了不影响规范化结果的修改,缓存的翻译数据仍然有效。\n"
   ],
   [
      "This normalization process is performed only for the first (0th) and even-numbered pattern. Thus, if two patterns are specified as follows, the text matching the first pattern will be processed after normalization, and no normalization process...
      "此规范化处理只针对第一个(第 0 个)和偶数模式。因此,如果指定了以下两个模式,则匹配第一个模式的文本将在规范化后处理,而不对匹配第二个模式的文本执行规范化处理。\n"
   ],
   [
      "Therefore, use the first pattern for text that is to be processed by combining multiple lines into a single line, and use the second pattern for pre-formatted text. If there is no text to match in the first pattern, use a pattern that does not...
      "因此,第一种模式适用于将多行合并为一行进行处理的文本,第二种模式适用于预格式化文本。如果第一个模式中没有要匹配的文本,则使用不匹配任何内容的模式,如 C<(?!)>。\n"
   ],
   [
      "Occasionally, there are parts of text that you do not want translated. For example, tags in markdown files. DeepL suggests that in such cases, the part of the text to be excluded be converted to XML tags, translated, and then restored after th...
      "有时,您不希望翻译文本中的某些部分。例如,markdown 文件中的标记。DeepL 建议在这种情况下,将不需要翻译的文本部分转换为 XML 标记,然后进行翻译,翻译完成后再还原。为了支持è...
   ],
   [
      "This will interpret each line of the file C<MASKPATTERN> as a regular expression, translate strings matching it, and revert after processing. Lines beginning with C<#> are ignored.\n",
      "该指令将把文件中每行以C<MASKPATTERN>开头的文本视为正则表达式,匹配的字符串将被翻译,处理后自动还原。以C<#>开头的行将被忽略。\n"
   ],
   [
      "Complex pattern can be written on multiple lines with backslash escaped newline.\n",
      "复杂模式可以跨多行书写,其中换行符需用反斜杠转义。\n"
   ],
   [
      "How the text is transformed by masking can be seen by B<--xlate-mask> option.\n",
      "通过 B<--xlate-mask> 选项可以看到屏蔽后文本的转换效果。\n"
   ],
   [
      "Mask placeholders are well-formed self-closing XML tags such as C<< <m id=\"1\" /> >>. JSON-based LLM engines receive the tags in their input arrays. For DeepL, a request containing marker tags is escaped and enclosed in a temporary C<< <xlate...
      "标记占位符是格式正确的自闭合 XML 标签,例如 C<< <m id=\"1\" /> >>。基于 JSON 的 LLM 引擎会在其输入数组中接收这些标签。对于 DeepL,包含标记标签的请求会被转义并封装在临时  根C<< <xla...
   ],
   [
      "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...



( run in 1.399 second using v1.01-cache-2.11-cpan-a49fcb8fa48 )