# SOME DESCRIPTIVE TITLE. # Copyright (C) Kovid Goyal # This file is distributed under the same license as the calibre package. # # Translators: # Michal Várady , 2026 # Trottel , 2016-2017,2020-2021,2023,2025 msgid "" msgstr "" "Project-Id-Version: calibre\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2026-06-12 19:09+0000\n" "PO-Revision-Date: 2014-11-21 02:54+0000\n" "Last-Translator: Michal Várady , 2026\n" "Language-Team: Czech (http://app.transifex.com/calibre/calibre/language/cs/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: cs\n" "Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n" #: ../../../__w/calibre/calibre/manual/function_mode.rst:2 msgid "Function mode for Search & replace in the Editor" msgstr "Režim funkcí pro Hledat a nahradit v editoru" #: ../../../__w/calibre/calibre/manual/function_mode.rst:4 msgid "" "The :guilabel:`Search & replace` tool in the editor supports a *function " "mode*. In this mode, you can combine regular expressions (see :doc:`regexp`)" " with arbitrarily powerful Python functions to do all sorts of advanced text" " processing." msgstr "Nástroj :guilabel:`Hledat a nahradit` v editoru podporuje *režim funkcí*. V tomto režimu můžete kombinovat regulární výrazy (viz :doc:`regexp`) s libovolně výkonnými funkcemi Pythonu a provádět nejrůznější pokročilé zpracování textu." #: ../../../__w/calibre/calibre/manual/function_mode.rst:9 msgid "" "In the standard *regexp* mode for search and replace, you specify both a " "regular expression to search for as well as a template that is used to " "replace all found matches. In function mode, instead of using a fixed " "template, you specify an arbitrary function, in the `Python programming " "language `_. This allows you to do lots of things " "that are not possible with simple templates." msgstr "Ve standardním režimu *regulární výraz* pro hledání a nahrazení zadáváte jak regulární výraz pro hledání, tak šablonu, která je použita pro nahrazení všech nalezených shod. V režimu funkcí, namísto použití pevné šablony, zadáte libovolnou funkci v `programovacím jazyce Python `_. Umožní vám to udělat spoustu věcí, které nejsou možné u jednoduchých šablon." #: ../../../__w/calibre/calibre/manual/function_mode.rst:16 msgid "" "Techniques for using function mode and the syntax will be described by means" " of examples, showing you how to create functions to perform progressively " "more complex tasks." msgstr "Techniky pro použití režimu funkcí a syntaxe budou popsány pomocí příkladů, které vám ukáží, jak vytvořit funkce pro provádění postupně složitějších úloh." #: ../../../__w/calibre/calibre/manual/function_mode.rst:21 msgid "The Function mode" msgstr "Režim funkcí" #: ../../../__w/calibre/calibre/manual/function_mode.rst:26 msgid "Automatically fixing the case of headings in the document" msgstr "Automatická oprava velikosti písmen nadpisů v dokumentu" #: ../../../__w/calibre/calibre/manual/function_mode.rst:28 msgid "" "Here, we will leverage one of the builtin functions in the editor to " "automatically change the case of all text inside heading tags to title " "case::" msgstr "Zde budeme využívat jednu z vestavěných funkcí v editoru pro automatickou změnu velikosti písmen celého textu uvnitř značek nadpisů, aby byla všechna první písmena velká::" #: ../../../__w/calibre/calibre/manual/function_mode.rst:33 msgid "" "For the function, simply choose the :guilabel:`Title-case text (ignore " "tags)` builtin function. This will change titles that look like: ``

some " "titLE

`` to ``

Some Title

``. It will work even if there are " "other HTML tags inside the heading tags." msgstr "Jako funkci jednoduše vyberte vestavěnou funkci :guilabel:`Text s velkými počátečními písmeny (ignorovat značky)`. Ta změní nadpisy vypadající jako ``

some titLE

`` na ``

Some Title

