# SOME DESCRIPTIVE TITLE. # Copyright (C) Kovid Goyal # This file is distributed under the same license as the calibre package. # # Translators: # Usama Khalil, 2025 msgid "" msgstr "" "Project-Id-Version: calibre\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2026-02-17 16:44+0000\n" "PO-Revision-Date: 2014-11-21 02:54+0000\n" "Last-Translator: Usama Khalil, 2025\n" "Language-Team: Arabic (http://app.transifex.com/calibre/calibre/language/ar/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: ar\n" "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" #: ../../../__w/calibre/calibre/manual/function_mode.rst:2 msgid "Function mode for Search & replace in the Editor" msgstr "وضع الدالة للبحث والاستبدال في المحرر" #: ../../../__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 "" #: ../../../__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 "في وضع *regexp* القياسي للبحث والاستبدال، تحدد تعبيرًا عاديًا للبحث عنه بالإضافة إلى قالب يستخدم لاستبدال جميع التطابقات التي تم العثور عليها. في وضع الدالة، بدلاً من استخدام قالب ثابت، تحدد دالة عشوائية، بلغة `برمجة بايثون `_. يتيح لك هذا القيام بالعديد من الأشياء التي لا يمكن القيام بها باستخدام القوالب البسيطة." #: ../../../__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 "سيتم وصف تقنيات استخدام وضع الدالة وبناء الجملة عن طريق الأمثلة، مما يوضح لك كيفية إنشاء دوال لأداء مهام أكثر تعقيدًا بشكل تدريجي." #: ../../../__w/calibre/calibre/manual/function_mode.rst:21 msgid "The Function mode" msgstr "وضع الدالة" #: ../../../__w/calibre/calibre/manual/function_mode.rst:26 msgid "Automatically fixing the case of headings in the document" msgstr "تصحيح حالة أحرف العناوين تلقائيًا في المستند" #: ../../../__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 "هنا، سنستفيد من إحدى الدوال المدمجة في المحرر لـ تغيير حالة جميع النصوص داخل علامات العناوين تلقائيًا إلى حالة العنوان::" #: ../../../__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 "" #: ../../../__w/calibre/calibre/manual/function_mode.rst:40 msgid "Your first custom function - smartening hyphens" msgstr "دالتك المخصصة الأولى - تحسين الواصلات" #: ../../../__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 "" #: ../../../__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 "لإنشاء دالة جديدة، ما عليك سوى النقر على زر :guilabel:`إنشاء/تحرير` لـ إنشاء دالة جديدة ونسخ كود بايثون من أدناه." #: ../../../__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 "يجب أن يكون لكل دالة مخصصة لـ :guilabel:`البحث والاستبدال` اسم فريد وتتكون من دالة بايثون تسمى replace، تقبل جميع الوسائط الموضحة أعلاه. في الوقت الحالي، لن نقلق بشأن جميع الوسائط المختلفة لدالة ``replace()``. ركز فقط على وسيطة ``match``. إنها تمثل تطابقًا عند تشغيل بحث واستبدال. وثائقها الكاملة متاحة `هنا `_. ``match.group()`` ببساطة يعيد جميع النصوص المطابقة وكل ما نفعله هو استبدال الواصلات في ذلك النص بشرطات طويلة (em-dashes)، أولاً استبدال الواصلات المزدوجة ثم الواصلات الفردية." #: ../../../__w/calibre/calibre/manual/function_mode.rst:65 msgid "Use this function with the find regular expression::" msgstr "استخدم هذه الدالة مع التعبير العادي للبحث::" #: ../../../__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 "وسوف تستبدل جميع الواصلات بشرطات طويلة (em-dashes)، ولكن فقط في النص الفعلي وليس داخل تعريفات علامات 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 "قوة وضع الدالة - استخدام قاموس إملائي لإصلاح الكلمات ذات الواصلات الخاطئة" #: ../../../__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 "غالبًا ما تحتوي الكتب الإلكترونية التي تم إنشاؤها من مسح الكتب المطبوعة على كلمات ذات واصلات خاطئة -- كلمات تم تقسيمها في نهاية السطر على الصفحة المطبوعة. سنكتب دالة بسيطة للعثور على هذه الكلمات وإصلاحها تلقائيًا." #: ../../../__w/calibre/calibre/manual/function_mode.rst:101 msgid "Use this function with the same find expression as before, namely::" msgstr "استخدم هذه الدالة مع نفس تعبير البحث السابق، وهو::" #: ../../../__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 "وسوف تقوم بتصحيح جميع الكلمات ذات الواصلات الخاطئة في نص الكتاب بطريقة سحرية. الخدعة الرئيسية هي استخدام إحدى الوسائط الإضافية المفيدة لدالة الاستبدال، ``dictionaries``. يشير هذا إلى القواميس التي يستخدمها المحرر نفسه للتحقق الإملائي للنص في الكتاب. ما تفعله هذه الدالة هو البحث عن الكلمات المفصولة بواصلة، وإزالة الواصلة والتحقق مما إذا كان القاموس يتعرف على الكلمة المركبة، إذا كان الأمر كذلك، يتم استبدال الكلمات الأصلية بالكلمة المركبة الخالية من الواصلة." #: ../../../__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 "لاحظ أن أحد قيود هذه التقنية هو أنها ستعمل فقط مع الكتب أحادية اللغة، لأنه، افتراضيًا، تستخدم ``dictionaries.recognized()`` اللغة الرئيسية للكتاب." #: ../../../__w/calibre/calibre/manual/function_mode.rst:119 msgid "Auto numbering sections" msgstr "ترقيم الأقسام تلقائيًا" #: ../../../__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 "الآن سنرى شيئًا مختلفًا قليلاً. لنفترض أن ملف HTML الخاص بك يحتوي على العديد من الأقسام، كل منها يحتوي على عنوان في علامة :code:`

