Reserved words Option - gs-kikim/docs-trans-app GitHub Wiki

Reserved Words

์˜ˆ์•ฝ์–ด๋ฅผ ์ง€์นญํ•˜๋Š” reserved word๋ฅผ ์˜ต์…˜์œผ๋กœ ์‚ฌ์šฉํ•˜์˜€์Šต๋‹ˆ๋‹ค. ์ด ์˜ต์…˜์„ ๋งŒ๋“  ๋ชฉ์ ์€ ๋ณ€ํ™˜๋˜๋Š” ํ‚ค์›Œ๋“œ๋“ค์ด ์˜ˆ์ƒ๊ณผ ๋‹ค๋ฅด๊ฒŒ ๋ณ€ํ™˜๋  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด๋ฅผ ์œ„ํ•ด ์˜ˆ์•ฝ์–ด ์˜ต์…˜์„ ํ†ตํ•ด ๋ฏธ๋ฆฌ ์ •์˜ํ•œ ๋‹จ์–ด๋กœ ๋ณ€ํ™˜ ํ›„ ๋ฒˆ์—ญ ๊ธฐ๋Šฅ์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.

์‚ฌ์šฉ๋ฒ•

  • Json ํŒŒ์ผ์„ ํ†ตํ•ด "source_key":target_word" ๋ฆฌ์ŠคํŠธ๋ฅผ ์ฝ์–ด์˜ต๋‹ˆ๋‹ค. ๋˜ํ•œ source_key๋Š” Regular Expression์„ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค.
{
   "ํฌ์ธํŠธ.?์„ธ๋ถ€.?์ •๋ณด":"Point Details", //"ํฌ์ธํŠธ ์„ธ๋ถ€ ์ •๋ณด":"Point Details"
   ...
}

๋งŒ๋“  {reserved_words}.json ํŒŒ์ผ์€ config.json ํŒŒ์ผ์˜ reserved_words ์˜ต์…˜์— ๊ฒฝ๋กœ๋ฅผ ์ถ”๊ฐ€ํ•ด ์ฃผ์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค.

{
  "target_dir":"{D:\\en\\source}",
  "reserved_words":"{D:\\reserved_words.json}",
  "source_lang": "ko",
  "target_lang": "en",
  "service_name": "Google_v2"
}

๊ทธ๋ฆฌ๊ณ  -c ์˜ต์…˜์„ ํ†ตํ•ด config.json ๊ฒฝ๋กœ ์ž…๋ ฅ ํ›„ ๋ช…๋ น์„ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

$ docs-translate -c {config_path} -path {path} [-d {target_folder_path}]

๊ฒฐ๊ณผ

์œ„ ์„ค์ •์„ ํ†ตํ•ด ๋ฌธ์žฅ๋“ค์€ ์•„๋ž˜์™€ ๊ฐ™์ด ๋ณ€์—ญ๋ฉ๋‹ˆ๋‹ค.

ํฌ์ธํŠธ ์„ธ๋ถ€ ์ •๋ณด๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”.

ํฌ์ธํŠธ ์„ธ๋ถ€์ •๋ณด๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”.
Enter the point details.

Enter the point details.