App-Greple-xlate
view release on metacpan or search on metacpan
README.deepl-KO.md view on Meta::CPAN
# NAME
App::Greple::xlate - Grepleì© ë²ì ì§ì 모ë
# SYNOPSIS
greple -Mxlate --xlate-engine gpt5 --xlate pattern target-file
greple -Mxlate --xlate-engine deepl --xlate pattern target-file
# VERSION
Version 2.02
# DESCRIPTION
**Greple** **xlate** 모ëìì ìíë í
ì¤í¸ ë¸ë¡ì ì°¾ì ë²ìë í
ì¤í¸ë¡ ëì²´íììì¤. 주 ìì§ì GPT-5.6 Terra (`llm/gpt5.pm`)ì´ë©°, ì´ ìì§ì [llm](https://llm.datasette.io/) ëª
ë ¹ì í¸ì¶í©ëë¤. DeepL (`dee...
ë²ì ê²°ê³¼ë íì¼ë³ë¡ ìºìëë¯ë¡, ë³ê²½ëì§ ìì í
ì¤í¸ì ëí´ìë ëª
ë ¹ì ë¤ì ì¤íí´ë ë¹ì©ì´ ë°ìíì§ ììµëë¤. 문ìê° í¸ì§ëë©´ ë³ê²½ë ë¨ë½ë§ APIë¡ ë¤ì ì ì¡ë©ëë¤. 문맥 ì¸ì ì...
Perlì pod ì¤íì¼ë¡ ìì±ë 문ìì ì¼ë° í
ì¤í¸ ë¸ë¡ì ë²ìíë ¤ë©´, ë¤ìê³¼ ê°ì´ **greple** ëª
ë ¹ì `--xlate-engine gpt5` ë° `perl` 모ëê³¼ í¨ê» ì¬ì©íììì¤:
greple -Mxlate --xlate-engine gpt5 -Mperl --pod --re '^([\w\pP].*\n)+' --all foo.pm
ì´ ëª
ë ¹ìì í¨í´ 문ìì´ `^([\w\pP].*\n)+`ì ìì«ì ë° êµ¬ëì ì¼ë¡ ììíë ì°ìë ì¤ì ì미í©ëë¤. ì´ ëª
ë ¹ì ë²ìí ììì ê°ì¡° íìí©ëë¤. ìµì
**--all**ì ì ì²´ í
ì¤í¸ë¥¼ ìì±íë ë° ì¬...
<div>
<p>
<img width="750" src="https://raw.githubusercontent.com/kaz-utashiro/App-Greple-xlate/main/images/select-area.png">
</p>
</div>
ê·¸ë° ë¤ì `--xlate` ìµì
ì ì¶ê°íì¬ ì íí ììì ë²ìí©ëë¤. ê·¸ë¬ë©´ ìíë ì¹ì
ì ì°¾ì ë²ì ìì§ì ì¶ë ¥ ê²°ê³¼ë¡ ëì²´í©ëë¤.
기본ì ì¼ë¡ ì본 ë° ë²ìë í
ì¤í¸ë [git(1)](http://man.he.net/man1/git)ê³¼ í¸íëë "ì¶©ë ë§ì»¤" íìì¼ë¡ ì¸ìë©ëë¤. `ifdef` íìì ì¬ì©íë©´ [unifdef(1)](http://man.he.net/man1/unifdef) ëª
ë ¹ì¼ë¡ ìíë ë¶...
<div>
<p>
<img width="750" src="https://raw.githubusercontent.com/kaz-utashiro/App-Greple-xlate/main/images/format-conflict.png">
</p>
</div>
ì ì²´ í
ì¤í¸ë¥¼ ë²ìíë ¤ë©´ **--match-all** ìµì
ì ì¬ì©í©ëë¤. ì´ë ì ì²´ í
ì¤í¸ì ì¼ì¹íë `(?s).+` í¨í´ì ì§ì íë ë¨ì¶í¤ì
ëë¤.
ì¶©ë ë§ì»¤ íì ë°ì´í°ë [sdif](https://metacpan.org/pod/App%3A%3Asdif) ëª
ë ¹ê³¼ `-V` ìµì
ì ì¬ì©íì¬ ëëí ëëí ë³¼ ì ììµëë¤. 문ìì´ ë¨ìë¡ ë¹êµíë ê²ì ìë¯¸ê° ìì¼ë¯ë¡ `--no-cdif` ìµì
ì ì¬ì...
sdif -V --no-filename --no-tc --no-cdif data_shishin.deepl-EN-US.cm
<div>
<p>
<img width="750" src="https://raw.githubusercontent.com/kaz-utashiro/App-Greple-xlate/main/images/sdif-cm-view.png">
</p>
</div>
# NORMALIZATION
ì²ë¦¬ë ì§ì ë ë¨ìë¡ ìíëì§ë§ ë¹ì´ ìì§ ìì ì¬ë¬ ì¤ì í
ì¤í¸ ìíì¤ì ê²½ì° í ì¤ë¡ í¨ê» ë³íë©ëë¤. ì´ ìì
ì ë¤ìê³¼ ê°ì´ ìíë©ëë¤:
- ê° ì¤ì ììê³¼ ëìì 공백ì ì ê±°í©ëë¤.
- í ì¤ì´ ì í 구ëì 문ìë¡ ëëë©´ ë¤ì ì¤ë¡ ì°ê²°í©ëë¤.
- í ì¤ì´ ì í 문ìë¡ ëëê³ ë¤ì ì¤ì´ ì í 문ìë¡ ììëë ê²½ì° ë ì¤ì ì°ê²°í©ëë¤.
- í ì¤ì ëì´ë ììì´ ì í 문ìê° ìë ê²½ì° ê³µë°± 문ì를 ì½ì
íì¬ ì°ê²°í©ëë¤.
ìºì ë°ì´í°ë ì ê·íë í
ì¤í¸ë¥¼ 기ë°ì¼ë¡ ê´ë¦¬ëë¯ë¡ ì ê·í ê²°ê³¼ì ìí¥ì 미ì¹ì§ ìë ìì ì´ ì´ë£¨ì´ì§ëë¼ë ìºìë ë²ì ë°ì´í°ë ì¬ì í ì í¨í©ëë¤.
ì´ ì ê·í íë¡ì¸ì¤ë 첫 ë²ì§¸(0ë²ì§¸) ë° ì§ì í¨í´ì ëí´ìë§ ìíë©ëë¤. ë°ë¼ì ë¤ìê³¼ ê°ì´ ë ê°ì í¨í´ì ì§ì íë©´ 첫 ë²ì§¸ í¨í´ê³¼ ì¼ì¹íë í
ì¤í¸ë ì ê·í í ì²ë¦¬ëê³ ë ë²ì§¸ í¨...
greple -Mxlate -E normalized -E not-normalized
ë°ë¼ì ì¬ë¬ ì¤ì í ì¤ë¡ ê²°í©íì¬ ì²ë¦¬í í
ì¤í¸ìë 첫 ë²ì§¸ í¨í´ì ì¬ì©íê³ , 미리 ììì´ ì§ì ë í
ì¤í¸ìë ë ë²ì§¸ í¨í´ì ì¬ì©í©ëë¤. 첫 ë²ì§¸ í¨í´ì ì¼ì¹í í
ì¤í¸ê° ìë ê²½ì° `(...
# MASKING
ê°í¹ ë²ìíê³ ì¶ì§ ìì í
ì¤í¸ ë¶ë¶ì´ ìì ì ììµëë¤. ì를 ë¤ì´ ë§í¬ë¤ì´ íì¼ì íê·¸ê° ììµëë¤. DeepL ììë ì´ë¬í ê²½ì° ì ì¸í í
ì¤í¸ ë¶ë¶ì XML íê·¸ë¡ ë³ííì¬ ë²ìí ë¤ì ë²...
--xlate-setopt maskfile=MASKPATTERN
ì´ê²ì íì¼ `MASKPATTERN`ì ê° ì¤ì ì ê· ííìì¼ë¡ í´ìíê³ , ì¼ì¹íë 문ìì´ì ë²ìí í ì²ë¦¬ í ììíë¡ ë³µìí©ëë¤. `#`ë¡ ììíë ì¤ì 무ìë©ëë¤.
ë³µì¡í í¨í´ì ë°±ì¬ëìë¡ ì´ì¤ì¼ì´í ì²ë¦¬ë ì¤ë°ê¿ì ì¬ì©íì¬ ì¬ë¬ ì¤ì ê±¸ì³ ìì±í ì ììµëë¤.
ë§ì¤í¹ì íµí´ í
ì¤í¸ê° ì´ë»ê² ë³íëëì§ë **--xlate-mask** ìµì
ìì íì¸í ì ììµëë¤.
ë§ì¤í¬ ì리 íììë `<m id="1" />`.ì ê°ì êµ¬ë¬¸ì´ ì¬ë°ë¥¸ ìì²´ ë«í XML íê·¸ì
ëë¤. JSON ê¸°ë° LLM ìì§ì ì
ë ¥ ë°°ì´ì íµí´ ì´ë¬í í그를 ìì í©ëë¤. DeepLì ê²½ì°, ë§ì»¤ íê·¸ê° í¬í¨ë ìì²ì...
ë§ì¤í¹ì ë§í¬ì
ì´ ë²ìëë ê²ì ë°©ì§í©ëë¤. ë²ì ìë¹ì¤ ìì²´ìì 민ê°í 문ìì´ì ì¨ê¸°ë ¤ë©´ ["ANONYMIZATION AND TEMPLATES"](#anonymization-and-templates)ì 참조íììì¤. ë ë°©ë²ì í¨ê» ì¬ì©í ìë...
ì´ ì¸í°íì´ì¤ë ì¤íì ì´ë©° í¥í ë³ê²½ë ì ììµëë¤.
# ANONYMIZATION AND TEMPLATES
민ê°í 문ìì´ì ë²ì APIë¡ ì ì¡ë기 ì ì ê°ë ¤ì§ í, ì¶ë ¥ ì ë³µìë ì ììµëë¤. ìµëª
í ê·ì¹ì ì¬ì íì¼(**--xlate-anonymize**), 문ì ë´ ì¸ë¼ì¸ ë§í¬(**--xlate-anonymize-mark**), YAML íë¡ í¸ë§¤í° ê°...
ìì 문ì(ë¶ê¸° ë³´ê³ ì ë±)ì ê²½ì°, ê´ë ¨ 주체를 미리 ì ìíê³ ë³¸ë¬¸ìì ì´ë¥¼ 참조íììì¤:
---
å ±åè
: å±±ç°å¤ªé
çºæ³¨ä¼ç¤¾: ã¢ã¯ã¡æ ªå¼ä¼ç¤¾
---
æ¬ä»¶ã«ã¤ã㦠{{ å ±åè
}} ã調æ»ãè¡ã£ãã
`--xlate-template`를 ì¬ì©íì¬ ì¸ì´ë³ë¡ í
í릿ì í ë²ì© ë²ìí í (ê°ì´ íì¼ì ì ì¥ëë ê²½ì° `--xlate-frontmatter`ì ì¬ì©), ê·¸ë° ë¤ì **pandoc-embedz** ë
립 모ëë¡ ê° ì¬ë¡ë¥¼ ë ëë§í©ëë¤. ì¸ë¶ êµ...
greple -Mxlate --xlate --xlate-engine=gpt5 --xlate-to=EN-US \
--xlate-template= --xlate-format=xtxt \
--match-paragraph --all --need=0 \
report-template.md > report-template.EN.md
pandoc-embedz --standalone report-template.EN.md \
-c case-123.yaml -o report-123.EN.md < /dev/null
ì¸ë¼ì¸ ë§í¬ì ê²½ì°, 매í¬ë¡ ì ì 구ì±ì ì ê³µíë©´ ëì¼í ë²ìë í
íë¦¿ì´ ì¤ì ì´ë¦ì´ë í¸ì§ë ë²ì ì ë ëë§í©ëë¤:
README.deepl-KO.md view on Meta::CPAN
íì¬ êµ¬íììë í ì¤ì ì¬ë¬ ë¶ë¶ì´ ë²ìëë ê²½ì° ë
립ë ì¤ë¡ ì¶ë ¥ë©ëë¤.
# CACHE OPTIONS
**ìì¤ë ì´í¸** 모ëì ê° íì¼ì ëí ë²ì í
ì¤í¸ë¥¼ ìºìíì¬ ì ì¥íê³ ì¤í ì ì ì½ì´ë¤ì¬ ìë²ì ìì²íë ì¤ë²í¤ë를 ìì¨ ì ììµëë¤. 기본 ìºì ì ëµ `auto`를 ì¬ì©íë©´ ëì íì¼ì ë...
ìºì ê´ë¦¬ë¥¼ ììíê±°ë 기존ì 모ë ìºì ë°ì´í°ë¥¼ ì 리íë ¤ë©´ **--xlate-cache=clear**를 ì¬ì©í©ëë¤. ì´ ìµì
ì ì¤ííë©´ ìºì íì¼ì´ ìë ê²½ì° ì ìºì íì¼ì´ ìì±ëê³ ì´í ìëì¼ë¡ ì ì§ ê...
- --xlate-cache=_strategy_
- `auto` (Default)
ìºì íì¼ì´ ìë ê²½ì° ìºì íì¼ì ì ì§ ê´ë¦¬í©ëë¤.
- `create`
ë¹ ìºì íì¼ì ìì±íê³ ì¢
ë£í©ëë¤.
- `always`, `yes`, `1`
íê²ì´ ì ì íì¼ì¸ í ìºì를 ì ì§í©ëë¤.
- `clear`
ìºì ë°ì´í°ë¥¼ 먼ì ì§ìëë¤.
- `never`, `no`, `0`
ìºì íì¼ì´ ì¡´ì¬íëë¼ë ì ë ì¬ì©íì§ ììµëë¤.
- `accumulate`
기본 ëìì ë°ë¼ ì¬ì©íì§ ìë ë°ì´í°ë ìºì íì¼ìì ì ê±°ë©ëë¤. ì ê±°íì§ ìê³ íì¼ì ì ì§íë ¤ë©´ `accumulate`를 ì¬ì©íì¸ì.
- **--xlate-update**
ì´ ìµì
ì íìíì§ ìì ê²½ì°ìë ìºì íì¼ì ê°ì ë¡ ì
ë°ì´í¸í©ëë¤.
# COMMAND LINE INTERFACE
ì´ ëª¨ëì ë°°í¬ì í¬í¨ë `xlate` ëª
ë ¹ì ì¬ì©íì¬ ëª
ë ¹ì¤ìì ì½ê² ì¬ì©í ì ììµëë¤. ì¬ì©ë²ì `xlate` 매ë´ì¼ íì´ì§ë¥¼ 참조íì¸ì.
`xlate` ëª
ë ¹ì `--to-lang`, `--from-lang`, `--engine` ë° `--file`ì ê°ì GNU ì¤íì¼ì 긴 ìµì
ì ì§ìí©ëë¤. ì¬ì© ê°ë¥í 모ë ìµì
ì ë³´ë ¤ë©´ `xlate -h`ì ì¬ì©íì¸ì.
`xlate` ëª
ë ¹ì Docker í경과 í¨ê» ìëíë¯ë¡ ì무ê²ë ì¤ì¹ëì´ ìì§ ìëë¼ë Docker를 ì¬ì©í ì ìì¼ë©´ ì¬ì©í ì ììµëë¤. `-D` ëë `-C` ìµì
ì ì¬ì©í©ëë¤.
Docker ìì
ì [App::dozo](https://metacpan.org/pod/App%3A%3Adozo)ì¼ë¡ ì²ë¦¬ëë©°, ë
립 ì¤íí ëª
ë ¹ì¼ë¡ë ì¬ì©í ì ììµëë¤. `dozo` ëª
ë ¹ì ì구 컨í
ì´ë ì¤ì ì ìí `.dozorc` êµ¬ì± íì¼ì ì§ìí©ëë¤.
ëí ë¤ìí 문ì ì¤íì¼ì ëí ë©ì´í¬íì¼ì´ ì ê³µëë¯ë¡ í¹ë³í ì§ì ìì´ ë¤ë¥¸ ì¸ì´ë¡ ë²ìì´ ê°ë¥í©ëë¤. `-M` ìµì
ì ì¬ì©í©ëë¤.
Dockerì `make` ìµì
ì ê²°í©íì¬ `make`를 Docker íê²½ìì ì¤íí ìë ììµëë¤.
`xlate -C`ì²ë¼ ì¤ííë©´ íì¬ ìì
ì¤ì¸ git 리í¬ì§í ë¦¬ê° ë§ì´í¸ë ì
¸ì´ ììë©ëë¤.
ìì¸í ë´ì©ì ["ëë 참조"](#ëë-참조) ì¹ì
ì ì¼ë³¸ì´ 기ì¬ë¥¼ 참조íì¸ì.
# EMACS
ì ì¥ìì í¬í¨ë `xlate.el` íì¼ì ë¡ëíì¬ Emacs í¸ì§ê¸°ìì `xlate` ëª
ë ¹ì ì¬ì©í©ëë¤. `xlate-region` í¨ìë ì§ì ë ì§ìì ë²ìí©ëë¤. 기본 ì¸ì´ë `EN-US`ì´ë©° ì ëì¬ ì¸ì를 ì¬ì©íì¬ í¸ì¶íë...
<div>
<p>
<img width="750" src="https://raw.githubusercontent.com/kaz-utashiro/App-Greple-xlate/main/images/emacs.png">
</p>
</div>
# ENVIRONMENT
- DEEPL\_AUTH\_KEY
DeepL ìë¹ì¤ì ëí ì¸ì¦ í¤ë¥¼ ì¤ì í©ëë¤.
- OPENAI\_API\_KEY
ë ê±°ì **gpty** ìì§ìì ì¬ì©íë OpenAI ì¸ì¦ í¤ì
ëë¤. `llm` ê¸°ë° **gpt5** ìì§ë ì´ ë³ì를 ì½ì§ë§, `llm keys set openai`ì ì ì¥ë í¤ë ìëí©ëë¤.
- GREPLE\_XLATE\_CACHE
기본 ìºì ì ëµì ì¤ì í©ëë¤(["CACHE OPTIONS"](#cache-options) 참조).
# INSTALL
## CPANMINUS
$ cpanm App::Greple::xlate
## TOOLS
ì¬ì© ì¤ì¸ ìì§ì ë§ë ëª
ë ¹ì¤ ë구를 ì¤ì¹íì¸ì: `llm`ë **gpt5** ìì§ì©, `deepl`ë DeepLì©, `gpty`ë ë ê±°ì GPT ìì§ì©ì
ëë¤.
[https://llm.datasette.io/](https://llm.datasette.io/)
[https://github.com/DeepLcom/deepl-python](https://github.com/DeepLcom/deepl-python)
[https://github.com/tecolicom/App-gpty](https://github.com/tecolicom/App-gpty)
# SEE ALSO
## MODULES
[App::Greple::xlate::llm](https://metacpan.org/pod/App%3A%3AGreple%3A%3Axlate%3A%3Allm), [App::Greple::xlate::deepl](https://metacpan.org/pod/App%3A%3AGreple%3A%3Axlate%3A%3Adeepl)
[App::dozo](https://metacpan.org/pod/App%3A%3Adozo) - xlateìì 컨í
ì´ë ìì
ì ì¬ì©íë ì¼ë° Docker ë¬ëì
ëë¤.
## RELATED MODULES
- [App::Greple](https://metacpan.org/pod/App%3A%3AGreple)
ëì í
ì¤í¸ í¨í´ì ëí ìì¸í ë´ì©ì **greple** 매ë´ì¼ì 참조íì¸ì. **--ë´ë¶**, **--ì¸ë¶**, **--í¬í¨**, **--ì ì¸** ìµì
ì ì¬ì©íì¬ ì¼ì¹íë ììì ì íí ì ììµëë¤.
- [App::Greple::update](https://metacpan.org/pod/App%3A%3AGreple%3A%3Aupdate)
`-Mupdate` 모ëì ì¬ì©íì¬ **greple** ëª
ë ¹ì ê²°ê³¼ì ë°ë¼ íì¼ì ìì í ì ììµëë¤.
- [App::sdif](https://metacpan.org/pod/App%3A%3Asdif)
ì¶©ë ë§ì»¤ íìì **-V** ìµì
ê³¼ í¨ê» ëëí íìíë ¤ë©´ **ìì¤ëí**를 ì¬ì©í©ëë¤.
- [App::Greple::stripe](https://metacpan.org/pod/App%3A%3AGreple%3A%3Astripe)
íì **ì¤ë¬´ë¬** 모ëì **--xlate-stripe** ìµì
ì¼ë¡ ì¬ì©í©ëë¤.
## RESOURCES
( run in 1.390 second using v1.01-cache-2.11-cpan-364913b4093 )