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 )