Debian Codegraph @

translations/manual/ko/function_mode.po

raw
1 # SOME DESCRIPTIVE TITLE.
2 # Copyright (C) Kovid Goyal
3 # This file is distributed under the same license as the calibre package.
4 #
5 # Translators:
6 # Junghee Lee <[email protected]>, 2022,2025
7 # Junghee Lee <[email protected]>, 2021-2022
8 # Junghee Lee <[email protected]>, 2022
9 msgid ""
10 msgstr ""
11 "Project-Id-Version: calibre\n"
12 "Report-Msgid-Bugs-To: \n"
13 "POT-Creation-Date: 2026-04-08 13:52+0000\n"
14 "PO-Revision-Date: 2014-11-21 02:54+0000\n"
15 "Last-Translator: Junghee Lee <[email protected]>, 2022,2025\n"
16 "Language-Team: Korean (http://app.transifex.com/calibre/calibre/language/ko/)\n"
17 "MIME-Version: 1.0\n"
18 "Content-Type: text/plain; charset=UTF-8\n"
19 "Content-Transfer-Encoding: 8bit\n"
20 "Language: ko\n"
21 "Plural-Forms: nplurals=1; plural=0;\n"
22
23 #: ../../../__w/calibre/calibre/manual/function_mode.rst:2
24 msgid "Function mode for Search & replace in the Editor"
25 msgstr "편집기에서의 찾아 바꾸기 함수 모드"
26
27 #: ../../../__w/calibre/calibre/manual/function_mode.rst:4
28 msgid ""
29 "The :guilabel:`Search & replace` tool in the editor supports a *function "
30 "mode*. In this mode, you can combine regular expressions (see :doc:`regexp`)"
31 " with arbitrarily powerful Python functions to do all sorts of advanced text"
32 " processing."
33 msgstr "편집기의 :guilabel:`찾아 바꾸기` 도구는 *함수 모드*를 지원합니다. 이 모드에서는 정규 표현식(:doc:`regexp` 참조)을 임의로 강력한 Python 함수와 결합하여 다양한 고급 텍스트 처리를 수행할 수 있습니다."
34
35 #: ../../../__w/calibre/calibre/manual/function_mode.rst:9
36 msgid ""
37 "In the standard *regexp* mode for search and replace, you specify both a "
38 "regular expression to search for as well as a template that is used to "
39 "replace all found matches. In function mode, instead of using a fixed "
40 "template, you specify an arbitrary function, in the `Python programming "
41 "language <https://docs.python.org>`_. This allows you to do lots of things "
42 "that are not possible with simple templates."
43 msgstr "표준 *regexp* 모드에서는 검색할 정규 표현식과 발견된 모든 일치 항목을 대체하는 데 사용할 템플릿을 모두 지정합니다. 함수 모드에서는 고정 템플릿 대신 `Python 프로그래밍 언어 <https://docs.python.org>`_로 임의의 함수를 지정합니다. 이를 통해 단순한 템플릿으로는 불가능한 많은 작업을 수행할 수 있습니다."
44
45 #: ../../../__w/calibre/calibre/manual/function_mode.rst:16
46 msgid ""
47 "Techniques for using function mode and the syntax will be described by means"
48 " of examples, showing you how to create functions to perform progressively "
49 "more complex tasks."
50 msgstr "함수 모드를 사용하는 기술과 구문은 점점 더 복잡한 작업을 수행하는 함수를 만드는 방법을 보여주는 예제를 통해 설명됩니다."
51
52 #: ../../../__w/calibre/calibre/manual/function_mode.rst:21
53 msgid "The Function mode"
54 msgstr "함수 모드"
55
56 #: ../../../__w/calibre/calibre/manual/function_mode.rst:26
57 msgid "Automatically fixing the case of headings in the document"
58 msgstr "문서의 머리글 대소문자 자동 수정"
59
60 #: ../../../__w/calibre/calibre/manual/function_mode.rst:28
61 msgid ""
62 "Here, we will leverage one of the builtin functions in the editor to "
63 "automatically change the case of all text inside heading tags to title "
64 "case::"
65 msgstr "여기에서는 편집기의 내장 함수 중 하나를 활용하여 머리글 태그 안의 모든 텍스트 대소문자를 제목 대소문자로 자동 변경합니다::"
66
67 #: ../../../__w/calibre/calibre/manual/function_mode.rst:33
68 msgid ""
69 "For the function, simply choose the :guilabel:`Title-case text (ignore "
70 "tags)` builtin function. This will change titles that look like: ``<h1>some "
71 "titLE</h1>`` to ``<h1>Some Title</h1>``. It will work even if there are "
72 "other HTML tags inside the heading tags."
73 msgstr "함수로 :guilabel:`제목 대소문자 텍스트 (태그 무시)` 내장 함수를 선택하기만 하면 됩니다. 이렇게 하면 ``<h1>some titLE</h1>``과 같은 제목이 ``<h1>Some Title</h1>``로 변경됩니다. 머리글 태그 안에 다른 HTML 태그가 있어도 작동합니다."
74
75 #: ../../../__w/calibre/calibre/manual/function_mode.rst:40
76 msgid "Your first custom function - smartening hyphens"
77 msgstr "첫 번째 사용자 지정 함수 - 하이픈 스마트 변환"
78
79 #: ../../../__w/calibre/calibre/manual/function_mode.rst:42
80 msgid ""
81 "The real power of function mode comes from being able to create your own "
82 "functions to process text in arbitrary ways. The Smarten Punctuation tool in"
83 " the editor leaves individual hyphens alone, so you can use this function to"
84 " replace them with em-dashes."
85 msgstr "함수 모드의 진정한 힘은 임의의 방식으로 텍스트를 처리하는 자신만의 함수를 만들 수 있다는 것입니다. 편집기의 스마트 문장 부호 도구는 개별 하이픈을 그대로 두므로, 이 함수를 사용하여 하이픈을 엄선으로 대체할 수 있습니다."
86
87 #: ../../../__w/calibre/calibre/manual/function_mode.rst:47
88 msgid ""
89 "To create a new function, simply click the :guilabel:`Create/edit` button to"
90 " create a new function and copy the Python code from below."
91 msgstr "새 함수를 만들려면 :guilabel:`만들기/편집하기` 버튼을 클릭하여 새 함수를 만들고 아래의 Python 코드를 복사하세요."
92
93 #: ../../../__w/calibre/calibre/manual/function_mode.rst:55
94 msgid ""
95 "Every :guilabel:`Search & replace` custom function must have a unique name "
96 "and consist of a Python function named replace, that accepts all the "
97 "arguments shown above. For the moment, we won't worry about all the "
98 "different arguments to ``replace()`` function. Just focus on the ``match`` "
99 "argument. It represents a match when running a search and replace. Its full "
100 "documentation in available `here "
101 "<https://docs.python.org/library/re.html#match-objects>`_. ``match.group()``"
102 " simply returns all the matched text and all we do is replace hyphens in "
103 "that text with em-dashes, first replacing double hyphens and then single "
104 "hyphens."
105 msgstr "모든 :guilabel:`찾아 바꾸기` 사용자 지정 함수는 고유한 이름을 가져야 하며, 위에 표시된 모든 인수를 받는 replace라는 이름의 Python 함수로 구성되어야 합니다. 지금은 ``replace()`` 함수의 다양한 인수에 대해 걱정하지 않겠습니다. ``match`` 인수에만 집중하세요. 찾아 바꾸기를 실행할 때 일치 항목을 나타냅니다. 전체 문서는 `여기 <https://docs.python.org/library/re.html#match-objects>`_에서 확인할 수 있습니다. ``match.group()``은 일치한 모든 텍스트를 반환하며, 해당 텍스트의 하이픈을 엄선으로 대체합니다. 먼저 이중 하이픈을 대체한 다음 단일 하이픈을 대체합니다."
106
107 #: ../../../__w/calibre/calibre/manual/function_mode.rst:65
108 msgid "Use this function with the find regular expression::"
109 msgstr "이 함수를 다음 찾기 정규 표현식과 함께 사용하세요::"
110
111 #: ../../../__w/calibre/calibre/manual/function_mode.rst:69
112 msgid ""
113 "And it will replace all hyphens with em-dashes, but only in actual text and "
114 "not inside HTML tag definitions."
115 msgstr "그러면 모든 하이픈이 엄선으로 대체되지만, 실제 텍스트에서만 대체되고 HTML 태그 정의 안에서는 대체되지 않습니다."
116
117 #: ../../../__w/calibre/calibre/manual/function_mode.rst:74
118 msgid ""
119 "The power of function mode - using a spelling dictionary to fix mis-"
120 "hyphenated words"
121 msgstr "함수 모드의 강력함 - 철자 사전을 사용하여 하이픈이 잘못된 단어 수정"
122
123 #: ../../../__w/calibre/calibre/manual/function_mode.rst:76
124 msgid ""
125 "Often, e-books created from scans of printed books contain mis-hyphenated "
126 "words -- words that were split at the end of the line on the printed page. "
127 "We will write a simple function to automatically find and fix such words."
128 msgstr "종이책 스캔으로 만든 전자책에는 종종 하이픈이 잘못된 단어, 즉 인쇄된 페이지의 줄 끝에서 분할된 단어가 포함되어 있습니다. 이러한 단어를 자동으로 찾아 수정하는 간단한 함수를 작성하겠습니다."
129
130 #: ../../../__w/calibre/calibre/manual/function_mode.rst:101
131 msgid "Use this function with the same find expression as before, namely::"
132 msgstr "이 함수를 이전과 동일한 찾기 표현식과 함께 사용하세요::"
133
134 #: ../../../__w/calibre/calibre/manual/function_mode.rst:105
135 msgid ""
136 "And it will magically fix all mis-hyphenated words in the text of the book. "
137 "The main trick is to use one of the useful extra arguments to the replace "
138 "function, ``dictionaries``. This refers to the dictionaries the editor "
139 "itself uses to spell check text in the book. What this function does is look"
140 " for words separated by a hyphen, remove the hyphen and check if the "
141 "dictionary recognizes the composite word, if it does, the original words are"
142 " replaced by the hyphen free composite word."
143 msgstr "그러면 책 텍스트의 하이픈이 잘못된 모든 단어가神奇하게 수정됩니다. 핵심은 대체 함수의 유용한 추가 인수 중 하나인 ``dictionaries``를 사용하는 것입니다. 이는 편집기 자체가 책의 텍스트 철자 검사에 사용하는 사전을 나타냅니다. 이 함수는 하이픈으로 분리된 단어를 찾아 하이픈을 제거하고 사전이 합성어를 인식하는지 확인합니다. 인식하면 원래 단어가 하이픈 없는 합성어로 대체됩니다."
144
145 #: ../../../__w/calibre/calibre/manual/function_mode.rst:113
146 msgid ""
147 "Note that one limitation of this technique is it will only work for mono-"
148 "lingual books, because, by default, ``dictionaries.recognized()`` uses the "
149 "main language of the book."
150 msgstr "이 기술의 한 가지 제한 사항은 기본적으로 ``dictionaries.recognized()``가 책의 주 언어를 사용하므로 단일 언어 책에서만 작동한다는 점입니다."
151
152 #: ../../../__w/calibre/calibre/manual/function_mode.rst:119
153 msgid "Auto numbering sections"
154 msgstr "섹션 자동 번호 매기기"
155
156 #: ../../../__w/calibre/calibre/manual/function_mode.rst:121
157 msgid ""
158 "Now we will see something a little different. Suppose your HTML file has "
159 "many sections, each with a heading in an :code:`<h2>` tag that looks like "
160 ":code:`<h2>Some text</h2>`. You can create a custom function that will "
161 "automatically number these headings with consecutive section numbers, so "
162 "that they look like :code:`<h2>1. Some text</h2>`."
163 msgstr "이제 약간 다른 것을 살펴보겠습니다. HTML 파일에 여러 섹션이 있고 각 섹션에 :code:`<h2>Some text</h2>`와 같은 :code:`<h2>` 태그의 머리글이 있다고 가정합니다. 이러한 머리글에 연속적인 섹션 번호를 자동으로 매기는 사용자 지정 함수를 만들어 :code:`<h2>1. Some text</h2>`처럼 보이게 할 수 있습니다."
164
165 #: ../../../__w/calibre/calibre/manual/function_mode.rst:137
166 msgid "Use it with the find expression::"
167 msgstr "다음 찾기 표현식과 함께 사용하세요::"
168
169 #: ../../../__w/calibre/calibre/manual/function_mode.rst:141
170 msgid ""
171 "Place the cursor at the top of the file and click :guilabel:`Replace all`."
172 msgstr "커서를 파일 상단에 놓고 :guilabel:`모두 바꾸기`를 클릭하세요."
173
174 #: ../../../__w/calibre/calibre/manual/function_mode.rst:143
175 msgid ""
176 "This function uses another of the useful extra arguments to ``replace()``: "
177 "the ``number`` argument. When doing a :guilabel:`Replace All` number is "
178 "automatically incremented for every successive match."
179 msgstr "이 함수는 ``replace()``의 또 다른 유용한 추가 인수인 ``number`` 인수를 사용합니다. :guilabel:`모두 바꾸기`를 수행할 때 number는 각 연속 일치 항목에 대해 자동으로 증가합니다."
180
181 #: ../../../__w/calibre/calibre/manual/function_mode.rst:147
182 msgid ""
183 "Another new feature is the use of ``replace.file_order`` -- setting that to "
184 "``'spine'`` means that if this search is run on multiple HTML files, the "
185 "files are processed in the order in which they appear in the book. See "
186 ":ref:`file_order_replace_all` for details."
187 msgstr "또 다른 새로운 기능은 ``replace.file_order``의 사용입니다. 이를 ``'spine'``으로 설정하면 여러 HTML 파일에서 이 검색이 실행될 때 파일이 책에 나타나는 순서대로 처리됩니다. 자세한 내용은 :ref:`file_order_replace_all`을 참조하세요."
188
189 #: ../../../__w/calibre/calibre/manual/function_mode.rst:154
190 msgid "Auto create a Table of Contents"
191 msgstr "목차 자동 생성"
192
193 #: ../../../__w/calibre/calibre/manual/function_mode.rst:156
194 msgid ""
195 "Finally, let's try something a little more ambitious. Suppose your book has "
196 "headings in ``h1`` and ``h2`` tags that look like ``<h1 id=\"someid\">Some "
197 "Text</h1>``. We will auto-generate an HTML Table of Contents based on these "
198 "headings. Create the custom function below:"
199 msgstr "마지막으로 좀 더 도전적인 것을 시도해 보겠습니다. 책에 ``<h1 id=\"someid\">Some Text</h1>``처럼 보이는 ``h1`` 및 ``h2`` 태그의 머리글이 있다고 가정합니다. 이러한 머리글을 기반으로 HTML 목차를 자동 생성하겠습니다. 아래의 사용자 지정 함수를 만드세요:"
200
201 #: ../../../__w/calibre/calibre/manual/function_mode.rst:199
202 msgid "And use it with the find expression::"
203 msgstr "다음 찾기 표현식과 함께 사용하세요::"
204
205 #: ../../../__w/calibre/calibre/manual/function_mode.rst:203
206 msgid ""
207 "Run the search on :guilabel:`All text files` and at the end of the search, a"
208 " window will popup with \"Debug output from your function\" which will have "
209 "the HTML Table of Contents, ready to be pasted into :file:`toc.html`."
210 msgstr ":guilabel:`모든 텍스트 파일`에서 검색을 실행하면 검색이 끝날 때 \"함수의 디버그 출력\" 창이 팝업되며, 여기에 :file:`toc.html`에 붙여넣을 준비가 된 HTML 목차가 포함됩니다."
211
212 #: ../../../__w/calibre/calibre/manual/function_mode.rst:207
213 msgid ""
214 "The function above is heavily commented, so it should be easy to follow. The"
215 " key new feature is the use of another useful extra argument to the "
216 "``replace()`` function, the ``data`` object. The ``data`` object is a Python"
217 " *dictionary* that persists between all successive invocations of "
218 "``replace()`` during a single :guilabel:`Replace All` operation."
219 msgstr "위 함수는 주석이 많이 달려 있어 따라하기 쉬울 것입니다. 핵심적인 새로운 기능은 ``replace()`` 함수의 또 다른 유용한 추가 인수인 ``data`` 객체의 사용입니다. ``data`` 객체는 단일 :guilabel:`모두 바꾸기` 작업 동안 ``replace()``의 모든 연속 호출 사이에 지속되는 Python *딕셔너리*입니다."
220
221 #: ../../../__w/calibre/calibre/manual/function_mode.rst:213
222 msgid ""
223 "Another new feature is the use of ``call_after_last_match`` -- setting that "
224 "to ``True`` on the ``replace()`` function means that the editor will call "
225 "``replace()`` one extra time after all matches have been found. For this "
226 "extra call, the match object will be ``None``."
227 msgstr "또 다른 새로운 기능은 ``call_after_last_match``의 사용입니다. ``replace()`` 함수에서 이를 ``True``로 설정하면 편집기가 모든 일치 항목을 찾은 후 ``replace()``를 한 번 더 호출합니다. 이 추가 호출에서 match 객체는 ``None``이 됩니다."
228
229 #: ../../../__w/calibre/calibre/manual/function_mode.rst:218
230 msgid ""
231 "This was just a demonstration to show you the power of function mode, if you"
232 " really needed to generate a Table of Contents from headings in your book, "
233 "you would be better off using the dedicated Table of Contents tool in "
234 ":guilabel:`Tools->Table of Contents`."
235 msgstr "이것은 함수 모드의 강력함을 보여주기 위한 데모일 뿐입니다. 실제로 책의 머리글에서 목차를 생성해야 한다면 :guilabel:`도구->목차`의 전용 목차 도구를 사용하는 것이 더 좋습니다."
236
237 #: ../../../__w/calibre/calibre/manual/function_mode.rst:224
238 msgid "The API for the function mode"
239 msgstr "함수 모드의 API"
240
241 #: ../../../__w/calibre/calibre/manual/function_mode.rst:226
242 msgid ""
243 "All function mode functions must be Python functions named replace, with the"
244 " following signature::"
245 msgstr "모든 함수 모드 함수는 다음 서명을 가진 replace라는 이름의 Python 함수여야 합니다::"
246
247 #: ../../../__w/calibre/calibre/manual/function_mode.rst:232
248 msgid ""
249 "When a find/replace is run, for every match that is found, the ``replace()``"
250 " function will be called, it must return the replacement string for that "
251 "match. If no replacements are to be done, it should return ``match.group()``"
252 " which is the original string. The various arguments to the ``replace()`` "
253 "function are documented below."
254 msgstr "찾아 바꾸기가 실행되면, 발견된 각 일치 항목에 대해 ``replace()`` 함수가 호출되며, 해당 일치 항목에 대한 대체 문자열을 반환해야 합니다. 대체를 수행하지 않아야 하는 경우 원본 문자열인 ``match.group()``을 반환해야 합니다. ``replace()`` 함수의 다양한 인수는 아래에 설명되어 있습니다."
255
256 #: ../../../__w/calibre/calibre/manual/function_mode.rst:239
257 msgid "The ``match`` argument"
258 msgstr "``match`` 인수"
259
260 #: ../../../__w/calibre/calibre/manual/function_mode.rst:241
261 msgid ""
262 "The ``match`` argument represents the currently found match. It is a `Python"
263 " Match object <https://docs.python.org/library/re.html#match-objects>`_. Its"
264 " most useful method is ``group()`` which can be used to get the matched text"
265 " corresponding to individual capture groups in the search regular "
266 "expression."
267 msgstr "``match`` 인수는 현재 발견된 일치 항목을 나타냅니다. `Python Match 객체 <https://docs.python.org/library/re.html#match-objects>`_입니다. 가장 유용한 메서드는 ``group()``으로, 검색 정규 표현식의 개별 캡처 그룹에 해당하는 일치 텍스트를 가져오는 데 사용할 수 있습니다."
268
269 #: ../../../__w/calibre/calibre/manual/function_mode.rst:248
270 msgid "The ``number`` argument"
271 msgstr "``number`` 인수"
272
273 #: ../../../__w/calibre/calibre/manual/function_mode.rst:250
274 msgid ""
275 "The ``number`` argument is the number of the current match. When you run "
276 ":guilabel:`Replace All`, every successive match will cause ``replace()`` to "
277 "be called with an increasing number. The first match has number 1."
278 msgstr "``number`` 인수는 현재 일치 항목의 번호입니다. :guilabel:`모두 바꾸기`를 실행하면 각 연속 일치 항목에 대해 ``replace()``가 증가하는 번호로 호출됩니다. 첫 번째 일치 항목은 번호 1입니다."
279
280 #: ../../../__w/calibre/calibre/manual/function_mode.rst:255
281 msgid "The ``file_name`` argument"
282 msgstr "``file_name`` 인수"
283
284 #: ../../../__w/calibre/calibre/manual/function_mode.rst:257
285 msgid ""
286 "This is the filename of the file in which the current match was found. When "
287 "searching inside marked text, the ``file_name`` is empty. The ``file_name`` "
288 "is in canonical form, a path relative to the root of the book, using ``/`` "
289 "as the path separator."
290 msgstr "이것은 현재 일치 항목이 발견된 파일의 파일명입니다. 표시된 텍스트 내에서 검색할 때 ``file_name``은 비어 있습니다. ``file_name``은 정규 형식으로, ``/``를 경로 구분자로 사용하여 책의 루트에 상대적인 경로입니다."
291
292 #: ../../../__w/calibre/calibre/manual/function_mode.rst:263
293 msgid "The ``metadata`` argument"
294 msgstr "``metadata`` 인수"
295
296 #: ../../../__w/calibre/calibre/manual/function_mode.rst:265
297 msgid ""
298 "This represents the metadata of the current book, such as title, authors, "
299 "language, etc. It is an object of class "
300 ":class:`calibre.ebooks.metadata.book.base.Metadata`. Useful attributes "
301 "include, ``title``, ``authors`` (a list of authors) and ``language`` (the "
302 "language code)."
303 msgstr "이것은 제목, 저자, 언어 등과 같은 현재 책의 메타데이터를 나타냅니다. :class:`calibre.ebooks.metadata.book.base.Metadata` 클래스의 객체입니다. 유용한 속성으로는 ``title``, ``authors`(저자 목록), ``language``(언어 코드)가 있습니다."
304
305 #: ../../../__w/calibre/calibre/manual/function_mode.rst:271
306 msgid "The ``dictionaries`` argument"
307 msgstr "``dictionaries`` 인수"
308
309 #: ../../../__w/calibre/calibre/manual/function_mode.rst:273
310 msgid ""
311 "This represents the collection of dictionaries used for spell checking the "
312 "current book. Its most useful method is ``dictionaries.recognized(word)`` "
313 "which will return ``True`` if the passed in word is recognized by the "
314 "dictionary for the current book's language."
315 msgstr "이것은 현재 책의 철자 검사에 사용되는 사전 모음을 나타냅니다. 가장 유용한 메서드는 ``dictionaries.recognized(word)``로, 전달된 단어가 현재 책의 언어에 대한 사전에서 인식되면 ``True``를 반환합니다."
316
317 #: ../../../__w/calibre/calibre/manual/function_mode.rst:279
318 msgid "The ``data`` argument"
319 msgstr "``data`` 인수"
320
321 #: ../../../__w/calibre/calibre/manual/function_mode.rst:281
322 msgid ""
323 "This a simple Python ``dictionary``. When you run :guilabel:`Replace all`, "
324 "every successive match will cause ``replace()`` to be called with the same "
325 "``dictionary`` as data. You can thus use it to store arbitrary data between "
326 "invocations of ``replace()`` during a :guilabel:`Replace all` operation."
327 msgstr "이것은 간단한 Python ``dictionary``입니다. :guilabel:`모두 바꾸기`를 실행하면 각 연속 일치 항목에 대해 동일한 ``dictionary``가 data로 ``replace()``가 호출됩니다. 따라서 :guilabel:`모두 바꾸기` 작업 동안 ``replace()`` 호출 사이에 임의의 데이터를 저장하는 데 사용할 수 있습니다."
328
329 #: ../../../__w/calibre/calibre/manual/function_mode.rst:288
330 msgid "The ``functions`` argument"
331 msgstr "``functions`` 인수"
332
333 #: ../../../__w/calibre/calibre/manual/function_mode.rst:290
334 msgid ""
335 "The ``functions`` argument gives you access to all other user defined "
336 "functions. This is useful for code re-use. You can define utility functions "
337 "in one place and re-use them in all your other functions. For example, "
338 "suppose you create a function named ``My Function`` like this:"
339 msgstr "``functions`` 인수는 다른 모든 사용자 정의 함수에 대한 접근을 제공합니다. 이는 코드 재사용에 유용합니다. 한 곳에서 유틸리티 함수를 정의하고 다른 모든 함수에서 재사용할 수 있습니다. 예를 들어, ``My Function``이라는 함수를 다음과 같이 만든다고 가정합니다:"
340
341 #: ../../../__w/calibre/calibre/manual/function_mode.rst:303
342 msgid ""
343 "Then, in another function, you can access the ``utility()`` function like "
344 "this:"
345 msgstr "그러면 다른 함수에서 ``utility()`` 함수에 다음과 같이 접근할 수 있습니다:"
346
347 #: ../../../__w/calibre/calibre/manual/function_mode.rst:311
348 msgid ""
349 "You can also use the functions object to store persistent data, that can be "
350 "re-used by other functions. For example, you could have one function that "
351 "when run with :guilabel:`Replace All` collects some data and another "
352 "function that uses it when it is run afterwards. Consider the following two "
353 "functions:"
354 msgstr "함수 객체를 사용하여 영속적인 데이터를 저장하고 다른 함수에서 재사용할 수도 있습니다. 예를 들어, :guilabel:`모두 바꾸기`와 함께 실행될 때 일부 데이터를 수집하는 하나의 함수와 나중에 실행될 때 해당 데이터를 사용하는 another 함수를 만들 수 있습니다. 다음 두 함수를 고려하세요:"
355
356 #: ../../../__w/calibre/calibre/manual/function_mode.rst:331
357 msgid "Debugging your functions"
358 msgstr "함수 디버깅"
359
360 #: ../../../__w/calibre/calibre/manual/function_mode.rst:333
361 msgid ""
362 "You can debug the functions you create by using the standard ``print()`` "
363 "function from Python. The output of print will be displayed in a popup "
364 "window after the Find/replace has completed. You saw an example of using "
365 "``print()`` to output an entire table of contents above."
366 msgstr "Python의 표준 ``print()`` 함수를 사용하여 만든 함수를 디버그할 수 있습니다. print의 출력은 찾아 바꾸기가 완료된 후 팝업 창에 표시됩니다. 위에서 ``print()``를 사용하여 전체 목차를 출력하는 예시를 보았습니다."
367
368 #: ../../../__w/calibre/calibre/manual/function_mode.rst:341
369 msgid "Choose file order when running on multiple HTML files"
370 msgstr "여러 HTML 파일에서 실행할 때 파일 순서 선택"
371
372 #: ../../../__w/calibre/calibre/manual/function_mode.rst:343
373 msgid ""
374 "When you run a :guilabel:`Replace all` on multiple HTML files, the order in "
375 "which the files are processed depends on what files you have open for "
376 "editing. You can force the search to process files in the order in which "
377 "they appear by setting the ``file_order`` attribute on your function, like "
378 "this:"
379 msgstr "여러 HTML 파일에서 :guilabel:`모두 바꾸기`를 실행하면 파일이 처리되는 순서는 편집을 위해 열어둔 파일에 따라 달라집니다. 함수에서 ``file_order`` 속성을 설정하여 파일이 나타나는 순서대로 검색이 처리되도록 강제할 수 있습니다:"
380
381 #: ../../../__w/calibre/calibre/manual/function_mode.rst:355
382 msgid ""
383 "``file_order`` accepts two values, ``spine`` and ``spine-reverse`` which "
384 "cause the search to process multiple files in the order they appear in the "
385 "book, either forwards or backwards, respectively."
386 msgstr "``file_order``는 ``spine``과 ``spine-reverse`` 두 값을 받으며, 각각 책에 나타나는 순서대로 또는 역순으로 여러 파일을 처리하도록 합니다."
387
388 #: ../../../__w/calibre/calibre/manual/function_mode.rst:360
389 msgid ""
390 "Having your function called an extra time after the last match is found"
391 msgstr "마지막 일치 항목을 찾은 후 함수를 한 번 더 호출하기"
392
393 #: ../../../__w/calibre/calibre/manual/function_mode.rst:362
394 msgid ""
395 "Sometimes, as in the auto generate table of contents example above, it is "
396 "useful to have your function called an extra time after the last match is "
397 "found. You can do this by setting the ``call_after_last_match`` attribute on"
398 " your function, like this:"
399 msgstr "때때로 위의 목차 자동 생성 예시처럼 마지막 일치 항목을 찾은 후 함수를 한 번 더 호출하는 것이 유용합니다. 함수에서 ``call_after_last_match`` 속성을 설정하여 이를 수행할 수 있습니다:"
400
401 #: ../../../__w/calibre/calibre/manual/function_mode.rst:376
402 msgid "Appending the output from the function to marked text"
403 msgstr "함수의 출력을 표시된 텍스트에 추가"
404
405 #: ../../../__w/calibre/calibre/manual/function_mode.rst:378
406 msgid ""
407 "When running search and replace on marked text, it is sometimes useful to "
408 "append some text to the end of the marked text. You can do that by setting "
409 "the ``append_final_output_to_marked`` attribute on your function (note that "
410 "you also need to set ``call_after_last_match``), like this:"
411 msgstr "표시된 텍스트에서 찾아 바꾸기를 실행할 때 표시된 텍스트 끝에 일부 텍스트를 추가하는 것이 유용할 수 있습니다. 함수에서 ``append_final_output_to_marked`` 속성을 설정하여 이를 수행할 수 있습니다(``call_after_last_match``도 설정해야 합니다):"
412
413 #: ../../../__w/calibre/calibre/manual/function_mode.rst:393
414 msgid "Suppressing the result dialog when performing searches on marked text"
415 msgstr "표시된 텍스트에서 검색 수행 시 결과 대화상자 표시 안 함"
416
417 #: ../../../__w/calibre/calibre/manual/function_mode.rst:395
418 msgid ""
419 "You can also suppress the result dialog (which can slow down the repeated "
420 "application of a search/replace on many blocks of text) by setting the "
421 "``suppress_result_dialog`` attribute on your function, like this:"
422 msgstr "함수에서 ``suppress_result_dialog`` 속성을 설정하여 결과 대화상자(여러 텍스트 블록에 대한 찾아 바꾸기의 반복 적용을 느리게 할 수 있음)를 표시하지 않도록 할 수도 있습니다:"
423
424 #: ../../../__w/calibre/calibre/manual/function_mode.rst:408
425 msgid "More examples"
426 msgstr "더 많은 예시"
427
428 #: ../../../__w/calibre/calibre/manual/function_mode.rst:410
429 msgid ""
430 "More useful examples, contributed by calibre users, can be found in the "
431 "`calibre E-book editor forum "
432 "<https://www.mobileread.com/forums/showthread.php?t=237181>`_."
433 msgstr "calibre 사용자가 기여한 더 유용한 예시는 `calibre 전자책 편집기 포럼 <https://www.mobileread.com/forums/showthread.php?t=237181>`_에서 확인할 수 있습니다."