# SOME DESCRIPTIVE TITLE. # Copyright (C) Kovid Goyal # This file is distributed under the same license as the calibre package. # # Translators: # Gabriel York Orfali da Silva , 2015 # Luiz Phelipe Ferreira da Silva , 2015 # Marcello Oliveira , 2024-2025 # Pedro Manoel de Oliveira Heringer Dias , 2015 # Thiago Oliveira , 2018 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: Marcello Oliveira , 2024-2025\n" "Language-Team: Portuguese (Brazil) (http://app.transifex.com/calibre/calibre/language/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pt_BR\n" "Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" #: ../../../__w/calibre/calibre/manual/snippets.rst:2 msgid "Snippets" msgstr "Trechos" #: ../../../__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 "Não apenas isto, a palavra ``filename`` será selecionada, com o cursor sobre ela, assim você pode facilmente digitar o verdadeiro nome do arquivos, usando o recurso astucioso do editor :ref:`editor_auto_complete`. Assim que você terminar de digitar o nome do arquivo, pressione |ct| novamente e o cursor se moverá para a posição entre as tags ````, assim você poderá facilmente digitar o texto para o link." #: ../../../__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 trechos do editor é muito sofisticado, há uma pequena quantidade de trechos embutidos e você pode criar seus próprios trechos para se adequar ao seu estilo de edição." #: ../../../__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 discussão sobre os trechos embutidos devem ajudar a ilustrar o poder do sistema de trechos." #: ../../../__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 "É possível incluir trechos de texto nos campos de entrada na tela :guilabel:`Localizar & substituir`, apesar de que placeholders (usando |ct| para navegação) não irão funcionar." #: ../../../__w/calibre/calibre/manual/snippets.rst:33 msgid "The built-in snippets" msgstr "Os trechos embutidos" #: ../../../__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 "Os trechos embutidos estão descritos logo abaixo. Note que você pode substitui-los criando seus próprios trechos com o mesmo texto de ativação." #: ../../../__w/calibre/calibre/manual/snippets.rst:39 msgid "Inserting filler text [Lorem]" msgstr "Inserindo texto de preenchimento [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 trecho embutido, e o mais simples, é usado para inserir texto de preenchimento em um documento. O texto de preenchimento é tirado de `De finibus bonorum et malorum `_ uma obra filosófica da autoria de Cicero (traduzido para o Inglês). Para usá-lo, apenas digite ``Lorem`` em um arquivo HTML e pressione |ct|. O texto será substituído por dois parágrafos do texto de preenchimento." #: ../../../__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 definição deste trecho é bem simples, o texto de ativação é definido como ``Lorem`` e o modelo é definido simplesmente como o texto literal a ser inserido. Você pode facilmente personaliza-lo para usar sua forma favorita de texto de preenchimento." #: ../../../__w/calibre/calibre/manual/snippets.rst:53 msgid "Inserting a self-closing HTML tag [<>]" msgstr "Inserindo uma tag HTML de fechamento automático [<>]" #: ../../../__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 "Agora olhe um simples exemplo do poderoso conceito de *placeholders*. Digamos que você queira inserir a tag de fechamento automático ``
``. Apenas digite ``<>``, e pressione |ct|, o editor expandirá o trecho para::" #: ../../../__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 "Aqui, o símbolo ``|`` representa a atual posição do cursor. Você pode então pressionar ``hr`` e pressionar |ct| para mover o cursor para o final da tag. Este trecho é definido como::" #: ../../../__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 "Placeholders são simplesmente o símbolo dólar ($) seguido por um número. Quando o trecho é expandido ao pressionar |ct| o cursor é posicionado no primeiro placeholder (aquele com o menor número). Quando você pressionar |ct| novamente, o cursor move-se para o próximo placeholder (aquele com o próximo número superior)." #: ../../../__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 "Não só isso, a palavra \"filename\" vai ser selecionada, com o cursor localizado sobre esta, assim você pode facilmente digitar no nome do arquivo, usando o recurso de estilo do editor :ref:`editor_auto_complete`. E uma vez que você acabou de digitar o nome do arquivo, pressione |ct| novamente e o cursor vai pular para a posição entre as tags ``
`` assim você pode facilmente digitar o texto para o link. Depois de você acabar de digitar o texto, pressione |ct| novamente para pular para o ponto depois da tag de fechamento. Esse fragmento é definido como::" #: ../../../__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 "Existem alguns recursos novos aqui. Primeiro o marcador ``$1`` ficou mais complexo. Agora ele inclui um *texto padrão* (a palavra ``filename``). Se um marcador contiver o texto padrão, o texto padrão é substituído pelo marcador quando o trecho for expandido. Além disso, quando se pula para um marcador com o texto padrão usando |ct|, o texto padrão é selecionado. Assim, é possível usar o texto padrão para atuar como um lembrete para incluir partes importantes do modelo. Pode-se especificar o texto padrão para um marcador usando a sintaxe: ``${:texto padrão}``." #: ../../../__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 é bem semelhante a inserir um link HTML, como se viu acima. Ela permite que se coloque rapidamente uma ``\"description\"`` etiqueta e coloca entre os atributos ``src`` e ``alt``::" #: ../../../__w/calibre/calibre/manual/snippets.rst:124 msgid "Insert an arbitrary HTML tag [<<]" msgstr "Inserir uma etiqueta HTML aleatória [<<]" #: ../../../__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 "Digite o nome da tag, por exemplo: ``span`` e pressione |ct|, isto irá resultar em::" #: ../../../__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 "Como é possível perceber, o primeiro marcador ($1) foi especificado duas vezes, a segunda vez na tag de fechamento, que simplesmente copiará o que for digitado na tag de abertura." #: ../../../__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 "Trechos são bastantes versáteis pois é possível criar um que seja adequado ao seu estilo de edição. Para criar seus trechos, vá para :guilabel:`Editar->Opções->Ajustes do editor->Gerenciar trechos` no editor. Irá aparecer uma tela fácil de itilizar, para ajudar a criar os seus trechos. Clique no botão :guilabel:`Adicionar trecho` e aparecerá uma tela semelhante a:" #: ../../../__w/calibre/calibre/manual/snippets.rst:175 msgid "The create your own snippets tool" msgstr "A ferramenta Criando seus próprios trechos" #: ../../../__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ê um nome ao seu trecho, algo descritivo para identificá-lo no futuro. Depois especifique o *gatilho*. Um gatilho é simplesmente o texto que é necessário digitar no editor antes de pressionar |ct| para expandir o trecho." #: ../../../__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 "Depois especifique o modelo do trecho. É recomendável começar com um dos exemplos acima e modificá-lo para se adequar às suas necessidades. Finalmente, especifique para quais tipos de arquivos você quer que o trecho esteja ativo. Assim, é possível ter vários trechos com o mesmo texto de gatilho que funcionarão de formas diferentes em tipos de arquivos diferentes." #: ../../../__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 próximo passo é testar o seu novo trecho criado. Use a caixa :guilabel:`Teste` na parte inferior. Digite o texto de ativação e pressione |ct| para expandir o trecho e mover-se entre os placeholders."