` تبدو كـ :code:`

Some text

`. يمكنك إنشاء دالة مخصصة ستقوم بترقيم هذه العناوين تلقائيًا بأرقام أقسام متتالية، بحيث تبدو كـ :code:`

1. Some text

`." #: ../../../__w/calibre/calibre/manual/function_mode.rst:137 msgid "Use it with the find expression::" msgstr "استخدمها مع تعبير البحث::" #: ../../../__w/calibre/calibre/manual/function_mode.rst:141 msgid "" "Place the cursor at the top of the file and click :guilabel:`Replace all`." msgstr "ضع المؤشر في أعلى الملف وانقر على :guilabel:`استبدال الكل`." #: ../../../__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 "تستخدم هذه الدالة وسيطة إضافية مفيدة أخرى لدالة ``replace()``: الوسيطة ``number``. عند إجراء :guilabel:`استبدال الكل`، يتم زيادة الرقم تلقائيًا لكل تطابق متتالي. التطابق الأول يحمل الرقم 1." #: ../../../__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 "ميزة جديدة أخرى هي استخدام ``replace.file_order`` -- تعيينها إلى ``'spine'`` يعني أنه إذا تم تشغيل هذا البحث على ملفات HTML متعددة، فإن الملفات تتم معالجتها بالترتيب الذي تظهر به في الكتاب. راجع :ref:`file_order_replace_all` للحصول على التفاصيل." #: ../../../__w/calibre/calibre/manual/function_mode.rst:154 msgid "Auto create a Table of Contents" msgstr "إنشاء جدول محتويات تلقائيًا" #: ../../../__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 "" #: ../../../__w/calibre/calibre/manual/function_mode.rst:199 msgid "And use it with the find expression::" msgstr "واستخدمها مع تعبير البحث::" #: ../../../__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 "قم بتشغيل البحث على :guilabel:`جميع الملفات النصية` وفي نهاية البحث، ستظهر نافذة منبثقة بعنوان \"إخراج تصحيح الأخطاء من دالتك\" والتي ستحتوي على جدول محتويات HTML، جاهز للصق في :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 "الدالة أعلاه مشروحة بشكل مكثف، لذا يجب أن يكون من السهل متابعتها. الميزة الجديدة الرئيسية هي استخدام وسيطة إضافية مفيدة أخرى لدالة ``replace()``، وهي كائن ``data``. كائن ``data`` هو *قاموس* بايثون يستمر بين جميع الاستدعاءات المتتالية لـ ``replace()`` أثناء عملية :guilabel:`استبدال الكل` الواحدة." #: ../../../__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 "ميزة جديدة أخرى هي استخدام ``call_after_last_match`` -- تعيين هذا إلى ``True`` في دالة ``replace()`` يعني أن المحرر سيستدعي ``replace()`` مرة إضافية بعد العثور على جميع التطابقات. لهذا الاستدعاء الإضافي، سيكون كائن المطابقة ``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 "كان هذا مجرد عرض توضيحي لإظهار قوة وضع الدالة، إذا كنت تحتاج حقًا إلى إنشاء جدول محتويات من العناوين في كتابك، فمن الأفضل استخدام أداة جدول المحتويات المخصصة في :guilabel:`أدوات->جدول المحتويات`." #: ../../../__w/calibre/calibre/manual/function_mode.rst:224 msgid "The API for the function mode" msgstr "واجهة برمجة تطبيقات وضع الدالة" #: ../../../__w/calibre/calibre/manual/function_mode.rst:226 msgid "" "All function mode functions must be Python functions named replace, with the" " following signature::" msgstr "يجب أن تكون جميع دوال وضع الدالة دوال بايثون تسمى replace، مع التوقيع التالي::" #: ../../../__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 "عند تشغيل بحث/استبدال، لكل تطابق يتم العثور عليه، سيتم استدعاء دالة ``replace()``، ويجب أن تعيد سلسلة الاستبدال لذلك التطابق. إذا لم يتم إجراء أي استبدالات، يجب أن تعيد ``match.group()`` وهي السلسلة الأصلية. يتم توثيق الوسائط المختلفة لدالة ``replace()`` أدناه." #: ../../../__w/calibre/calibre/manual/function_mode.rst:239 msgid "The ``match`` argument" msgstr "وسيطة ``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 "تمثل وسيطة ``match`` التطابق الذي تم العثور عليه حاليًا. إنها `كائن مطابقة بايثون `_. أكثر طرقها فائدة هي ``group()`` التي يمكن استخدامها للحصول على النص المطابق للمجموعات الفردية التي تم التقاطها في تعبير البحث العادي." #: ../../../__w/calibre/calibre/manual/function_mode.rst:248 msgid "The ``number`` argument" msgstr "وسيطة ``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 "وسيطة ``number`` هي رقم التطابق الحالي. عند تشغيل :guilabel:`استبدال الكل`، سيؤدي كل تطابق متتالي إلى استدعاء ``replace()`` برقم متزايد. التطابق الأول يحمل الرقم 1." #: ../../../__w/calibre/calibre/manual/function_mode.rst:255 msgid "The ``file_name`` argument" msgstr "وسيطة ``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 "هذا هو اسم الملف الذي تم العثور على التطابق الحالي فيه. عند البحث داخل النص المحدد، يكون ``file_name`` فارغًا. يكون ``file_name`` في شكل قانوني، وهو مسار نسبي لجذر الكتاب، باستخدام ``/`` كفاصل للمسار." #: ../../../__w/calibre/calibre/manual/function_mode.rst:263 msgid "The ``metadata`` argument" msgstr "وسيطة ``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 "يمثل هذا البيانات الوصفية للكتاب الحالي، مثل العنوان، المؤلفين، اللغة، إلخ. وهو كائن من الفئة :class:`calibre.ebooks.metadata.book.base.Metadata`. تتضمن السمات المفيدة ``title``، ``authors`` (قائمة من المؤلفين) و ``language`` (رمز اللغة)." #: ../../../__w/calibre/calibre/manual/function_mode.rst:271 msgid "The ``dictionaries`` argument" msgstr "وسيطة ``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 "يمثل هذا مجموعة القواميس المستخدمة للتدقيق الإملائي في الكتاب الحالي. أكثر طرقه فائدة هي ``dictionaries.recognized(word)`` التي ستعيد ``True`` إذا تم التعرف على الكلمة الممررة بواسطة القاموس الخاص بلغة الكتاب الحالي." #: ../../../__w/calibre/calibre/manual/function_mode.rst:279 msgid "The ``data`` argument" msgstr "وسيطة ``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 "هذا قاموس بايثون بسيط. عندما تقوم بتشغيل :guilabel:`استبدال الكل`، كل تطابق متتالي سيؤدي إلى استدعاء ``replace()`` بنفس ``dictionary`` كبيانات. وبالتالي يمكنك استخدامه لتخزين بيانات عشوائية بين استدعاءات ``replace()`` أثناء عملية :guilabel:`استبدال الكل`." #: ../../../__w/calibre/calibre/manual/function_mode.rst:288 msgid "The ``functions`` argument" msgstr "وسيطة ``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 "" #: ../../../__w/calibre/calibre/manual/function_mode.rst:303 msgid "" "Then, in another function, you can access the ``utility()`` function like " "this:" msgstr "ثم، في دالة أخرى، يمكنك الوصول إلى دالة ``utility()`` كالتالي:" #: ../../../__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 "يمكنك أيضًا استخدام كائن الدوال لتخزين بيانات مستمرة، يمكن إعادة استخدامها بواسطة دوال أخرى. على سبيل المثال، يمكنك أن يكون لديك دالة عند تشغيلها مع :guilabel:`استبدال الكل` تجمع بعض البيانات ودالة أخرى تستخدمها عند تشغيلها لاحقًا. ضع في اعتبارك الدالتين التاليتين:" #: ../../../__w/calibre/calibre/manual/function_mode.rst:331 msgid "Debugging your functions" msgstr "تصحيح أخطاء الدوال الخاصة بك" #: ../../../__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 "يمكنك تصحيح أخطاء الدوال التي تنشئها باستخدام دالة ``print()`` القياسية من بايثون. سيتم عرض إخراج الطباعة في نافذة منبثقة بعد اكتمال البحث/الاستبدال. لقد رأيت مثالاً على استخدام ``print()`` لإخراج جدول محتويات كامل أعلاه." #: ../../../__w/calibre/calibre/manual/function_mode.rst:341 msgid "Choose file order when running on multiple HTML files" msgstr "اختر ترتيب الملفات عند التشغيل على ملفات 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 "" #: ../../../__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`` قيمتين، ``spine`` و ``spine-reverse`` مما يتسبب في معالجة البحث لملفات متعددة بالترتيب الذي تظهر به في الكتاب، إما للأمام أو للخلف، على التوالي." #: ../../../__w/calibre/calibre/manual/function_mode.rst:360 msgid "" "Having your function called an extra time after the last match is found" msgstr "استدعاء دالتك مرة إضافية بعد العثور على آخر تطابق" #: ../../../__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 "أحيانًا، كما هو الحال في مثال إنشاء جدول المحتويات التلقائي أعلاه، يكون من المفيد استدعاء دالتك مرة إضافية بعد العثور على آخر تطابق. يمكنك القيام بذلك عن طريق تعيين السمة ``call_after_last_match`` على دالتك، كالتالي:" #: ../../../__w/calibre/calibre/manual/function_mode.rst:376 msgid "Appending the output from the function to marked text" msgstr "إلحاق الإخراج من الدالة بالنص المحدد" #: ../../../__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 "" #: ../../../__w/calibre/calibre/manual/function_mode.rst:393 msgid "Suppressing the result dialog when performing searches on marked text" msgstr "إخفاء مربع حوار النتائج عند إجراء عمليات بحث على نص محدد" #: ../../../__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 "يمكنك أيضًا إخفاء مربع حوار النتائج (الذي يمكن أن يبطئ التطبيق المتكرر للبحث/الاستبدال على العديد من كتل النص) عن طريق تعيين السمة ``suppress_result_dialog`` على دالتك، كالتالي:" #: ../../../__w/calibre/calibre/manual/function_mode.rst:408 msgid "More examples" msgstr "المزيد من الأمثلة" #: ../../../__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 "يمكن العثور على المزيد من الأمثلة المفيدة، التي ساهم بها مستخدمو calibre، في `منتدى محرر الكتب الإلكترونية في calibre `_."