``. Bude fungovat i tehdy, když jsou uvnitř značek nadpisu další HTML značky." #: ../../../__w/calibre/calibre/manual/function_mode.rst:40 msgid "Your first custom function - smartening hyphens" msgstr "Vaše první vlastní funkce – vylepšení pomlček" #: ../../../__w/calibre/calibre/manual/function_mode.rst:42 msgid "" "The real power of function mode comes from being able to create your own " "functions to process text in arbitrary ways. The Smarten Punctuation tool in" " the editor leaves individual hyphens alone, so you can use this function to" " replace them with em-dashes." msgstr "Skutečná síla režimu funkcí spočívá v možnosti vytvářet vlastní funkce pro libovolné zpracování textu. Nástroj editoru pro chytrou interpunkci ponechává jednotlivé spojovníky beze změny, takže tuto funkci můžete použít k jejich nahrazení dlouhými pomlčkami." #: ../../../__w/calibre/calibre/manual/function_mode.rst:47 msgid "" "To create a new function, simply click the :guilabel:`Create/edit` button to" " create a new function and copy the Python code from below." msgstr "Pro vytvoření nové funkce jednoduše klikněte na tlačítko :guilabel:`Vytvořit nebo upravit` pro vytvoření nové funkce a zkopírujte níže uvedený kód Pythonu." #: ../../../__w/calibre/calibre/manual/function_mode.rst:55 msgid "" "Every :guilabel:`Search & replace` custom function must have a unique name " "and consist of a Python function named replace, that accepts all the " "arguments shown above. For the moment, we won't worry about all the " "different arguments to ``replace()`` function. Just focus on the ``match`` " "argument. It represents a match when running a search and replace. Its full " "documentation in available `here " "`_. ``match.group()``" " simply returns all the matched text and all we do is replace hyphens in " "that text with em-dashes, first replacing double hyphens and then single " "hyphens." msgstr "Každá vlastní funkce :guilabel:`Najít a nahradit` musí mít jedinečný název a skládat se z funkce Pythonu s názvem replace, která přijímá všechny výše uvedené parametry. Pro tuto chvíli se nebudeme starat o všechny různé parametry funkce ``replace()``. Soustředíme se pouze na parametr ``match``. Zastupuje shodu při spuštění hledat a nahradit. Jeho úplná dokumentace je dostupná `zde `_. ``match.group()`` jednoduše vrátí všechny odpovídající texty a vše, co uděláme je, že nahradíme pomlčky v tomto textu dlouhými pomlčkami, nejdříve se dvojité pomlčky a potom jednotlivé pomlčky." #: ../../../__w/calibre/calibre/manual/function_mode.rst:65 msgid "Use this function with the find regular expression::" msgstr "Použijte tuto funkci s hledáním regulárního výrazu::" #: ../../../__w/calibre/calibre/manual/function_mode.rst:69 msgid "" "And it will replace all hyphens with em-dashes, but only in actual text and " "not inside HTML tag definitions." msgstr "A nahradí to všechny pomlčky dlouhými pomlčkami, ale pouze ve skutečném textu a ne uvnitř definicí značek HTML." #: ../../../__w/calibre/calibre/manual/function_mode.rst:74 msgid "" "The power of function mode - using a spelling dictionary to fix mis-" "hyphenated words" msgstr "Síla režimu funkcí – používání pravopisného slovníku pro opravu chybně rozdělených slov spojovníkem" #: ../../../__w/calibre/calibre/manual/function_mode.rst:76 msgid "" "Often, e-books created from scans of printed books contain mis-hyphenated " "words -- words that were split at the end of the line on the printed page. " "We will write a simple function to automatically find and fix such words." msgstr "E-knihy vytvořené naskenováním tištěných knih často obsahují chybně rozdělená slova spojovníkem -- slova, která byla rozdělena na konci řádku na vytištěné stránce. Napíšeme si jednoduchou funkci pro automatické nalezení a opravení takových slov." #: ../../../__w/calibre/calibre/manual/function_mode.rst:101 msgid "Use this function with the same find expression as before, namely::" msgstr "Použijte tuto funkci se stejným vyhledávacím výrazem jako předtím, a to::" #: ../../../__w/calibre/calibre/manual/function_mode.rst:105 msgid "" "And it will magically fix all mis-hyphenated words in the text of the book. " "The main trick is to use one of the useful extra arguments to the replace " "function, ``dictionaries``. This refers to the dictionaries the editor " "itself uses to spell check text in the book. What this function does is look" " for words separated by a hyphen, remove the hyphen and check if the " "dictionary recognizes the composite word, if it does, the original words are" " replaced by the hyphen free composite word." msgstr "A jako kouzlem to opraví všechna chybně rozdělená slova v textu knihy. Hlavní trik je použít jeden z užitečných dodatečných parametrů pro funkci nahrazení, ``dictionaries``. Ten odkazuje na slovníky, které samotný editor používá pro kontrolu pravopisu textu v knize. Tato funkce hledá slova oddělená spojovníkem, odebere spojovník a zkontrolujte, zda slovník rozpozná složené slovo. Pokud ano, původní slova jsou nahrazena složeným slovem bez spojovníku." #: ../../../__w/calibre/calibre/manual/function_mode.rst:113 msgid "" "Note that one limitation of this technique is it will only work for mono-" "lingual books, because, by default, ``dictionaries.recognized()`` uses the " "main language of the book." msgstr "Pamatujte, že jediné omezení této techniky je, že to bude fungovat pouze pro jednojazyčné knihy, protože ``dictionaries.recognized()`` ve výchozím nastavení používá hlavní jazyk knihy." #: ../../../__w/calibre/calibre/manual/function_mode.rst:119 msgid "Auto numbering sections" msgstr "Automatické číslování oddílů" #: ../../../__w/calibre/calibre/manual/function_mode.rst:121 msgid "" "Now we will see something a little different. Suppose your HTML file has " "many sections, each with a heading in an :code:`

