# SOME DESCRIPTIVE TITLE. # Copyright (C) Kovid Goyal # This file is distributed under the same license as the calibre package. # # Translators: # nin hum , 2026 # Xosé, 2015 msgid "" msgstr "" "Project-Id-Version: calibre\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2026-09-16 15:05+0000\n" "PO-Revision-Date: 2015-01-10 01:24+0000\n" "Last-Translator: nin hum , 2026\n" "Language-Team: Galician (http://app.transifex.com/calibre/calibre/language/gl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: gl\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: ../../../__w/calibre/calibre/manual/snippets.rst:2 msgid "Snippets" msgstr "Fragmentos" #: ../../../__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 "Non só iso: seleccionarase a palabra «filename» e o cursor situarase sobre ela, de xeito que poidas escribir facilmente o nome de ficheiro real empregando a útil función de autocompletado do editor :ref:`editor_auto_complete`. Unha vez que remates de escribir o nome do ficheiro, preme |ct| de novo e o cursor saltará á posición situada entre as etiquetas ```` para que poidas escribir facilmente o texto da ligazón." #: ../../../__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 "O sistema de fragmentos de código do editor é moi sofisticado; inclúe algúns fragmentos predefinidos e permite crear os teus propios para adaptalos ao teu estilo de edición." #: ../../../__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 "A seguinte explicación sobre os fragmentos de código integrados debería axudar a ilustrar a potencia do sistema de fragmentos." #: ../../../__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 "Tamén podes usar fragmentos nos campos de entrada de texto do panel :guilabel:`Buscar e substituír`; porén, os marcadores de posición (que usan |ct| para desprazarse) non funcionarán." #: ../../../__w/calibre/calibre/manual/snippets.rst:33 msgid "The built-in snippets" msgstr "Os fragmentos integrados" #: ../../../__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 "A continuación descríbense os fragmentos de código integrados. Ten en conta que podes substituílos creando os teus propios fragmentos co mesmo texto de activación." #: ../../../__w/calibre/calibre/manual/snippets.rst:39 msgid "Inserting filler text [Lorem]" msgstr "Inserindo texto de recheo [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 "O primeiro fragmento de código predefinido —e o máis sinxelo— utilízase para inserir texto de recheo nun documento. Este texto procede de *De finibus bonorum et malorum*, unha obra filosófica de Cicerón (traducida ao inglés). Para utilizalo, basta con escribir ``Lorem`` nun ficheiro HTML e premer |ct|; o texto substituirase por un par de parágrafos de recheo." #: ../../../__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 "A definición deste fragmento é moi sinxela: o texto de activación defínese como «Lorem» e o modelo defínese simplemente como o texto literal que se vai inserir. Podes personalizalo facilmente para utilizar a túa forma favorita de texto de recheo." #: ../../../__w/calibre/calibre/manual/snippets.rst:53 msgid "Inserting a self-closing HTML tag [<>]" msgstr "Inserir unha etiqueta HTML de auto-peche [<>]" #: ../../../__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 "Vexamos agora un exemplo sinxelo do poderoso concepto dos *marcadores de posición*. Supoñamos que queres inserir a etiqueta de autocechamento ``
``. Basta con escribir ``<>`` e premer |ct|; o editor expandirá o fragmento de código así::" #: ../../../__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 "Aquí, o símbolo «|» representa a posición actual do cursor. Podes escribir «hr» e premer |ct| para mover o cursor á posición posterior ao final da etiqueta. Este fragmento defínese así::" #: ../../../__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 "Os marcadores de posición son simplemente o signo do dólar ($) seguido dun número. Cando se expande o fragmento premendo |ct|, o cursor sitúase no primeiro marcador de posición (o que ten o número máis baixo). Ao premer |ct| de novo, o cursor salta ao seguinte marcador de posición (o que ten o seguinte número máis alto)." #: ../../../__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 "Non só iso: seleccionarase a palabra «filename» e o cursor situarase sobre ela, de xeito que poidas escribir facilmente o nome de ficheiro real empregando a útil funcionalidade de autocompletado do editor :ref:`editor_auto_complete`. Unha vez que remates de escribir o nome do ficheiro, preme |ct| de novo e o cursor saltará á posición situada entre as etiquetas ```` para que poidas escribir facilmente o texto da ligazón. Despois de escribir o texto, preme |ct| outra vez para saltar ao punto posterior á etiqueta de peche. Este fragmento defínese así::" #: ../../../__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 "Aquí hai un par de novidades. En primeiro lugar, o marcador de posición ``$1`` fíxose máis complexo. Agora inclúe un *texto predeterminado* (a palabra ``filename``). Se un marcador de posición contén texto predeterminado, este substitúe o marcador cando se expande o fragmento de código. Ademais, ao saltar a un marcador con texto predeterminado mediante |ct|, dito texto queda seleccionado. Deste xeito, podes utilizar o texto predeterminado como recordatorio para cubrir as partes importantes do modelo. Podes especificar o texto predeterminado para un marcador empregando a sintaxe: ``${:texto predeterminado}``." #: ../../../__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 "Isto é moi parecido a inserir unha ligazón HTML, tal como vimos anteriormente. Permíteche introducir rapidamente unha ``\"description\"`` etiqueta e desprazarte entre os atributos `src` e `alt`::" #: ../../../__w/calibre/calibre/manual/snippets.rst:124 msgid "Insert an arbitrary HTML tag [<<]" msgstr "Inserir unha etiqueta HTML arbitraria [<<]" #: ../../../__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 "Isto permíteche inserir unha etiqueta HTML completa arbitraria (ou axustar o texto seleccionado previamente na etiqueta). Para usalo, simplemente escribe ``<<`` e preme |ct|. Se queres axustar o texto seleccionado, primeiro selecciona o texto, preme |ct| e logo escribe ``<<`` e preme |ct| de novo. O editor expandirao a::" #: ../../../__w/calibre/calibre/manual/snippets.rst:134 msgid "" "Type the tag name, for example: ``span`` and press |ct|, that will result " "in::" msgstr "Escribe o nome da etiqueta, por exemplo: ``span``, e preme |ct|; isto dará como resultado::" #: ../../../__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 "Notarás que a etiqueta de peche encheuse automaticamente con ``span``. Isto conséguese con outra característica dos marcadores de posición, *replicar*. A duplicación simplemente significa que se especificas o mesmo marcador de posición máis dunha vez nun modelo, a segunda e todas as posicións posteriores encheranse automaticamente co que escribas na primeira posición, cando premes |ct|. A definición deste fragmento é:" #: ../../../__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 "Como podes ver, o primeiro marcador de posición ($1) especificouse dúas veces —a segunda na etiqueta de peche—, o que simplemente copiará o que escribas na etiqueta de apertura." #: ../../../__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 "Os fragmentos de código son especialmente útiles porque podes crear os teus propios para adaptalos ao teu estilo de edición. Para crealos, vai a :guilabel:`Editar->Preferencias->Configuración do editor->Xestionar fragmentos` no editor. Abrirase unha xanela de diálogo intuitiva para axudarche a crear os teus propios fragmentos. Simplemente fai clic no botón :guilabel:`Engadir fragmento` e verás unha xanela de diálogo coma esta:" #: ../../../__w/calibre/calibre/manual/snippets.rst:175 msgid "The create your own snippets tool" msgstr "A ferramenta para crear os teus propios fragmentos" #: ../../../__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 "Primeiro, dálle un nome ao fragmento —algo descritivo— para axudar a identificalo no futuro. Despois, especifica o *disparador*. Un disparador é simplemente o texto que debes escribir no editor antes de premer |ct| para expandir o fragmento." #: ../../../__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 "A continuación, especifica o modelo do fragmento. Convén comezar por un dos exemplos anteriores e modificalo segundo as túas necesidades. Por último, indica para que tipos de ficheiro queres que o fragmento estea activo. Deste xeito, podes ter varios fragmentos co mesmo texto de activación que funcionen de xeito diferente segundo o tipo de ficheiro." #: ../../../__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 "O seguinte paso é probar o fragmento que acabas de crear. Usa a caixa :guilabel:`Test` situada na parte inferior. Escribe o texto de activación e preme |ct| para expandir o fragmento e desprazarte entre os marcadores de posición."