Debian Codegraph @

translations/manual/el/develop.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 # LaScapigliata <[email protected]>, 2014
7 # Georgios Savopulos <[email protected]>, 2018-2019
8 # LaScapigliata <[email protected]>, 2014
9 msgid ""
10 msgstr ""
11 "Project-Id-Version: calibre\n"
12 "Report-Msgid-Bugs-To: \n"
13 "POT-Creation-Date: 2022-02-17 05:40+0000\n"
14 "PO-Revision-Date: 2022-02-16 05:39+0000\n"
15 "Last-Translator: Kovid Goyal <[email protected]>\n"
16 "Language-Team: Greek (http://www.transifex.com/calibre/calibre/language/el/)\n"
17 "MIME-Version: 1.0\n"
18 "Content-Type: text/plain; charset=UTF-8\n"
19 "Content-Transfer-Encoding: 8bit\n"
20 "Language: el\n"
21 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
22
23 #: ../../__w/calibre/calibre/manual/develop.rst:4
24 msgid "Setting up a calibre development environment"
25 msgstr "Δημιουργία περιβάλλοντος ανάπτυξης calibre"
26
27 #: ../../__w/calibre/calibre/manual/develop.rst:6
28 msgid ""
29 "calibre is completely open source, licensed under the `GNU GPL v3 "
30 "<https://www.gnu.org/licenses/gpl.html>`_. This means that you are free to "
31 "download and modify the program to your heart's content. In this section, "
32 "you will learn how to get a calibre development environment set up on the "
33 "operating system of your choice. calibre is written primarily in `Python "
34 "<https://www.python.org>`_ with some C/C++ code for speed and system "
35 "interfacing. Note that calibre requires at least Python 3.8."
36 msgstr ""
37
38 #: ../../__w/calibre/calibre/manual/develop.rst:14
39 msgid "Contents"
40 msgstr "Περιεχόμενα"
41
42 #: ../../__w/calibre/calibre/manual/develop.rst:17
43 msgid "Design philosophy"
44 msgstr "Φιλοσοφία σχεδίασης"
45
46 #: ../../__w/calibre/calibre/manual/develop.rst:19
47 msgid ""
48 "calibre has its roots in the Unix world, which means that its design is "
49 "highly modular. The modules interact with each other via well defined "
50 "interfaces. This makes adding new features and fixing bugs in calibre very "
51 "easy, resulting in a frenetic pace of development. Because of its roots, "
52 "calibre has a comprehensive command line interface for all its functions, "
53 "documented in :doc:`generated/en/cli-index`."
54 msgstr "Το calibre έχει τις ρίζες του στον κόσμο του Unix, που σημαίνει ότι εκ σχεδιασμού αποτελείται από πολλά τμήματα. Τα τμήματα αυτά αλληλεπιδρούν μεταξύ τους μέσω καλά καθορισμένων διασυνδέσεων. Αυτό κάνει την προσθήκη νέων χαρακτηριστικών και την επιδιόρθωση σφαλμάτων στο calibre πολύ εύκολη, με αποτέλεσμα ένα φρενήρη ρυθμό ανάπτυξης. Εξαιτίας των ριζών του, το calibre διαθέτει μια πλήρη διεπαφή για τη γραμμή εντολών για κάθε του λειτουργία, η οποία τεκμηριώνεται στο :doc:`generated/el/cli-index`."
55
56 #: ../../__w/calibre/calibre/manual/develop.rst:24
57 msgid ""
58 "The modular design of calibre is expressed via ``Plugins``. There is a "
59 ":ref:`tutorial <customize>` on writing calibre plugins. For example, adding "
60 "support for a new device to calibre typically involves writing less than a "
61 "100 lines of code in the form of a device driver plugin. You can browse the "
62 "`built-in drivers "
63 "<https://github.com/kovidgoyal/calibre/tree/master/src/calibre/devices>`_. "
64 "Similarly, adding support for new conversion formats involves writing "
65 "input/output format plugins. Another example of the modular design is the "
66 ":ref:`recipe system <news>` for fetching news. For more examples of plugins "
67 "designed to add features to calibre, see the `Index of plugins "
68 "<https://www.mobileread.com/forums/showthread.php?p=1362767#post1362767>`_."
69 msgstr ""
70
71 #: ../../__w/calibre/calibre/manual/develop.rst:34
72 msgid "Code layout"
73 msgstr ""
74
75 #: ../../__w/calibre/calibre/manual/develop.rst:36
76 msgid ""
77 "All the calibre python code is in the ``calibre`` package. This package "
78 "contains the following main sub-packages"
79 msgstr ""
80
81 #: ../../__w/calibre/calibre/manual/develop.rst:38
82 msgid ""
83 "devices - All the device drivers. Just look through some of the built-in "
84 "drivers to get an idea for how they work."
85 msgstr ""
86
87 #: ../../__w/calibre/calibre/manual/develop.rst:40
88 msgid ""
89 "For details, see: ``devices.interface`` which defines the interface "
90 "supported by device drivers and ``devices.usbms`` which defines a generic "
91 "driver that connects to a USBMS device. All USBMS based drivers in calibre "
92 "inherit from it."
93 msgstr ""
94
95 #: ../../__w/calibre/calibre/manual/develop.rst:43
96 msgid ""
97 "e-books - All the e-book conversion/metadata code. A good starting point is"
98 " ``calibre.ebooks.conversion.cli`` which is the module powering the "
99 ":command:`ebook-convert` command. The conversion process is controlled via "
100 "``conversion.plumber``. The format independent code is all in ``ebooks.oeb``"
101 " and the format dependent code is in ``ebooks.format_name``."
102 msgstr ""
103
104 #: ../../__w/calibre/calibre/manual/develop.rst:47
105 msgid ""
106 "Metadata reading, writing, and downloading is all in ``ebooks.metadata``"
107 msgstr ""
108
109 #: ../../__w/calibre/calibre/manual/develop.rst:48
110 msgid ""
111 "Conversion happens in a pipeline, for the structure of the pipeline, see "
112 ":ref:`conversion-introduction`. The pipeline consists of an input plugin, "
113 "various transforms and an output plugin. The code that constructs and drives"
114 " the pipeline is in :file:`plumber.py`. The pipeline works on a "
115 "representation of an e-book that is like an unzipped epub, with manifest, "
116 "spine, toc, guide, html content, etc. The class that manages this "
117 "representation is OEBBook in ``ebooks.oeb.base``. The various "
118 "transformations that are applied to the book during conversions live in "
119 ":file:`oeb/transforms/*.py`. And the input and output plugins live in "
120 ":file:`conversion/plugins/*.py`."
121 msgstr ""
122
123 #: ../../__w/calibre/calibre/manual/develop.rst:58
124 msgid ""
125 "E-book editing happens using a different container object. It is documented "
126 "in :ref:`polish_api`."
127 msgstr ""
128
129 #: ../../__w/calibre/calibre/manual/develop.rst:61
130 msgid ""
131 "db - The database back-end. See :ref:`db_api` for the interface to the "
132 "calibre library."
133 msgstr ""
134
135 #: ../../__w/calibre/calibre/manual/develop.rst:63
136 msgid "Content server: ``srv`` is the calibre Content server."
137 msgstr ""
138
139 #: ../../__w/calibre/calibre/manual/develop.rst:65
140 msgid ""
141 "gui2 - The Graphical User Interface. GUI initialization happens in "
142 "``gui2.main`` and ``gui2.ui``. The e-book-viewer is in ``gui2.viewer``. The "
143 "e-book editor is in ``gui2.tweak_book``."
144 msgstr ""
145
146 #: ../../__w/calibre/calibre/manual/develop.rst:67
147 msgid ""
148 "If you want to locate the entry points for all the various calibre "
149 "executables, look at the ``entry_points`` structure in `linux.py "
150 "<https://github.com/kovidgoyal/calibre/blob/master/src/calibre/linux.py>`_."
151 msgstr ""
152
153 #: ../../__w/calibre/calibre/manual/develop.rst:71
154 msgid ""
155 "If you need help understanding the code, post in the `development forum "
156 "<https://www.mobileread.com/forums/forumdisplay.php?f=240>`_ and you will "
157 "most likely get help from one of calibre's many developers."
158 msgstr ""
159
160 #: ../../__w/calibre/calibre/manual/develop.rst:75
161 msgid "Getting the code"
162 msgstr "Λήψη του κωδικού"
163
164 #: ../../__w/calibre/calibre/manual/develop.rst:77
165 msgid ""
166 "You can get the calibre source code in two ways, using a version control "
167 "system or directly downloading a :website_base:`tarball <dist/src>`."
168 msgstr ""
169
170 #: ../../__w/calibre/calibre/manual/develop.rst:80
171 msgid ""
172 "calibre uses `Git <https://www.git-scm.com/>`_, a distributed version "
173 "control system. Git is available on all the platforms calibre supports. "
174 "After installing Git, you can get the calibre source code with the command::"
175 msgstr ""
176
177 #: ../../__w/calibre/calibre/manual/develop.rst:86
178 msgid ""
179 "On Windows you will need the complete path name, that will be something like"
180 " :file:`C:\\\\Program Files\\\\Git\\\\git.exe`."
181 msgstr ""
182
183 #: ../../__w/calibre/calibre/manual/develop.rst:88
184 msgid ""
185 "calibre is a very large project with a very long source control history, so "
186 "the above can take a while (10 mins to an hour depending on your internet "
187 "speed)."
188 msgstr ""
189
190 #: ../../__w/calibre/calibre/manual/develop.rst:91
191 msgid ""
192 "If you want to get the code faster, the source code for the latest release "
193 "is always available as an :website_base:`archive <dist/src>`."
194 msgstr ""
195
196 #: ../../__w/calibre/calibre/manual/develop.rst:94
197 msgid "To update a branch to the latest code, use the command::"
198 msgstr ""
199
200 #: ../../__w/calibre/calibre/manual/develop.rst:98
201 msgid ""
202 "You can also browse the code at `GitHub "
203 "<https://github.com/kovidgoyal/calibre>`_."
204 msgstr ""
205
206 #: ../../__w/calibre/calibre/manual/develop.rst:101
207 msgid "Submitting your changes to be included"
208 msgstr ""
209
210 #: ../../__w/calibre/calibre/manual/develop.rst:103
211 msgid ""
212 "If you only plan to make a few small changes, you can make your changes and "
213 "create a \"merge directive\" which you can then attach to a ticket in the "
214 "calibre `bug tracker <https://bugs.launchpad.net/calibre>`_. To do this, "
215 "make your changes, then run::"
216 msgstr ""
217
218 #: ../../__w/calibre/calibre/manual/develop.rst:111
219 msgid ""
220 "This will create a :file:`my-changes` file in the current folder, simply "
221 "attach that to a ticket on the calibre `bug tracker "
222 "<https://bugs.launchpad.net/calibre>`_. Note that this will include *all* "
223 "the commits you have made. If you only want to send some commits, you have "
224 "to change ``origin/master`` above. To send only the last commit, use::"
225 msgstr ""
226
227 #: ../../__w/calibre/calibre/manual/develop.rst:119
228 msgid ""
229 "To send the last *n* commits, replace *1* with *n*, for example, for the "
230 "last 3 commits::"
231 msgstr ""
232
233 #: ../../__w/calibre/calibre/manual/develop.rst:124
234 msgid "Be careful to not include merges when using ``HEAD~n``."
235 msgstr ""
236
237 #: ../../__w/calibre/calibre/manual/develop.rst:126
238 msgid ""
239 "If you plan to do a lot of development on calibre, then the best method is "
240 "to create a `GitHub <https://github.com>`__ account. Below is a basic guide "
241 "to setting up your own fork of calibre in a way that will allow you to "
242 "submit pull requests for inclusion into the main calibre repository:"
243 msgstr ""
244
245 #: ../../__w/calibre/calibre/manual/develop.rst:131
246 msgid ""
247 "Setup git on your machine as described in this article: `Setup Git "
248 "<https://help.github.com/articles/set-up-git>`_"
249 msgstr ""
250
251 #: ../../__w/calibre/calibre/manual/develop.rst:132
252 msgid ""
253 "Setup ssh keys for authentication to GitHub, as described here: `Generating "
254 "SSH keys <https://help.github.com/articles/generating-ssh-keys>`_"
255 msgstr ""
256
257 #: ../../__w/calibre/calibre/manual/develop.rst:133
258 msgid ""
259 "Go to https://github.com/kovidgoyal/calibre and click the :guilabel:`Fork` "
260 "button."
261 msgstr ""
262
263 #: ../../__w/calibre/calibre/manual/develop.rst:134
264 msgid "In a Terminal do::"
265 msgstr ""
266
267 #: ../../__w/calibre/calibre/manual/develop.rst:139
268 msgid ""
269 "Replace <username> above with your GitHub username. That will get your fork "
270 "checked out locally."
271 msgstr ""
272
273 #: ../../__w/calibre/calibre/manual/develop.rst:140
274 msgid ""
275 "You can make changes and commit them whenever you like. When you are ready "
276 "to have your work merged, do a::"
277 msgstr ""
278
279 #: ../../__w/calibre/calibre/manual/develop.rst:144
280 msgid ""
281 "and go to ``https://github.com/<username>/calibre`` and click the "
282 ":guilabel:`Pull Request` button to generate a pull request that can be "
283 "merged."
284 msgstr ""
285
286 #: ../../__w/calibre/calibre/manual/develop.rst:145
287 msgid ""
288 "You can update your local copy with code from the main repo at any time by "
289 "doing::"
290 msgstr ""
291
292 #: ../../__w/calibre/calibre/manual/develop.rst:150
293 msgid ""
294 "You should also keep an eye on the calibre `development forum "
295 "<https://www.mobileread.com/forums/forumdisplay.php?f=240>`_. Before making "
296 "major changes, you should discuss them in the forum or contact Kovid "
297 "directly (his email address is all over the source code)."
298 msgstr ""
299
300 #: ../../__w/calibre/calibre/manual/develop.rst:156
301 msgid "Windows development environment"
302 msgstr "Περιβάλλον ανάπτυξης Windows"
303
304 #: ../../__w/calibre/calibre/manual/develop.rst:158
305 #: ../../__w/calibre/calibre/manual/develop.rst:192
306 #: ../../__w/calibre/calibre/manual/develop.rst:228
307 msgid ""
308 "You must also get the calibre source code separately as described above."
309 msgstr ""
310
311 #: ../../__w/calibre/calibre/manual/develop.rst:160
312 msgid ""
313 "Install calibre normally, using the Windows installer. Then open a Command "
314 "Prompt and change to the previously checked out calibre code folder. For "
315 "example::"
316 msgstr ""
317
318 #: ../../__w/calibre/calibre/manual/develop.rst:165
319 #: ../../__w/calibre/calibre/manual/develop.rst:240
320 msgid "calibre is the folder that contains the src and resources sub-folders."
321 msgstr ""
322
323 #: ../../__w/calibre/calibre/manual/develop.rst:167
324 msgid ""
325 "The next step is to set the environment variable ``CALIBRE_DEVELOP_FROM`` to"
326 " the absolute path of the src folder. So, following the example above, it "
327 "would be ``C:\\Users\\kovid\\work\\calibre\\src``. `Here is a short guide "
328 "<https://docs.python.org/using/windows.html#excursus-setting-environment-"
329 "variables>`_ to setting environment variables on Windows."
330 msgstr ""
331
332 #: ../../__w/calibre/calibre/manual/develop.rst:172
333 msgid ""
334 "Once you have set the environment variable, open a new command prompt and "
335 "check that it was correctly set by using the command::"
336 msgstr ""
337
338 #: ../../__w/calibre/calibre/manual/develop.rst:177
339 #: ../../__w/calibre/calibre/manual/develop.rst:251
340 msgid ""
341 "Setting this environment variable means that calibre will now load all its "
342 "Python code from the specified location."
343 msgstr ""
344
345 #: ../../__w/calibre/calibre/manual/develop.rst:179
346 msgid ""
347 "That's it! You are now ready to start hacking on the calibre code. For "
348 "example, open the file :file:`src\\\\calibre\\\\__init__.py` in your "
349 "favorite editor and add the line::"
350 msgstr ""
351
352 #: ../../__w/calibre/calibre/manual/develop.rst:184
353 #: ../../__w/calibre/calibre/manual/develop.rst:258
354 msgid ""
355 "near the top of the file. Now run the command :command:`calibredb`. The very"
356 " first line of output should be ``Hello, world!``."
357 msgstr ""
358
359 #: ../../__w/calibre/calibre/manual/develop.rst:186
360 msgid ""
361 "You can also setup a calibre development environment inside the free "
362 "Microsoft Visual Studio, if you like, following the instructions `here "
363 "<https://www.mobileread.com/forums/showthread.php?t=251201>`_."
364 msgstr ""
365
366 #: ../../__w/calibre/calibre/manual/develop.rst:190
367 msgid "macOS development environment"
368 msgstr "Περιβάλλον ανάπτυξης macOS"
369
370 #: ../../__w/calibre/calibre/manual/develop.rst:194
371 msgid ""
372 "Install calibre normally using the provided .dmg. Then open a Terminal and "
373 "change to the previously checked out calibre code folder, for example::"
374 msgstr ""
375
376 #: ../../__w/calibre/calibre/manual/develop.rst:199
377 msgid ""
378 "calibre is the folder that contains the src and resources sub-folders. The "
379 "calibre command line tools are found inside the calibre app bundle, in "
380 ":file:`/Applications/calibre.app/Contents/MacOS` you should add this folder "
381 "to your PATH environment variable, if you want to run the command line tools"
382 " easily."
383 msgstr ""
384
385 #: ../../__w/calibre/calibre/manual/develop.rst:205
386 msgid ""
387 "The next step is to create a bash script that will set the environment "
388 "variable ``CALIBRE_DEVELOP_FROM`` to the absolute path of the src folder "
389 "when running calibre in debug mode."
390 msgstr ""
391
392 #: ../../__w/calibre/calibre/manual/develop.rst:207
393 msgid "Create a plain text file::"
394 msgstr ""
395
396 #: ../../__w/calibre/calibre/manual/develop.rst:213
397 msgid ""
398 "Save this file as :file:`/usr/local/bin/calibre-develop`, then set its "
399 "permissions so that it can be executed::"
400 msgstr ""
401
402 #: ../../__w/calibre/calibre/manual/develop.rst:217
403 msgid "Once you have done this, run::"
404 msgstr ""
405
406 #: ../../__w/calibre/calibre/manual/develop.rst:221
407 msgid ""
408 "You should see some diagnostic information in the Terminal window as calibre"
409 " starts up, and you should see an asterisk after the version number in the "
410 "GUI window, indicating that you are running from source."
411 msgstr ""
412
413 #: ../../__w/calibre/calibre/manual/develop.rst:226
414 msgid "Linux development environment"
415 msgstr "Περιβάλλον ανάπτυξης Linux"
416
417 #: ../../__w/calibre/calibre/manual/develop.rst:230
418 msgid ""
419 "calibre is primarily developed on Linux. You have two choices in setting up "
420 "the development environment. You can install the calibre binary as normal "
421 "and use that as a runtime environment to do your development. This approach "
422 "is similar to that used in Windows and macOS. Alternatively, you can install"
423 " calibre from source. Instructions for setting up a development environment "
424 "from source are in the INSTALL file in the source tree. Here we will address"
425 " using the binary as a runtime, which is the recommended method."
426 msgstr ""
427
428 #: ../../__w/calibre/calibre/manual/develop.rst:236
429 msgid ""
430 "Install calibre using the binary installer. Then open a terminal and change "
431 "to the previously checked out calibre code folder, for example::"
432 msgstr ""
433
434 #: ../../__w/calibre/calibre/manual/develop.rst:242
435 msgid ""
436 "The next step is to set the environment variable ``CALIBRE_DEVELOP_FROM`` to"
437 " the absolute path of the src folder. So, following the example above, it "
438 "would be ``/home/kovid/work/calibre/src``. How to set environment variables "
439 "depends on your Linux distribution and what shell you are using."
440 msgstr ""
441
442 #: ../../__w/calibre/calibre/manual/develop.rst:246
443 msgid ""
444 "Once you have set the environment variable, open a new terminal and check "
445 "that it was correctly set by using the command::"
446 msgstr ""
447
448 #: ../../__w/calibre/calibre/manual/develop.rst:253
449 msgid ""
450 "That's it! You are now ready to start hacking on the calibre code. For "
451 "example, open the file :file:`src/calibre/__init__.py` in your favorite "
452 "editor and add the line::"
453 msgstr ""
454
455 #: ../../__w/calibre/calibre/manual/develop.rst:261
456 msgid ""
457 "Having separate \"normal\" and \"development\" calibre installs on the same "
458 "computer"
459 msgstr ""
460
461 #: ../../__w/calibre/calibre/manual/develop.rst:263
462 msgid ""
463 "The calibre source tree is very stable and rarely breaks, but if you feel "
464 "the need to run from source on a separate test library and run the released "
465 "calibre version with your everyday library, you can achieve this easily "
466 "using .bat files or shell scripts to launch calibre. The example below shows"
467 " how to do this on Windows using .bat files (the instructions for other "
468 "platforms are the same, just use a shell script instead of a .bat file)"
469 msgstr ""
470
471 #: ../../__w/calibre/calibre/manual/develop.rst:268
472 msgid "To launch the release version of calibre with your everyday library:"
473 msgstr ""
474
475 #: ../../__w/calibre/calibre/manual/develop.rst:270
476 msgid "calibre-normal.bat::"
477 msgstr ""
478
479 #: ../../__w/calibre/calibre/manual/develop.rst:274
480 msgid "calibre-dev.bat::"
481 msgstr ""
482
483 #: ../../__w/calibre/calibre/manual/develop.rst:281
484 msgid "Debugging tips"
485 msgstr ""
486
487 #: ../../__w/calibre/calibre/manual/develop.rst:283
488 msgid ""
489 "Python is a dynamically typed language with excellent facilities for "
490 "introspection. Kovid wrote the core calibre code without once using a "
491 "debugger. There are many strategies to debug calibre code:"
492 msgstr ""
493
494 #: ../../__w/calibre/calibre/manual/develop.rst:288
495 msgid "Using print statements"
496 msgstr ""
497
498 #: ../../__w/calibre/calibre/manual/develop.rst:290
499 msgid ""
500 "This is Kovid's favorite way to debug. Simply insert print statements at "
501 "points of interest and run your program in the terminal. For example, you "
502 "can start the GUI from the terminal as::"
503 msgstr ""
504
505 #: ../../__w/calibre/calibre/manual/develop.rst:295
506 msgid "Similarly, you can start the E-book viewer as::"
507 msgstr ""
508
509 #: ../../__w/calibre/calibre/manual/develop.rst:299
510 msgid "The e-book-editor can be started as::"
511 msgstr ""
512
513 #: ../../__w/calibre/calibre/manual/develop.rst:304
514 msgid "Using an interactive Python interpreter"
515 msgstr ""
516
517 #: ../../__w/calibre/calibre/manual/develop.rst:306
518 msgid ""
519 "You can insert the following two lines of code to start an interactive "
520 "Python session at that point::"
521 msgstr ""
522
523 #: ../../__w/calibre/calibre/manual/develop.rst:311
524 msgid ""
525 "When running from the command line, this will start an interactive Python "
526 "interpreter with access to all locally defined variables (variables in the "
527 "local scope). The interactive prompt even has :kbd:`Tab` completion for "
528 "object properties and you can use the various Python facilities for "
529 "introspection, such as :func:`dir`, :func:`type`, :func:`repr`, etc."
530 msgstr ""
531
532 #: ../../__w/calibre/calibre/manual/develop.rst:317
533 msgid "Using the Python debugger as a remote debugger"
534 msgstr ""
535
536 #: ../../__w/calibre/calibre/manual/develop.rst:319
537 msgid ""
538 "You can use the builtin Python debugger (pdb) as a remote debugger from the "
539 "command line. First, start the remote debugger at the point in the calibre "
540 "code you are interested in, like this::"
541 msgstr ""
542
543 #: ../../__w/calibre/calibre/manual/develop.rst:326
544 msgid ""
545 "Then run calibre, either as normal, or using one of the calibre-debug "
546 "commands described in the previous section. Once the above point in the code"
547 " is reached, calibre will freeze, waiting for the debugger to connect."
548 msgstr ""
549
550 #: ../../__w/calibre/calibre/manual/develop.rst:330
551 msgid ""
552 "Now open a terminal or command prompt and use the following command to start"
553 " the debugging session::"
554 msgstr ""
555
556 #: ../../__w/calibre/calibre/manual/develop.rst:335
557 msgid ""
558 "You can read about how to use the Python debugger in the `Python stdlib docs"
559 " for the pdb module <https://docs.python.org/library/pdb.html#debugger-"
560 "commands>`_."
561 msgstr ""
562
563 #: ../../__w/calibre/calibre/manual/develop.rst:339
564 msgid ""
565 "By default, the remote debugger will try to connect on port 4444. You can "
566 "change it, by passing the port parameter to both the set_trace() and the "
567 "cli() functions above, like this: ``set_trace(port=1234)`` and "
568 "``cli(port=1234)``."
569 msgstr ""
570
571 #: ../../__w/calibre/calibre/manual/develop.rst:345
572 msgid ""
573 "The Python debugger cannot handle multiple threads, so you have to call "
574 "set_trace once per thread, each time with a different port number."
575 msgstr ""
576
577 #: ../../__w/calibre/calibre/manual/develop.rst:349
578 msgid "Using the debugger in your favorite Python IDE"
579 msgstr ""
580
581 #: ../../__w/calibre/calibre/manual/develop.rst:351
582 msgid ""
583 "It is possible to use the builtin debugger in your favorite Python IDE, if "
584 "it supports remote debugging. The first step is to add the calibre src "
585 "checkout to the ``PYTHONPATH`` in your IDE. In other words, the folder you "
586 "set as ``CALIBRE_DEVELOP_FROM`` above, must also be in the ``PYTHONPATH`` of"
587 " your IDE."
588 msgstr ""
589
590 #: ../../__w/calibre/calibre/manual/develop.rst:356
591 msgid ""
592 "Then place the IDE's remote debugger module into the :file:`src` sub-folder "
593 "of the calibre source code checkout. Add whatever code is needed to launch "
594 "the remote debugger to calibre at the point of interest, for example in the "
595 "main function. Then run calibre as normal. Your IDE should now be able to "
596 "connect to the remote debugger running inside calibre."
597 msgstr ""
598
599 #: ../../__w/calibre/calibre/manual/develop.rst:363
600 msgid "Executing arbitrary scripts in the calibre Python environment"
601 msgstr ""
602
603 #: ../../__w/calibre/calibre/manual/develop.rst:365
604 msgid ""
605 "The :command:`calibre-debug` command provides a couple of handy switches to "
606 "execute your own code, with access to the calibre modules::"
607 msgstr ""
608
609 #: ../../__w/calibre/calibre/manual/develop.rst:370
610 msgid ""
611 "is great for testing a little snippet of code on the command line. It works "
612 "in the same way as the -c switch to the Python interpreter::"
613 msgstr ""
614
615 #: ../../__w/calibre/calibre/manual/develop.rst:374
616 msgid ""
617 "can be used to execute your own Python script. It works in the same way as "
618 "passing the script to the Python interpreter, except that the calibre "
619 "environment is fully initialized, so you can use all the calibre code in "
620 "your script. To use command line arguments with your script, use the form::"
621 msgstr ""
622
623 #: ../../__w/calibre/calibre/manual/develop.rst:379
624 msgid ""
625 "The ``--`` causes all subsequent arguments to be passed to your script."
626 msgstr ""
627
628 #: ../../__w/calibre/calibre/manual/develop.rst:383
629 msgid "Using calibre in your projects"
630 msgstr ""
631
632 #: ../../__w/calibre/calibre/manual/develop.rst:385
633 msgid ""
634 "It is possible to directly use calibre functions/code in your Python "
635 "project. Two ways exist to do this:"
636 msgstr ""
637
638 #: ../../__w/calibre/calibre/manual/develop.rst:388
639 msgid "Binary install of calibre"
640 msgstr ""
641
642 #: ../../__w/calibre/calibre/manual/develop.rst:390
643 msgid ""
644 "If you have a binary install of calibre, you can use the Python interpreter "
645 "bundled with calibre, like this::"
646 msgstr ""
647
648 #: ../../__w/calibre/calibre/manual/develop.rst:395
649 msgid "Source install on Linux"
650 msgstr ""
651
652 #: ../../__w/calibre/calibre/manual/develop.rst:397
653 msgid ""
654 "In addition to using the above technique, if you do a source install on "
655 "Linux, you can also directly import calibre, as follows::"
656 msgstr ""
657
658 #: ../../__w/calibre/calibre/manual/develop.rst:405
659 msgid ""
660 "It is essential that you import the init_calibre module before any other "
661 "calibre modules/packages as it sets up the interpreter to run calibre code."
662 msgstr ""
663
664 #: ../../__w/calibre/calibre/manual/develop.rst:409
665 msgid "API documentation for various parts of calibre"
666 msgstr ""