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 )