# 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: 2015-01-10 01:24+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/snippets.rst:2
msgid "Snippets"
msgstr "قصاصات"
#: ../../../__w/calibre/calibre/manual/snippets.rst:6
msgid ""
"The calibre E-book editor supports *snippets*. A snippet is a piece of text "
"that is either re-used often or contains a lot of redundant text. The editor"
" allows you to insert a snippet with only a few key strokes. For example, "
"suppose you often find yourself inserting link tags when editing HTML files,"
" then you can simply type ```` tags so you can easily type in the text for "
"the link."
msgstr "ليس هذا فحسب، بل سيتم تحديد كلمة ``filename``، مع وضع المؤشر فوقها، بحيث يمكنك بسهولة كتابة اسم الملف الحقيقي، باستخدام ميزة الإكمال التلقائي الذكية للمحرر :ref:`editor_auto_complete`. وبمجرد الانتهاء من كتابة اسم الملف، اضغط على |ct| مرة أخرى وسيقفز المؤشر إلى الموضع بين علامتي ```` بحيث يمكنك بسهولة كتابة نص الرابط."
#: ../../../__w/calibre/calibre/manual/snippets.rst:21
msgid ""
"The snippets system in the editor is very sophisticated, there are a few "
"built-in snippets and you can create your own to suit your editing style."
msgstr "نظام القصاصات في المحرر متطور للغاية، هناك بعض القصاصات المدمجة ويمكنك إنشاء قصاصات خاصة بك لتناسب أسلوب تحريرك."
#: ../../../__w/calibre/calibre/manual/snippets.rst:24
msgid ""
"The following discussion of the built-in snippets should help illustrate the"
" power of the snippets system."
msgstr "يجب أن تساعد المناقشة التالية للقصاصات المدمجة في توضيح قوة نظام القصاصات."
#: ../../../__w/calibre/calibre/manual/snippets.rst:28
msgid ""
"You can also use snippets in the text entry fields in the :guilabel:`Search "
"& replace` panel, however, placeholders (using |ct| to jump around) will not"
" work."
msgstr "يمكنك أيضًا استخدام القصاصات في حقول إدخال النص في لوحة :guilabel:`البحث والاستبدال`، ومع ذلك، لن تعمل العناصر النائبة (باستخدام |ct| للقفز)."
#: ../../../__w/calibre/calibre/manual/snippets.rst:33
msgid "The built-in snippets"
msgstr "القصاصات المدمجة"
#: ../../../__w/calibre/calibre/manual/snippets.rst:35
msgid ""
"The built-in snippets are described below. Note that you can override them "
"by creating your own snippets with the same trigger text."
msgstr "يتم وصف القصاصات المدمجة أدناه. لاحظ أنه يمكنك تجاوزها عن طريق إنشاء قصاصات خاصة بك بنفس نص التشغيل."
#: ../../../__w/calibre/calibre/manual/snippets.rst:39
msgid "Inserting filler text [Lorem]"
msgstr "إدراج نص حشو [Lorem]"
#: ../../../__w/calibre/calibre/manual/snippets.rst:41
msgid ""
"The first built-in snippet, and the simplest is used to insert filler text "
"into a document. The filler text is taken from `De finibus bonorum et "
"malorum `_ a "
"philosophical work by Cicero (translated to English). To use it simply type "
"``Lorem`` in an HTML file and press |ct|. It will be replaced by a couple of"
" paragraphs of filler."
msgstr "تُستخدم القصاصة المدمجة الأولى والأبسط لإدراج نص حشو في مستند. يتم أخذ نص الحشو من `De finibus bonorum et malorum `_ وهو عمل فلسفي لشيشرون (مترجم إلى الإنجليزية). لاستخدامه، ما عليك سوى كتابة ``Lorem`` في ملف HTML والضغط على |ct|. سيتم استبداله ببضعة فقرات من الحشو."
#: ../../../__w/calibre/calibre/manual/snippets.rst:48
msgid ""
"The definition of this snippet is very simple, the trigger text is defined "
"as ``Lorem`` and the template is defined simply as the literal text to be "
"inserted. You can easily customize it to use your favorite form of filler "
"text."
msgstr "تعريف هذه القصاصة بسيط للغاية، يتم تعريف نص التشغيل كـ ``Lorem`` ويتم تعريف القالب ببساطة كنص حرفي يتم إدراجه. يمكنك تخصيصه بسهولة لاستخدام الشكل المفضل لديك من نص الحشو."
#: ../../../__w/calibre/calibre/manual/snippets.rst:53
msgid "Inserting a self-closing HTML tag [<>]"
msgstr "إدراج علامة HTML ذاتية الإغلاق [<>]"
#: ../../../__w/calibre/calibre/manual/snippets.rst:55
msgid ""
"Now let's look at a simple example of the powerful concept of "
"*placeholders*. Say you want to insert the self-closing tag ``
``. Just "
"type ``<>``, and press |ct|, the editor will expand the snippet to::"
msgstr "الآن دعنا نلقي نظرة على مثال بسيط لمفهوم *العناصر النائبة* القوي. لنفترض أنك تريد إدراج العلامة ذاتية الإغلاق ``
``. ما عليك سوى كتابة ``<>``، والضغط على |ct|، سيقوم المحرر بتوسيع القصاصة إلى::"
#: ../../../__w/calibre/calibre/manual/snippets.rst:61
msgid ""
"Here, the ``|`` symbol represents the current cursor position. You can then "
"type ``hr`` and press |ct| to move the cursor to after the end of the tag. "
"This snippet is defined as::"
msgstr "هنا، يمثل الرمز ``|`` موضع المؤشر الحالي. يمكنك بعد ذلك كتابة ``hr`` والضغط على |ct| لنقل المؤشر إلى ما بعد نهاية العلامة. يتم تعريف هذه القصاصة كالتالي::"
#: ../../../__w/calibre/calibre/manual/snippets.rst:68
msgid ""
"Placeholders are simply the dollar ($) sign followed by a number. When the "
"snippet is expanded by pressing |ct| the cursor is positioned at the first "
"placeholder (the placeholder with the lowest number). When you press |ct| "
"again the cursor jumps to the next placeholder (the placeholder with the "
"next higher number)."
msgstr "العناصر النائبة هي ببساطة علامة الدولار ($) متبوعة برقم. عندما يتم توسيع القصاصة بالضغط على |ct|، يتم وضع المؤشر عند العنصر النائب الأول (العنصر النائب ذو الرقم الأقل). عندما تضغط على |ct| مرة أخرى، يقفز المؤشر إلى العنصر النائب التالي (العنصر النائب ذو الرقم الأعلى التالي)."
#: ../../../__w/calibre/calibre/manual/snippets.rst:75
msgid "Inserting an HTML link tag [`` tags so you can easily type in the text for "
"the link. After you are done typing the text, press |ct| again to jump to "
"the point after the closing tag. This snippet is defined as::"
msgstr "ليس هذا فحسب، بل سيتم تحديد كلمة ``filename``، مع وضع المؤشر فوقها، بحيث يمكنك بسهولة كتابة اسم الملف الحقيقي، باستخدام ميزة الإكمال التلقائي الذكية للمحرر :ref:`editor_auto_complete`. وبمجرد الانتهاء من كتابة اسم الملف، اضغط على |ct| مرة أخرى وسيقفز المؤشر إلى الموضع بين علامتي ```` بحيث يمكنك بسهولة كتابة نص الرابط. بعد الانتهاء من كتابة النص، اضغط على |ct| مرة أخرى للقفز إلى النقطة بعد علامة الإغلاق. يتم تعريف هذه القصاصة كالتالي::"
#: ../../../__w/calibre/calibre/manual/snippets.rst:96
msgid ""
"There are a couple of new features here. First the ``$1`` placeholder has "
"become more complex. It now includes some *default text* (the word "
"``filename``). If a placeholder contains default text, the default text is "
"substituted for the placeholder when the snippet is expanded. Also when you "
"jump to a placeholder with default text using |ct|, the default text is "
"selected. In this way, you can use default text to act as a reminder to you "
"to fill in important parts of the template. You can specify default text for"
" a placeholder by using the syntax: ``${:default text}``."
msgstr "هنا توجد بعض الميزات الجديدة. أولاً، أصبح العنصر النائب ``$1`` أكثر تعقيدًا. وهو يتضمن الآن بعض *النص الافتراضي* (كلمة ``filename``). إذا كان العنصر النائب يحتوي على نص افتراضي، يتم استبدال النص الافتراضي بالعنصر النائب عند توسيع القصاصة. أيضًا عندما تقفز إلى عنصر نائب بنص افتراضي باستخدام |ct|، يتم تحديد النص الافتراضي. بهذه الطريقة، يمكنك استخدام النص الافتراضي كتذكير لك لملء الأجزاء المهمة من القالب. يمكنك تحديد نص افتراضي لـ عنصر نائب باستخدام الصيغة: ``${:default text}``."
#: ../../../__w/calibre/calibre/manual/snippets.rst:105
msgid ""
"The other new feature is that the second placeholder has an asterisk after "
"it (``${2*}``). This means that any text that was selected before expanding "
"the template is substituted for the placeholder. To see this in action, "
"select some text in the editor, press |ct|, type ```` tag"
" and jump between the ``src`` and ``alt`` attributes::"
msgstr "هذا مشابه جدًا لإدراج رابط HTML، كما رأينا أعلاه. يسمح لك بإدخال سريع لعلامة ``
`` والقفز بين سمتي ``src`` و ``alt``::"
#: ../../../__w/calibre/calibre/manual/snippets.rst:124
msgid "Insert an arbitrary HTML tag [<<]"
msgstr "إدراج علامة HTML عشوائية [<<]"
#: ../../../__w/calibre/calibre/manual/snippets.rst:126
msgid ""
"This allows you to insert an arbitrary full HTML tag (or wrap previously "
"selected text in the tag). To use it, simply type ``<<`` and press |ct|. If "
"you want to wrap selected text, first select the text, press |ct| then type "
"``<<`` and press |ct| again. The editor will expand it to::"
msgstr ""
#: ../../../__w/calibre/calibre/manual/snippets.rst:134
msgid ""
"Type the tag name, for example: ``span`` and press |ct|, that will result "
"in::"
msgstr "اكتب اسم العلامة، على سبيل المثال: ``span`` واضغط على |ct|، سينتج عن ذلك ما يلي::"
#: ../../../__w/calibre/calibre/manual/snippets.rst:138
msgid ""
"You will note that the closing tag has been automatically filled with "
"``span``. This is achieved with yet another feature of placeholders, "
"*mirroring*. Mirroring simply means that if you specify the same placeholder"
" more than once in a template, the second and all later positions will be "
"automatically filled in with whatever you type in the first position, when "
"you press |ct|. The definition for this snippet is::"
msgstr ""
#: ../../../__w/calibre/calibre/manual/snippets.rst:148
msgid ""
"As you can see, the first placeholder ($1) has been specified twice, the "
"second time in the closing tag, which will simply copy whatever you type in "
"the opening tag."
msgstr "كما ترى، تم تحديد العنصر النائب الأول ($1) مرتين، المرة الثانية في علامة الإغلاق، والتي ستقوم ببساطة بنسخ أي شيء تكتبه في علامة الفتح."
#: ../../../__w/calibre/calibre/manual/snippets.rst:153
msgid "Inserting an arbitrary HTML tag with a class attribute [Preferences->Editor settings->Manage snippets` in the "
"editor. This will pop-up an easy to use dialog to help you create your own "
"snippets. Simply click the :guilabel:`Add snippet` button and you will see a"
" dialog that looks like:"
msgstr "تتألق القصاصات حقًا لأنه يمكنك إنشاء قصاصات خاصة بك لتناسب أسلوب تحريرك. لإنشاء قصاصاتك الخاصة، انتقل إلى :guilabel:`تحرير->التفضيلات->إعدادات المحرر->إدارة القصاصات` في المحرر. سيظهر مربع حوار سهل الاستخدام لمساعدتك في إنشاء قصاصاتك الخاصة. ما عليك سوى النقر على زر :guilabel:`إضافة قصاصة` وسترى مربع حوار يبدو كالتالي:"
#: ../../../__w/calibre/calibre/manual/snippets.rst:175
msgid "The create your own snippets tool"
msgstr "أداة إنشاء قصاصاتك الخاصة"
#: ../../../__w/calibre/calibre/manual/snippets.rst:180
msgid ""
"First give your snippet a name, something descriptive, to help identify the "
"snippet in the future. Then specify the *trigger*. A trigger is simply the "
"text that you have to type in the editor before pressing |ct| in order to "
"expand the snippet."
msgstr "أولاً، أعطِ قصاصتك اسمًا، شيئًا وصفيًا، للمساعدة في تحديد القصاصة في المستقبل. ثم حدد *المشغل*. المشغل هو ببساطة النص الذي يجب عليك كتابته في المحرر قبل الضغط على |ct| لـ توسيع القصاصة."
#: ../../../__w/calibre/calibre/manual/snippets.rst:185
msgid ""
"Then specify the snippet template. You should start with one of the examples"
" above and modify it to suit your needs. Finally, specify which file types "
"you want the snippet to be active for. This way you can have multiple "
"snippets with the same trigger text that work differently in different file "
"types."
msgstr "ثم حدد قالب القصاصة. يجب أن تبدأ بأحد الأمثلة المذكورة أعلاه وتعدلها لتناسب احتياجاتك. أخيرًا، حدد أنواع الملفات التي تريد أن تكون القصاصة نشطة لها. بهذه الطريقة يمكنك الحصول على عدة قصاصات بنفس نص التشغيل تعمل بشكل مختلف في أنواع ملفات مختلفة."
#: ../../../__w/calibre/calibre/manual/snippets.rst:190
msgid ""
"The next step is to test your newly created snippet. Use the "
":guilabel:`Test` box at the bottom. Type in the trigger text and press |ct| "
"to expand the snippet and jump between placeholders."
msgstr "الخطوة التالية هي اختبار القصاصة التي أنشأتها حديثًا. استخدم مربع :guilabel:`اختبار` في الأسفل. اكتب نص التشغيل واضغط على |ct| لتوسيع القصاصة والقفز بين العناصر النائبة."