` tag that looks like " ":code:`

Some text

`. You can create a custom function that will " "automatically number these headings with consecutive section numbers, so " "that they look like :code:`

1. Some text

`." msgstr "Nyní uvidíme něco trochu jiného. Předpokládejme, že váš soubor HTML má mnoho oddílů, každý s nadpisem ve značce :code:`

`, která vypadají takto :code:`

Nějaký text

`. Můžete si vytvořit vlastní funkci, která automaticky očísluje tyto nadpisy za sebou následujícími čísly oddílů, takže budou vypadat takto :code:`

1. Nějaký text

`." #: ../../../__w/calibre/calibre/manual/function_mode.rst:137 msgid "Use it with the find expression::" msgstr "Použijte vyhledávací výraz::" #: ../../../__w/calibre/calibre/manual/function_mode.rst:141 msgid "" "Place the cursor at the top of the file and click :guilabel:`Replace all`." msgstr "Umístěte kurzor na začátek souboru a klikněte na :guilabel:`Nahradit vše`." #: ../../../__w/calibre/calibre/manual/function_mode.rst:143 msgid "" "This function uses another of the useful extra arguments to ``replace()``: " "the ``number`` argument. When doing a :guilabel:`Replace All` number is " "automatically incremented for every successive match." msgstr "Tato funkce využívá další z užitečných dodatečných parametrů pro ``replace()``: parametr ``number``. Při provádění :guilabel:`Nahradit vše` je číslo automaticky zvýšeno pro každou následující shodu." #: ../../../__w/calibre/calibre/manual/function_mode.rst:147 msgid "" "Another new feature is the use of ``replace.file_order`` -- setting that to " "``'spine'`` means that if this search is run on multiple HTML files, the " "files are processed in the order in which they appear in the book. See " ":ref:`file_order_replace_all` for details." msgstr "Další novinkou je použití ``replace.file_order`` -- nastavení, které pro ``'páteř'`` znamená, že pokud je toto hledání spuštěno na více souborech HTML, soubory jsou zpracovávány v pořadí, v jakém se objevují v knize. Pro podrobnosti viz :ref:`file_order_replace_all`." #: ../../../__w/calibre/calibre/manual/function_mode.rst:154 msgid "Auto create a Table of Contents" msgstr "Automatické vytvoření obsahu" #: ../../../__w/calibre/calibre/manual/function_mode.rst:156 msgid "" "Finally, let's try something a little more ambitious. Suppose your book has " "headings in ``h1`` and ``h2`` tags that look like ``

Some " "Text

``. We will auto-generate an HTML Table of Contents based on these " "headings. Create the custom function below:" msgstr "Nakonec zkusme něco trochu ambicióznějšího. Předpokládejme, že vaše kniha má nadpisy ve značkách ``h1`` a ``h2``, které vypadají jako ``

Some Text

``. Na základě těchto nadpisů automaticky vygenerujeme HTML obsah. Vytvořte následující vlastní funkci:" #: ../../../__w/calibre/calibre/manual/function_mode.rst:199 msgid "And use it with the find expression::" msgstr "A použijte ji s vyhledávacím výrazem::" #: ../../../__w/calibre/calibre/manual/function_mode.rst:203 msgid "" "Run the search on :guilabel:`All text files` and at the end of the search, a" " window will popup with \"Debug output from your function\" which will have " "the HTML Table of Contents, ready to be pasted into :file:`toc.html`." msgstr "Spusťte hledání nad :guilabel:`Všechny textové soubory` a na konci vyhledávání se otevře okno s \"Výstup ladění z vaší funkce\", které bude mít HTML obsah připravený k vložení do :file:`toc.html`." #: ../../../__w/calibre/calibre/manual/function_mode.rst:207 msgid "" "The function above is heavily commented, so it should be easy to follow. The" " key new feature is the use of another useful extra argument to the " "``replace()`` function, the ``data`` object. The ``data`` object is a Python" " *dictionary* that persists between all successive invocations of " "``replace()`` during a single :guilabel:`Replace All` operation." msgstr "Výše uvedená funkce je silně okomentovaná, takže by měla být snadno pochopitelná. Klíčovou novinkou je použití dalšího užitečného dodatečného parametru funkce ``replace()``, objektu ``data``. Objekt ``data`` je *slovník* Pythonu, který přetrvává mezi všemi po sobě následujícími voláními funkce ``replace()`` během jedné operace :guilabel:`Nahradit vše``." #: ../../../__w/calibre/calibre/manual/function_mode.rst:213 msgid "" "Another new feature is the use of ``call_after_last_match`` -- setting that " "to ``True`` on the ``replace()`` function means that the editor will call " "``replace()`` one extra time after all matches have been found. For this " "extra call, the match object will be ``None``." msgstr "Další novinkou je použití ``call_after_last_match`` -- nastavení, které pro ``True`` nad funkcí ``replace()`` znamená, že editor vyvolá ``replace()`` ještě jednou poté, co byly nalezeny všechny shody. Pro toto dodatečné vyvolání bude shoda objektu ``None``." #: ../../../__w/calibre/calibre/manual/function_mode.rst:218 msgid "" "This was just a demonstration to show you the power of function mode, if you" " really needed to generate a Table of Contents from headings in your book, " "you would be better off using the dedicated Table of Contents tool in " ":guilabel:`Tools->Table of Contents`." msgstr "To byla jen ukázka, která vám předvedla sílu režimu funkcí, pokud opravdu potřebujete vygenerovat obsah z nadpisů ve vaší knize, měli byste raději použít vyhrazený nástroj pro obsah v :guilabel:`Nástroje->Obsah`." #: ../../../__w/calibre/calibre/manual/function_mode.rst:224 msgid "The API for the function mode" msgstr "API pro režim funkcí" #: ../../../__w/calibre/calibre/manual/function_mode.rst:226 msgid "" "All function mode functions must be Python functions named replace, with the" " following signature::" msgstr "Všechny funkce režimu funkcí musí být funkce Pythonu pojmenované replace s následujícím podpisem::" #: ../../../__w/calibre/calibre/manual/function_mode.rst:232 msgid "" "When a find/replace is run, for every match that is found, the ``replace()``" " function will be called, it must return the replacement string for that " "match. If no replacements are to be done, it should return ``match.group()``" " which is the original string. The various arguments to the ``replace()`` " "function are documented below." msgstr "Když je spuštěno najít a nahradit, pro každou shodu, která je nalezena, bude vyvolána funkce ``replace()``, která musí vrátit nahrazovací řetězec pro tuto shodu. Pokud není třeba provést žádná nahrazení, mělo by se vrátit ``match.group()``, což je původní řetězec. Jednotlivé parametry pro funkci ``replace()`` jsou zdokumentovány níže." #: ../../../__w/calibre/calibre/manual/function_mode.rst:239 msgid "The ``match`` argument" msgstr "Parametr ``match``" #: ../../../__w/calibre/calibre/manual/function_mode.rst:241 msgid "" "The ``match`` argument represents the currently found match. It is a `Python" " Match object `_. Its" " most useful method is ``group()`` which can be used to get the matched text" " corresponding to individual capture groups in the search regular " "expression." msgstr "Parametr ``match`` představuje aktuálně nalezenou shodu. Je to `objekt Match Pythonu `_. Jeho nejužitečnější metoda je ``group()``, která může být použita k získání textu odpovídajícího jednotlivým skupin zachycování v hledání regulárního výrazu." #: ../../../__w/calibre/calibre/manual/function_mode.rst:248 msgid "The ``number`` argument" msgstr "Parametr ``number``" #: ../../../__w/calibre/calibre/manual/function_mode.rst:250 msgid "" "The ``number`` argument is the number of the current match. When you run " ":guilabel:`Replace All`, every successive match will cause ``replace()`` to " "be called with an increasing number. The first match has number 1." msgstr "Parametr ``number`` je číslo aktuální shody. Když spustíte :guilabel:`Nahradit vše`, každá po sobě jdoucí shoda způsobí, že bude vyvoláno``replace()`` se zvyšujícím se číslem. První shoda má číslo 1." #: ../../../__w/calibre/calibre/manual/function_mode.rst:255 msgid "The ``file_name`` argument" msgstr "Parametr ``file_name``" #: ../../../__w/calibre/calibre/manual/function_mode.rst:257 msgid "" "This is the filename of the file in which the current match was found. When " "searching inside marked text, the ``file_name`` is empty. The ``file_name`` " "is in canonical form, a path relative to the root of the book, using ``/`` " "as the path separator." msgstr "Toto je název souboru, ve kterém byla nalezena aktuální shoda. Při hledání uvnitř označeného textu je ``file_name`` prázdný. ``file_name`` je v kanonické podobě, cesta relativní ke kořenu knihy, s ``/`` jako oddělovačem cesty." #: ../../../__w/calibre/calibre/manual/function_mode.rst:263 msgid "The ``metadata`` argument" msgstr "Parametr ``metadata``" #: ../../../__w/calibre/calibre/manual/function_mode.rst:265 msgid "" "This represents the metadata of the current book, such as title, authors, " "language, etc. It is an object of class " ":class:`calibre.ebooks.metadata.book.base.Metadata`. Useful attributes " "include, ``title``, ``authors`` (a list of authors) and ``language`` (the " "language code)." msgstr "Toto představuje metadata aktuální knihy, jako je název, autoři, jazyk atd. Je to objekt třídy: :class:`calibre.ebooks.metadata.book.base.Metadata`. Užitečné atributy zahrnují ``title``, ``authors`` (seznam autorů) a ``language`` (kód jazyka)." #: ../../../__w/calibre/calibre/manual/function_mode.rst:271 msgid "The ``dictionaries`` argument" msgstr "Parametr ``dictionaries``" #: ../../../__w/calibre/calibre/manual/function_mode.rst:273 msgid "" "This represents the collection of dictionaries used for spell checking the " "current book. Its most useful method is ``dictionaries.recognized(word)`` " "which will return ``True`` if the passed in word is recognized by the " "dictionary for the current book's language." msgstr "Toto představuje sbírku slovníků používaných ke kontrole pravopisu aktuální knihy. Jeho nejužitečnější metoda je ``dictionaries.recognized(word)``, která vrátí ``True``, pokud je předané slovo rozpoznáno slovníkem pro aktuální jazyk knihy." #: ../../../__w/calibre/calibre/manual/function_mode.rst:279 msgid "The ``data`` argument" msgstr "Parametr ``data``" #: ../../../__w/calibre/calibre/manual/function_mode.rst:281 msgid "" "This a simple Python ``dictionary``. When you run :guilabel:`Replace all`, " "every successive match will cause ``replace()`` to be called with the same " "``dictionary`` as data. You can thus use it to store arbitrary data between " "invocations of ``replace()`` during a :guilabel:`Replace all` operation." msgstr "Jedná se o jednoduchý ``slovník`` Pythonu. Když spustíte :guilabel:`Nahradit vše``, každá následná shoda způsobí, že se zavolá ``replace()`` se stejným ``slovníkem`` jako data. Můžete jej tedy použít k uložení libovolných dat mezi voláními ``replace()`` během operace :guilabel:`Nahradit vše``." #: ../../../__w/calibre/calibre/manual/function_mode.rst:288 msgid "The ``functions`` argument" msgstr "Parametr ``functions``" #: ../../../__w/calibre/calibre/manual/function_mode.rst:290 msgid "" "The ``functions`` argument gives you access to all other user defined " "functions. This is useful for code re-use. You can define utility functions " "in one place and re-use them in all your other functions. For example, " "suppose you create a function named ``My Function`` like this:" msgstr "Argument ``functions`` vám poskytuje přístup ke všem ostatním uživatelem definovaným funkcím. To je užitečné pro opětovné použití kódu. Pomocné funkce můžete definovat na jednom místě a znovu je používat ve všech svých ostatních funkcích. Předpokládejme například, že vytvoříte funkci s názvem ``My Function`` takto:" #: ../../../__w/calibre/calibre/manual/function_mode.rst:303 msgid "" "Then, in another function, you can access the ``utility()`` function like " "this:" msgstr "Potom v jiné funkci můžete přistupovat k funkci ``utility()`` takto:" #: ../../../__w/calibre/calibre/manual/function_mode.rst:311 msgid "" "You can also use the functions object to store persistent data, that can be " "re-used by other functions. For example, you could have one function that " "when run with :guilabel:`Replace All` collects some data and another " "function that uses it when it is run afterwards. Consider the following two " "functions:" msgstr "Můžete také použít objekt funkce pro ukládání trvalých dat, která mohou být znovu použita jinými funkcemi. Například byste mohli mít jednu funkci, která při spuštění s :guilabel:`Nahradit vše` shromažďuje některá data, a další funkci, která je používá, když je spuštěna později. Vezměme si následující dvě funkce:" #: ../../../__w/calibre/calibre/manual/function_mode.rst:331 msgid "Debugging your functions" msgstr "Ladění vašich funkcí" #: ../../../__w/calibre/calibre/manual/function_mode.rst:333 msgid "" "You can debug the functions you create by using the standard ``print()`` " "function from Python. The output of print will be displayed in a popup " "window after the Find/replace has completed. You saw an example of using " "``print()`` to output an entire table of contents above." msgstr "Funkce, které vytvoříte, můžete ladit pomocí standardní funkce ``print()`` z Pythonu. Výstup tisku se zobrazí v automaticky otevíraném okně po dokončení Najít a nahradit. Příklad použití ``print()`` pro výstup celého obsahu jste viděli výše." #: ../../../__w/calibre/calibre/manual/function_mode.rst:341 msgid "Choose file order when running on multiple HTML files" msgstr "Volba pořadí souborů při spuštění na více souborech HTML" #: ../../../__w/calibre/calibre/manual/function_mode.rst:343 msgid "" "When you run a :guilabel:`Replace all` on multiple HTML files, the order in " "which the files are processed depends on what files you have open for " "editing. You can force the search to process files in the order in which " "they appear by setting the ``file_order`` attribute on your function, like " "this:" msgstr "Když spustíte :guilabel:`Nahradit vše` ve více souborech HTML, pořadí zpracování souborů závisí na tom, které soubory máte otevřené pro úpravy. Nastavením atributu ``file_order`` ve své funkci můžete vynutit, aby hledání zpracovávalo soubory v pořadí, v jakém se objevují v knize, například takto:" #: ../../../__w/calibre/calibre/manual/function_mode.rst:355 msgid "" "``file_order`` accepts two values, ``spine`` and ``spine-reverse`` which " "cause the search to process multiple files in the order they appear in the " "book, either forwards or backwards, respectively." msgstr "``file_order`` přijímá dvě hodnoty, ``spine`` a ``spine-reverse``, které způsobují, že hledání zpracuje více souborů v pořadí, v jakém jsou uvedeny v knize, a to buď vpřed nebo zpět v uvedeném pořadí." #: ../../../__w/calibre/calibre/manual/function_mode.rst:360 msgid "" "Having your function called an extra time after the last match is found" msgstr "Vyvolání vaší funkce ještě jednou poté, co je nalezena poslední shoda" #: ../../../__w/calibre/calibre/manual/function_mode.rst:362 msgid "" "Sometimes, as in the auto generate table of contents example above, it is " "useful to have your function called an extra time after the last match is " "found. You can do this by setting the ``call_after_last_match`` attribute on" " your function, like this:" msgstr "Někdy, jako ve výše uvedeném příkladu automatického generování obsahu, je užitečné vyvolat vaši funkci ještě jednou poté, co je nalezena poslední shoda. To můžete provést nastavením parametru ``call_after_last_match` ve vaší funkci takto:" #: ../../../__w/calibre/calibre/manual/function_mode.rst:376 msgid "Appending the output from the function to marked text" msgstr "Připojování výstupu z funkce pro označený text" #: ../../../__w/calibre/calibre/manual/function_mode.rst:378 msgid "" "When running search and replace on marked text, it is sometimes useful to " "append some text to the end of the marked text. You can do that by setting " "the ``append_final_output_to_marked`` attribute on your function (note that " "you also need to set ``call_after_last_match``), like this:" msgstr "Při spuštění hledání a nahrazení nad označeným textem je někdy užitečné připojit na konec označeného textu další text. Můžete to udělat nastavením atributu ``append_final_output_to_marked`` ve své funkci (všimněte si, že je také potřeba nastavit ``call_after_last_match``), například takto:" #: ../../../__w/calibre/calibre/manual/function_mode.rst:393 msgid "Suppressing the result dialog when performing searches on marked text" msgstr "Potlačení dialogového okna výsledku při provádění vyhledávání na označeném textu" #: ../../../__w/calibre/calibre/manual/function_mode.rst:395 msgid "" "You can also suppress the result dialog (which can slow down the repeated " "application of a search/replace on many blocks of text) by setting the " "``suppress_result_dialog`` attribute on your function, like this:" msgstr "Můžete také potlačit dialogové okno výsledku (což může zpomalit opakovanou aplikaci hledání a nahrazení na mnoha blocích textu) nastavením atributu ``suppress_result_dialog`` na vaší funkci takto:" #: ../../../__w/calibre/calibre/manual/function_mode.rst:408 msgid "More examples" msgstr "Další příklady" #: ../../../__w/calibre/calibre/manual/function_mode.rst:410 msgid "" "More useful examples, contributed by calibre users, can be found in the " "`calibre E-book editor forum " "`_." msgstr "Další užitečné příklady, které vytvořili uživatelé Calibre, můžete nalézt ve `fóru Editoru e-knih Calibre `_."