diff options
Diffstat (limited to 'documentation/content/pt-br/books/fdp-primer/editor-config/_index.po')
-rw-r--r-- | documentation/content/pt-br/books/fdp-primer/editor-config/_index.po | 664 |
1 files changed, 486 insertions, 178 deletions
diff --git a/documentation/content/pt-br/books/fdp-primer/editor-config/_index.po b/documentation/content/pt-br/books/fdp-primer/editor-config/_index.po index d1d7e99234..3cab9abbd5 100644 --- a/documentation/content/pt-br/books/fdp-primer/editor-config/_index.po +++ b/documentation/content/pt-br/books/fdp-primer/editor-config/_index.po @@ -1,13 +1,14 @@ # SOME DESCRIPTIVE TITLE # Copyright (C) YEAR The FreeBSD Project # This file is distributed under the same license as the FreeBSD Documentation package. -# Danilo G. Baio <dbaio@FreeBSD.org>, 2021. +# Danilo G. Baio <dbaio@FreeBSD.org>, 2021, 2022, 2023. +# "Danilo G. Baio" <dbaio@FreeBSD.org>, 2023. msgid "" msgstr "" "Project-Id-Version: FreeBSD Documentation VERSION\n" -"POT-Creation-Date: 2021-06-03 17:02-0300\n" -"PO-Revision-Date: 2021-07-18 21:49+0000\n" -"Last-Translator: Danilo G. Baio <dbaio@FreeBSD.org>\n" +"POT-Creation-Date: 2023-06-19 21:07-0300\n" +"PO-Revision-Date: 2023-07-02 17:42+0000\n" +"Last-Translator: \"Danilo G. Baio\" <dbaio@FreeBSD.org>\n" "Language-Team: Portuguese (Brazil) <https://translate-dev.freebsd.org/" "projects/documentation/booksfdp-primereditor-config_index/pt_BR/>\n" "Language: pt_BR\n" @@ -15,30 +16,28 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n > 1;\n" -"X-Generator: Weblate 4.7\n" +"X-Generator: Weblate 4.17\n" #. type: YAML Front Matter: description #: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:1 #, no-wrap msgid "Configuration used in the texts editors in the FreeBSD Documentation Project" -msgstr "" -"Configuração usada nos editores de textos do Projeto de Documentação do " -"FreeBSD" +msgstr "Configuração usada nos editores de textos do Projeto de Documentação do FreeBSD" #. type: YAML Front Matter: title #: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:1 #, no-wrap -msgid "Chapter 12. Editor Configuration" -msgstr "Capítulo 12. Configuração do Editor" +msgid "Chapter 13. Editor Configuration" +msgstr "Capítulo 13. Configuração do Editor" #. type: Title = -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:10 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:13 #, no-wrap msgid "Editor Configuration" msgstr "Configuração do Editor" #. type: Plain text -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:28 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:51 msgid "" "Adjusting your text editor configuration can make working on document files " "quicker and easier, and help documents conform to FDP guidelines." @@ -48,166 +47,340 @@ msgstr "" "ficarem em conformidade com as diretrizes do projeto." #. type: Title == -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:30 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:53 #, no-wrap msgid "Vim" msgstr "Vim" #. type: Plain text -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:33 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:57 msgid "" -"Install from package:editors/vim[], package:editors/vim-console[], or " -"package:editors/vim-tiny[] then follow the configuration instructions in " -"<<editor-config-vim-config>>." +"Install from package:editors/vim[], or package:editors/vim-console[], then " +"follow the configuration instructions in <<editor-config-vim-config>>. More " +"advanced users can use a proper linter like link:https://github.com/dense-" +"analysis/ale[Ale] which can also act as a Vim link:https://langserver.org/" +"[Language Server Protocol] client." msgstr "" -"Instale-o a partir de package:editors/vim[], package:editors/vim-console[], " -"ou package:editors/vim-tiny[] e siga as instruções de configuração em " -"<<editor-config-vim-config>>." +"Instale o package:editors/vim[], ou package:editors/vim-console[], em " +"seguida siga as instruções em <<editor-config-vim-config>>. Usuários mais " +"avançados podem usar um linter mais adequado como o link:https://github.com/" +"dense-analysis/ale[Ale] que também pode atuar como um link:https://" +"langserver.org/[Protocolo de Servidor de Idiomas] do Vim." #. type: Title === -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:35 -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:203 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:59 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:326 #, no-wrap msgid "Use" msgstr "Uso" #. type: Plain text -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:39 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:62 +msgid "" +"Manual page writers can use the following keyboard shortcuts to reformat:" +msgstr "" +"Os escritores de páginas de manuais podem usar os seguintes atalhos de " +"teclado para reformatar:" + +#. type: Plain text +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:64 msgid "" "Press kbd:[P] to reformat paragraphs or text that has been selected in " -"Visual mode. Press kbd:[T] to replace groups of eight spaces with a tab." +"Visual mode." +msgstr "" +"Pressione kbd:[P] para reformatar parágrafos ou texto selecionado no modo " +"Visual." + +#. type: Plain text +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:65 +msgid "Press kbd:[T] to replace groups of eight spaces with a tab." +msgstr "Pressione kbd:[T] para substituir grupos de oito espaços por um tab." + +#. type: Plain text +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:68 +msgid "" +"A linter named link:https://vale.sh[Vale] has been introduced to check " +"grammatical and cosmetic errors on the documents. Vale has support for " +"various editors and IDEs." msgstr "" -"Pressione kbd:[P] tpara reformatar parágrafos ou texto selecionado no modo " -"Visual. Pressione kbd:[T] para substituir grupos de oito espaços por um tab." +"Um linter chamado link:https://vale.sh[Vale] foi adicionado para verificar " +"erros gramaticais e cosméticos nos documentos. O Vale possui suporte para " +"diversos editores e IDEs." + +#. type: Plain text +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:71 +msgid "" +"Vale may already be installed as a dependency of the package:textproc/" +"docproj[] meta-port. If not, install package:textproc/vale[] with:" +msgstr "" +"O Vale já é instalado como uma dependência do package:textproc/docproj[] " +"meta-port. Caso contrário, instale package:textproc/vale[] com:" + +#. type: delimited block . 4 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:75 +#, no-wrap +msgid "$ pkg install vale\n" +msgstr "$ pkg install vale\n" + +#. type: Plain text +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:78 +msgid "" +"Install link:https://github.com/dense-analysis/ale[Ale] to integrate into " +"package:editors/vim[], for using package:textproc/vale[]." +msgstr "" +"Instale o link:https://github.com/dense-analysis/ale[Ale] para intergrar o " +"package:textproc/vale[] com o package:editors/vim[]." + +#. type: delimited block . 4 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:83 +#, no-wrap +msgid "" +"% mkdir -p ~/.vim/pack/vendor/start\n" +"% git clone --depth 1 https://github.com/dense-analysis/ale.git ~/.vim/pack/vendor/start/ale\n" +msgstr "" +"% mkdir -p ~/.vim/pack/vendor/start\n" +"% git clone --depth 1 https://github.com/dense-analysis/ale.git ~/.vim/pack/vendor/start/ale\n" + +#. type: Plain text +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:86 +msgid "" +"Users who are using plugin managers for package:editors/vim[] do not need " +"the above and should follow the instructions of that plugin manager to " +"install link:https://github.com/dense-analysis/ale[Ale]." +msgstr "" +"Os usuários que estão usando gerenciadores de plug-in no package:editors/" +"vim[] não precisam dos passos acima e devem seguir as instruções do próprio " +"gerenciador de plug-in para instalar o link:https://github.com/dense-" +"analysis/ale[Ale]." + +#. type: Plain text +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:89 +msgid "" +"At this moment due to a bug in link:https://vale.sh[Vale] it is necessary to " +"copy the link:https://vale.sh[Vale] configuration to the home directory. " +"Considering the repository was cloned into [.filename]#~/doc# copy as " +"following:" +msgstr "" +"Neste momento devido a um bug no link:https://vale.sh[Vale] é necessário " +"copiar a configuração do link:https://vale.sh[Vale] para o diretório home. " +"Considerando que o repositório foi clonado em [.filename]#~/doc# da seguinte " +"forma:" + +#. type: delimited block . 4 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:93 +#, no-wrap +msgid "% cp -R ~/doc/.vale* ~/\n" +msgstr "% cp -R ~/doc/.vale* ~/\n" #. type: Title === -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:41 -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:169 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:96 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:260 #, no-wrap msgid "Configuration" msgstr "Configuração" #. type: Plain text -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:44 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:99 msgid "Edit [.filename]#~/.vimrc#, adding these lines to the end of the file:" msgstr "" "Edite o [.filename]#~/.vimrc#, adicionando estas linhas ao final do arquivo:" +#. type: Block title +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:101 +#, no-wrap +msgid "`~/.vimrc`" +msgstr "`~/.vimrc`" + #. type: delimited block . 4 -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:51 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:107 #, no-wrap msgid "" "if has(\"autocmd\")\n" -" au BufNewFile,BufRead *.sgml,*.ent,*.xsl,*.xml call Set_SGML()\n" -" au BufNewFile,BufRead *.[1-9] call ShowSpecial()\n" +" au BufNewFile,BufRead *.adoc call Set_ADOC()\n" +" au BufNewFile,BufRead *.[1-9] call Set_MAN()\n" "endif \" has(autocmd)\n" msgstr "" "if has(\"autocmd\")\n" -" au BufNewFile,BufRead *.sgml,*.ent,*.xsl,*.xml call Set_SGML()\n" -" au BufNewFile,BufRead *.[1-9] call ShowSpecial()\n" +" au BufNewFile,BufRead *.adoc call Set_ADOC()\n" +" au BufNewFile,BufRead *.[1-9] call Set_MAN()\n" "endif \" has(autocmd)\n" #. type: delimited block . 4 -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:58 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:112 #, no-wrap msgid "" "function Set_Highlights()\n" -" \"match ExtraWhitespace /^\\s* \\s*\\|\\s\\+$/\n" -" highlight default link OverLength ErrorMsg\n" -" match OverLength /\\%71v.\\+/\n" -" return 0\n" -"endfunction \" Set_Highlights()\n" +" \"match ExtraWhitespace /^\\s* \\s*\\|\\s\\+$/\n" +" return 0\n" +"endfunction \" Set_Highlights_Adoc()\n" msgstr "" "function Set_Highlights()\n" -" \"match ExtraWhitespace /^\\s* \\s*\\|\\s\\+$/\n" -" highlight default link OverLength ErrorMsg\n" -" match OverLength /\\%71v.\\+/\n" -" return 0\n" -"endfunction \" Set_Highlights()\n" +" \"match ExtraWhitespace /^\\s* \\s*\\|\\s\\+$/\n" +" return 0\n" +"endfunction \" Set_Highlights_Adoc()\n" #. type: delimited block . 4 -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:64 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:118 +#, no-wrap +msgid "" +"function Set_Highlights_MAN()\n" +" highlight default link OverLength ErrorMsg\n" +" match OverLength /\\%71v.\\+/\n" +" return 0\n" +"endfunction \" Set_Highlights_MAN()\n" +msgstr "" +"function Set_Highlights_MAN()\n" +" highlight default link OverLength ErrorMsg\n" +" match OverLength /\\%71v.\\+/\n" +" return 0\n" +"endfunction \" Set_Highlights_MAN()\n" + +#. type: delimited block . 4 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:124 #, no-wrap msgid "" "function ShowSpecial()\n" -" setlocal list listchars=tab:>>,trail:*,eol:$\n" -" hi def link nontext ErrorMsg\n" -" return 0\n" +" setlocal list listchars=tab:>>,trail:*,eol:$\n" +" hi def link nontext ErrorMsg\n" +" return 0\n" "endfunction \" ShowSpecial()\n" msgstr "" "function ShowSpecial()\n" -" setlocal list listchars=tab:>>,trail:*,eol:$\n" -" hi def link nontext ErrorMsg\n" -" return 0\n" +" setlocal list listchars=tab:>>,trail:*,eol:$\n" +" hi def link nontext ErrorMsg\n" +" return 0\n" "endfunction \" ShowSpecial()\n" #. type: delimited block . 4 -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:85 -#, no-wrap -msgid "" -"function Set_SGML()\n" -" setlocal number\n" -" syn match sgmlSpecial \"&[^;]*;\"\n" -" setlocal syntax=sgml\n" -" setlocal filetype=xml\n" -" setlocal shiftwidth=2\n" -" setlocal textwidth=70\n" -" setlocal tabstop=8\n" -" setlocal softtabstop=2\n" -" setlocal formatprg=\"fmt -p\"\n" -" setlocal autoindent\n" -" setlocal smartindent\n" -" \" Rewrap paragraphs\n" -" noremap P gqj\n" -" \" Replace spaces with tabs\n" -" noremap T :s/ /\\t/<CR>\n" -" call ShowSpecial()\n" -" call Set_Highlights()\n" -" return 0\n" -"endfunction \" Set_SGML()\n" -msgstr "" -"function Set_SGML()\n" -" setlocal number\n" -" syn match sgmlSpecial \"&[^;]*;\"\n" -" setlocal syntax=sgml\n" -" setlocal filetype=xml\n" -" setlocal shiftwidth=2\n" -" setlocal textwidth=70\n" -" setlocal tabstop=8\n" -" setlocal softtabstop=2\n" -" setlocal formatprg=\"fmt -p\"\n" -" setlocal autoindent\n" -" setlocal smartindent\n" -" \" Rewrap paragraphs\n" -" noremap P gqj\n" -" \" Replace spaces with tabs\n" -" noremap T :s/ /\\t/<CR>\n" -" call ShowSpecial()\n" -" call Set_Highlights()\n" -" return 0\n" -"endfunction \" Set_SGML()\n" +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:137 +#, no-wrap +msgid "" +"function Set_COMMON()\n" +" setlocal number\n" +" setlocal shiftwidth=2\n" +" setlocal tabstop=8\n" +" setlocal softtabstop=2\n" +" setlocal formatprg=\"fmt -p\"\n" +" setlocal autoindent\n" +" setlocal smartindent\n" +" call ShowSpecial()\n" +" call Set_Highlights()\n" +" return 0\n" +"endfunction \" Set_COMMON()\n" +msgstr "" +"function Set_COMMON()\n" +" setlocal number\n" +" setlocal shiftwidth=2\n" +" setlocal tabstop=8\n" +" setlocal softtabstop=2\n" +" setlocal formatprg=\"fmt -p\"\n" +" setlocal autoindent\n" +" setlocal smartindent\n" +" call ShowSpecial()\n" +" call Set_Highlights()\n" +" return 0\n" +"endfunction \" Set_COMMON()\n" + +#. type: delimited block . 4 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:144 +#, no-wrap +msgid "" +"function Set_ADOC()\n" +" setlocal syntax=asciidoc\n" +" setlocal filetype=asciidoc\n" +" call Set_COMMON()\n" +" return 0\n" +"endfunction \" Set_ADOC()\n" +msgstr "" +"function Set_ADOC()\n" +" setlocal syntax=asciidoc\n" +" setlocal filetype=asciidoc\n" +" call Set_COMMON()\n" +" return 0\n" +"endfunction \" Set_ADOC()\n" + +#. type: delimited block . 4 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:157 +#, no-wrap +msgid "" +"function Set_MAN()\n" +" setlocal syntax=man\n" +" setlocal filetype=man\n" +" setlocal textwidth=70\n" +" \" Rewrap paragraphs\n" +" noremap P gqj\n" +" \" Replace spaces with tabs\n" +" noremap T :s/ /\\t/<CR>\n" +" call Set_COMMON()\n" +" call Set_Highlights_MAN()\n" +" return 0\n" +"endfunction \" Set_Man()\n" +msgstr "" +"function Set_MAN()\n" +" setlocal syntax=man\n" +" setlocal filetype=man\n" +" setlocal textwidth=70\n" +" \" Rewrap paragraphs\n" +" noremap P gqj\n" +" \" Replace spaces with tabs\n" +" noremap T :s/ /\\t/<CR>\n" +" call Set_COMMON()\n" +" call Set_Highlights_MAN()\n" +" return 0\n" +"endfunction \" Set_Man()\n" + +#. type: delimited block . 4 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:165 +#, no-wrap +msgid "" +"let g:ale_fixers = {\n" +"\\ '*': ['remove_trailing_lines', 'trim_whitespace'],\n" +"\\}\n" +"let g:ale_linters = {\n" +"\\ 'asciidoc': ['vale'],\n" +"\\}\n" +"let g:ale_fix_on_save = 1\n" +msgstr "" +"let g:ale_fixers = {\n" +"\\ '*': ['remove_trailing_lines', 'trim_whitespace'],\n" +"\\}\n" +"let g:ale_linters = {\n" +"\\ 'asciidoc': ['vale'],\n" +"\\}\n" +"let g:ale_fix_on_save = 1\n" + +#. type: delimited block = 6 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:171 +msgid "" +"Above configuration will automatically remove trailing line, trailing space " +"and multiple spaces which might display additional unwanted changes in `git " +"diff` output. In such cases properly mention that in the commit log." +msgstr "" +"A configuração acima removerá automaticamente a linha final, o espaço final " +"e vários espaços que podem exibir alterações indesejadas adicionais na saída " +"do `git diff`. Nesses casos, mencione isso adequadamente no log de commit." #. type: Title == -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:88 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:174 #, no-wrap msgid "Emacs" msgstr "Emacs" #. type: Plain text -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:91 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:177 msgid "Install from package:editors/emacs[] or package:editors/emacs-devel[]." msgstr "" "Instale-o a partir de package:editors/emacs[] ou package:editors/emacs-" "devel[]." #. type: Title === -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:93 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:179 #, no-wrap msgid "Validation" msgstr "Validação" #. type: Plain text -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:98 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:184 msgid "" "Emacs's nxml-mode uses compact relax NG schemas for validating XML. A " "compact relax NG schema for FreeBSD's extension to DocBook 5.0 is included " @@ -221,54 +394,59 @@ msgstr "" "validar usando este esquema, crie [.filename]#~/.emacs.d/schema/schemas.xml# " "e adicione estas linhas ao arquivo:" +#. type: Block title +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:186 +#, no-wrap +msgid "`~/.emacs.d/schema/schemas.xml`" +msgstr "`~/.emacs.d/schema/schemas.xml`" + #. type: delimited block . 4 -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:107 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:195 #, no-wrap msgid "" -"locatingRules xmlns=\"http://thaiopensource.com/ns/locating-rules/1.0\"\n" -" documentElement localName=\"section\" typeId=\"DocBook\"\n" -" documentElement localName=\"chapter\" typeId=\"DocBook\"\n" -" documentElement localName=\"article\" typeId=\"DocBook\"\n" -" documentElement localName=\"book\" typeId=\"DocBook\"\n" -" typeId id=\"DocBook\" uri=\"/usr/local/share/xml/docbook/5.0/rng/docbook.rnc\"\n" -"locatingRules\n" +"<locatingRules xmlns=\"http://thaiopensource.com/ns/locating-rules/1.0\">\n" +" <documentElement localName=\"section\" typeId=\"DocBook\" />\n" +" <documentElement localName=\"chapter\" typeId=\"DocBook\" />\n" +" <documentElement localName=\"article\" typeId=\"DocBook\" />\n" +" <documentElement localName=\"book\" typeId=\"DocBook\" />\n" +" <typeId id=\"DocBook\" uri=\"/usr/local/share/xml/docbook/5.0/rng/docbook.rnc\" />\n" +"</locatingRules>\n" msgstr "" -"locatingRules xmlns=\"http://thaiopensource.com/ns/locating-rules/1.0\"\n" -" documentElement localName=\"section\" typeId=\"DocBook\"\n" -" documentElement localName=\"chapter\" typeId=\"DocBook\"\n" -" documentElement localName=\"article\" typeId=\"DocBook\"\n" -" documentElement localName=\"book\" typeId=\"DocBook\"\n" -" typeId id=\"DocBook\" uri=\"/usr/local/share/xml/docbook/5.0/rng/docbook." -"rnc\"\n" -"locatingRules\n" +"<locatingRules xmlns=\"http://thaiopensource.com/ns/locating-rules/1.0\">\n" +" <documentElement localName=\"section\" typeId=\"DocBook\" />\n" +" <documentElement localName=\"chapter\" typeId=\"DocBook\" />\n" +" <documentElement localName=\"article\" typeId=\"DocBook\" />\n" +" <documentElement localName=\"book\" typeId=\"DocBook\" />\n" +" <typeId id=\"DocBook\" uri=\"/usr/local/share/xml/docbook/5.0/rng/docbook.rnc\" />\n" +"</locatingRules>\n" #. type: Title === -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:110 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:198 #, no-wrap msgid "Automated Proofreading with Flycheck and Igor" msgstr "Revisão Automatizada com Flycheck e Igor" #. type: Plain text -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:114 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:202 msgid "" -"The Flycheck package is available from Milkypostman's Emacs Lisp Package " -"Archive (MELPA). If MELPA is not already in Emacs's packages-archives, it " -"can be added by evaluating" +"The link:https://www.flycheck.org/[Flycheck] package is available from link:" +"https://melpa.org/[Milkypostman's Emacs Lisp Package Archive] (MELPA). If " +"MELPA is not already in Emacs's packages-archives, it can be added by " +"evaluating" msgstr "" -"O pacote Flycheck está disponível no Emacs Lisp Package Archive da " -"Milkypostman (MELPA). Se a MELPA ainda não estiver nos repositórios de " -"pacotes do Emacs, ele pode ser adicionado executando" +"O pacote link:https://www.flycheck.org/[Flycheck] está disponível no link:" +"https://melpa.org/[Emacs Lisp Package Archive da Milkypostman] (MELPA). Se a " +"MELPA ainda não estiver nos repositórios de pacotes do Emacs, ele pode ser " +"adicionado executando" #. type: delimited block . 4 -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:117 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:206 #, no-wrap msgid "(add-to-list 'package-archives '(\"melpa\" . \"http://stable.melpa.org/packages/\") t)\n" -msgstr "" -"(add-to-list 'package-archives '(\"melpa\" . \"http://stable.melpa.org/" -"packages/\") t)\n" +msgstr "(add-to-list 'package-archives '(\"melpa\" . \"http://stable.melpa.org/packages/\") t)\n" #. type: Plain text -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:120 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:209 msgid "" "Add the line to Emacs's initialization file (one of [.filename]#~/.emacs#, [." "filename]#~/.emacs.el#, or [.filename]#~.emacs.d/init.el#) to make this " @@ -279,23 +457,23 @@ msgstr "" "el#) para tornar esta alteração permanente." #. type: Plain text -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:122 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:211 msgid "To install Flycheck, evaluate" msgstr "Para instalar o Flycheck, execute" #. type: delimited block . 4 -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:125 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:215 #, no-wrap msgid "(package-install 'flycheck)\n" msgstr "(package-install 'flycheck)\n" #. type: Plain text -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:128 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:218 msgid "Create a Flycheck checker for package:textproc/igor[] by evaluating" msgstr "Crie um verificador Flycheck para package:textproc/igor[] executando" #. type: delimited block . 4 -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:132 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:223 #, no-wrap msgid "" "(flycheck-define-checker igor\n" @@ -305,7 +483,7 @@ msgstr "" " \"FreeBSD Documentation Project sanity checker.\n" #. type: delimited block . 4 -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:139 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:230 #, no-wrap msgid "" "See URLs https://www.freebsd.org/docproj/ and\n" @@ -323,13 +501,13 @@ msgstr "" " :standard-input t)\n" #. type: delimited block . 4 -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:141 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:232 #, no-wrap msgid " (add-to-list 'flycheck-checkers 'igor 'append)\n" msgstr " (add-to-list 'flycheck-checkers 'igor 'append)\n" #. type: Plain text -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:144 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:235 msgid "" "Again, add these lines to Emacs's initialization file to make the changes " "permanent." @@ -338,13 +516,13 @@ msgstr "" "tornar as mudanças permanentes." #. type: Title === -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:146 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:237 #, no-wrap msgid "FreeBSD Documentation Specific Settings" msgstr "Configurações Específicas da Documentação do FreeBSD" #. type: Plain text -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:149 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:240 msgid "" "To apply settings specific to the FreeBSD documentation project, create [." "filename]#.dir-locals.el# in the root directory of the documentation " @@ -355,7 +533,7 @@ msgstr "" "repositório de documentação e adicione estas linhas ao arquivo:" #. type: delimited block . 4 -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:153 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:244 #, no-wrap msgid "" ";;; Directory Local Variables\n" @@ -365,7 +543,7 @@ msgstr "" ";;; For more information see (info \"(emacs) Directory Variables\")\n" #. type: delimited block . 4 -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:161 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:252 #, no-wrap msgid "" "((nxml-mode\n" @@ -382,49 +560,82 @@ msgstr "" " (eval . (require 'flycheck))\n" " (eval . (flycheck-mode 1))\n" " (flycheck-checker . igor)\n" -" (eval . (add-to-list 'rng-schema-locating-files \"~/.emacs.d/schema/schemas" -".xml\"))))\n" +" (eval . (add-to-list 'rng-schema-locating-files \"~/.emacs.d/schema/schemas.xml\"))))\n" #. type: Title == -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:164 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:255 #, no-wrap msgid "nano" msgstr "nano" #. type: Plain text -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:167 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:258 msgid "Install from package:editors/nano[] or package:editors/nano-devel[]." msgstr "" "Instale o aplicativo partir de package:editors/nano[] ou package:editors/" "nano-devel[]." #. type: Plain text -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:172 -msgid "Copy the sample XML syntax highlight file to the user's home directory:" +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:264 +msgid "" +"Currently there is no adoc/asciidoc syntax highlight file with nano " +"distribution. So let's create one from scratch and use an editor to create " +"new file or add lines in the [.filename]#~/.nanorc# with these contents:" msgstr "" -"Copie o arquivo com a amostra da regra para realce da sintaxe XML para o " -"diretório inicial do usuário:" +"Atualmente não há arquivo de highlight de sintaxe adoc/asciidoc com " +"distribuição nano. Então vamos criar um do zero e usar um editor para criar " +"um novo arquivo ou adicionar linhas no [.filename]#~/.nanorc# com este " +"conteúdo:" -#. type: delimited block . 4 -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:176 +#. type: Block title +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:266 #, no-wrap -msgid "% cp /usr/local/share/nano/xml.nanorc ~/.nanorc\n" -msgstr "% cp /usr/local/share/nano/xml.nanorc ~/.nanorc\n" - -#. type: Plain text -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:179 -msgid "" -"Use an editor to replace the lines in the [.filename]#~/.nanorc# `syntax " -"\"xml\"` block with these rules:" -msgstr "" -"Use um editor para substituir as linhas do [.filename]#~/.nanorc# referentes " -"ao bloco `syntax \"xml\"` por estas regras:" +msgid "`~/.nanorc`" +msgstr "`~/.nanorc`" #. type: delimited block . 4 -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:193 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:316 #, no-wrap msgid "" -"syntax \"xml\" \"\\.([jrs]html?|xml|xslt?)$\"\n" +"syntax \"asciidoc\" \"\\.(adoc|asc|asciidoc)$\"\n" +"# main header\n" +"color red \"^====+$\"\n" +"# h1\n" +"color red \"^==[[:space:]].*$\"\n" +"color red \"^----+$\"\n" +"# h2\n" +"color magenta \"^===[[:space:]].*$\"\n" +"color magenta \"^~~~~+$\"\n" +"# h4\n" +"color green \"^====[[:space:]].*$\"\n" +"color green \"^\\^\\^\\^\\^+$\"\n" +"# h5\n" +"color brightblue \"^=====[[:space:]].*$\"\n" +"color brightblue \"^\\+\\+\\+\\++$\"\n" +"# attributes\n" +"color brightgreen \":.*:\"\n" +"color brightred \"\\{[a-z0-9]*\\}\"\n" +"color red \"\\\\\\{[a-z0-9]*\\}\"\n" +"color red \"\\+\\+\\+\\{[a-z0-9]*\\}\\+\\+\\+\"\n" +"# Paragraph Title\n" +"color yellow \"^\\..*$\"\n" +"# source\n" +"color magenta \"^\\[(source,.+|NOTE|TIP|IMPORTANT|WARNING|CAUTION)\\]\"\n" +"# Other markup\n" +"color yellow \".*[[:space:]]\\+$\"\n" +"color yellow \"_[^_]+_\"\n" +"color yellow \"\\*[^\\*]+\\*\"\n" +"color yellow \"\\+[^\\+]+\\+\"\n" +"color yellow \"`[^`]+`\"\n" +"color yellow \"\\^[^\\^]+\\^\"\n" +"color yellow \"~[^~]+~\"\n" +"color yellow \"'[^']+'\"\n" +"color cyan \"`{1,2}[^']+'{1,2}\"\n" +"# bullets\n" +"color brightmagenta \"^[[:space:]]*[\\*\\.-]{1,5}[[:space:]]\"\n" +"# anchors\n" +"color brightwhite \"\\[\\[.*\\]\\]\"\n" +"color brightwhite \"<<.*>>\"\n" "# trailing whitespace\n" "color ,blue \"[[:space:]]+$\"\n" "# multiples of eight spaces at the start a line\n" @@ -434,10 +645,46 @@ msgid "" "color ,yellow \"( )+TAB\"\n" "# highlight indents that have an odd number of spaces\n" "color ,red \"^(([ ]{2})+|(TAB+))*[ ]{1}[^ ]{1}\"\n" -"# lines longer than 70 characters\n" -"color ,yellow \"^(.{71})|(TAB.{63})|(TAB{2}.{55})|(TAB{3}.{47}).+$\"\n" msgstr "" -"syntax \"xml\" \"\\.([jrs]html?|xml|xslt?)$\"\n" +"syntax \"asciidoc\" \"\\.(adoc|asc|asciidoc)$\"\n" +"# main header\n" +"color red \"^====+$\"\n" +"# h1\n" +"color red \"^==[[:space:]].*$\"\n" +"color red \"^----+$\"\n" +"# h2\n" +"color magenta \"^===[[:space:]].*$\"\n" +"color magenta \"^~~~~+$\"\n" +"# h4\n" +"color green \"^====[[:space:]].*$\"\n" +"color green \"^\\^\\^\\^\\^+$\"\n" +"# h5\n" +"color brightblue \"^=====[[:space:]].*$\"\n" +"color brightblue \"^\\+\\+\\+\\++$\"\n" +"# attributes\n" +"color brightgreen \":.*:\"\n" +"color brightred \"\\{[a-z0-9]*\\}\"\n" +"color red \"\\\\\\{[a-z0-9]*\\}\"\n" +"color red \"\\+\\+\\+\\{[a-z0-9]*\\}\\+\\+\\+\"\n" +"# Paragraph Title\n" +"color yellow \"^\\..*$\"\n" +"# source\n" +"color magenta \"^\\[(source,.+|NOTE|TIP|IMPORTANT|WARNING|CAUTION)\\]\"\n" +"# Other markup\n" +"color yellow \".*[[:space:]]\\+$\"\n" +"color yellow \"_[^_]+_\"\n" +"color yellow \"\\*[^\\*]+\\*\"\n" +"color yellow \"\\+[^\\+]+\\+\"\n" +"color yellow \"`[^`]+`\"\n" +"color yellow \"\\^[^\\^]+\\^\"\n" +"color yellow \"~[^~]+~\"\n" +"color yellow \"'[^']+'\"\n" +"color cyan \"`{1,2}[^']+'{1,2}\"\n" +"# bullets\n" +"color brightmagenta \"^[[:space:]]*[\\*\\.-]{1,5}[[:space:]]\"\n" +"# anchors\n" +"color brightwhite \"\\[\\[.*\\]\\]\"\n" +"color brightwhite \"<<.*>>\"\n" "# trailing whitespace\n" "color ,blue \"[[:space:]]+$\"\n" "# multiples of eight spaces at the start a line\n" @@ -447,33 +694,31 @@ msgstr "" "color ,yellow \"( )+TAB\"\n" "# highlight indents that have an odd number of spaces\n" "color ,red \"^(([ ]{2})+|(TAB+))*[ ]{1}[^ ]{1}\"\n" -"# lines longer than 70 characters\n" -"color ,yellow \"^(.{71})|(TAB.{63})|(TAB{2}.{55})|(TAB{3}.{47}).+$\"\n" #. type: Plain text -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:196 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:319 msgid "Process the file to create embedded tabs:" msgstr "Processe o arquivo para criar guias incorporadas:" #. type: delimited block . 4 -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:200 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:323 #, no-wrap msgid "% perl -i'' -pe 's/TAB/\\t/g' ~/.nanorc\n" msgstr "% perl -i'' -pe 's/TAB/\\t/g' ~/.nanorc\n" #. type: Plain text -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:206 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:329 msgid "Specify additional helpful options when running the editor:" msgstr "Especifique opções úteis adicionais ao executar o editor:" #. type: delimited block . 4 -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:210 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:333 #, no-wrap -msgid "% nano -AKipwz -r 70 -T8 _index.adoc\n" -msgstr "% nano -AKipwz -r 70 -T8 _index.adoc\n" +msgid "% nano -AKipwz -T8 _index.adoc\n" +msgstr "% nano -AKipwz -T8 _index.adoc\n" #. type: Plain text -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:213 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:336 msgid "" "Users of man:csh[1] can define an alias in [.filename]#~/.cshrc# to automate " "these options:" @@ -482,19 +727,82 @@ msgstr "" "automatizar estas opções:" #. type: delimited block . 4 -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:216 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:340 #, no-wrap msgid "alias nano \"nano -AKipwz -r 70 -T8\"\n" msgstr "alias nano \"nano -AKipwz -r 70 -T8\"\n" #. type: Plain text -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:219 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:343 msgid "After the alias is defined, the options will be added automatically:" msgstr "" "Depois que o alias é definido, as opções serão adicionadas automaticamente:" #. type: delimited block . 4 -#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:223 +#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:347 #, no-wrap msgid "% nano _index.adoc\n" msgstr "% nano _index.adoc\n" + +#~ msgid "" +#~ "Install from package:editors/vim[], package:editors/vim-console[], or " +#~ "package:editors/vim-tiny[] then follow the configuration instructions in " +#~ "<<editor-config-vim-config>>." +#~ msgstr "" +#~ "Instale-o a partir de package:editors/vim[], package:editors/vim-" +#~ "console[], ou package:editors/vim-tiny[] e siga as instruções de " +#~ "configuração em <<editor-config-vim-config>>." + +#~ msgid "" +#~ "Copy the sample XML syntax highlight file to the user's home directory:" +#~ msgstr "" +#~ "Copie o arquivo com a amostra da regra para realce da sintaxe XML para o " +#~ "diretório inicial do usuário:" + +#, no-wrap +#~ msgid "% cp /usr/local/share/nano/xml.nanorc ~/.nanorc\n" +#~ msgstr "% cp /usr/local/share/nano/xml.nanorc ~/.nanorc\n" + +#~ msgid "" +#~ "Use an editor to replace the lines in the [.filename]#~/.nanorc# `syntax " +#~ "\"xml\"` block with these rules:" +#~ msgstr "" +#~ "Use um editor para substituir as linhas do [.filename]#~/.nanorc# " +#~ "referentes ao bloco `syntax \"xml\"` por estas regras:" + +#, no-wrap +#~ msgid "" +#~ "syntax \"xml\" \"\\.([jrs]html?|xml|xslt?)$\"\n" +#~ "# trailing whitespace\n" +#~ "color ,blue \"[[:space:]]+$\"\n" +#~ "# multiples of eight spaces at the start a line\n" +#~ "# (after zero or more tabs) should be a tab\n" +#~ "color ,blue \"^([TAB]*[ ]{8})+\"\n" +#~ "# tabs after spaces\n" +#~ "color ,yellow \"( )+TAB\"\n" +#~ "# highlight indents that have an odd number of spaces\n" +#~ "color ,red \"^(([ ]{2})+|(TAB+))*[ ]{1}[^ ]{1}\"\n" +#~ "# lines longer than 70 characters\n" +#~ "color ,yellow \"^(.{71})|(TAB.{63})|(TAB{2}.{55})|(TAB{3}.{47}).+$\"\n" +#~ msgstr "" +#~ "syntax \"xml\" \"\\.([jrs]html?|xml|xslt?)$\"\n" +#~ "# trailing whitespace\n" +#~ "color ,blue \"[[:space:]]+$\"\n" +#~ "# multiples of eight spaces at the start a line\n" +#~ "# (after zero or more tabs) should be a tab\n" +#~ "color ,blue \"^([TAB]*[ ]{8})+\"\n" +#~ "# tabs after spaces\n" +#~ "color ,yellow \"( )+TAB\"\n" +#~ "# highlight indents that have an odd number of spaces\n" +#~ "color ,red \"^(([ ]{2})+|(TAB+))*[ ]{1}[^ ]{1}\"\n" +#~ "# lines longer than 70 characters\n" +#~ "color ,yellow \"^(.{71})|(TAB.{63})|(TAB{2}.{55})|(TAB{3}.{47}).+$\"\n" + +#~ msgid "" +#~ "include::shared/attributes/attributes-{{% lang %}}.adoc[] include::shared/" +#~ "{{% lang %}}/teams.adoc[] include::shared/{{% lang %}}/mailing-lists." +#~ "adoc[] include::shared/{{% lang %}}/urls.adoc[]" +#~ msgstr "" +#~ "include::shared/attributes/attributes-{{% lang %}}.adoc[] include::shared/" +#~ "{{% lang %}}/teams.adoc[] include::shared/{{% lang %}}/mailing-lists." +#~ "adoc[] include::shared/{{% lang %}}/urls.adoc[]" |