git: 1cfd1bdb58 - main - pt-br/books/fdp-primer: Sync with en

"Danilo G. Baio" <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
The branch main has been updated by dbaio:

URL: https://cgit.FreeBSD.org/doc/commit/?id=1cfd1bdb58a9e33db899069e129ad348e25a8b17

commit 1cfd1bdb58a9e33db899069e129ad348e25a8b17
Author:     Danilo G. Baio <[email protected]>
AuthorDate: 2022-08-07 19:15:28 +0000
Commit:     Danilo G. Baio <[email protected]>
CommitDate: 2022-08-07 19:15:28 +0000

    pt-br/books/fdp-primer: Sync with en
    
    Obtained from:  https://translate-dev.freebsd.org
---
 .../content/pt-br/books/fdp-primer/book.adoc       |   2 +
 .../pt-br/books/fdp-primer/doc-build/_index.po     |  13 +-
 .../books/fdp-primer/editor-config/_index.adoc     | 137 ++++--
 .../pt-br/books/fdp-primer/editor-config/_index.po | 453 ++++++++++++++------
 .../pt-br/books/fdp-primer/overview/_index.adoc    | 198 ++++++++-
 .../pt-br/books/fdp-primer/overview/_index.po      | 470 ++++++++++++++++++---
 .../pt-br/books/fdp-primer/see-also/_index.adoc    |   8 +-
 .../pt-br/books/fdp-primer/see-also/_index.po      |   8 +-
 .../pt-br/books/fdp-primer/trademarks/_index.adoc  |  94 +++++
 .../pt-br/books/fdp-primer/trademarks/_index.po    | 208 +++++++++
 .../pt-br/books/fdp-primer/writing-style/_index.po |   4 +-
 11 files changed, 1331 insertions(+), 264 deletions(-)

diff --git a/documentation/content/pt-br/books/fdp-primer/book.adoc b/documentation/content/pt-br/books/fdp-primer/book.adoc
index 4607d58591..c19ac3a030 100644
--- a/documentation/content/pt-br/books/fdp-primer/book.adoc
+++ b/documentation/content/pt-br/books/fdp-primer/book.adoc
@@ -89,6 +89,8 @@ include::{chapters-path}writing-style/_index.adoc[leveloffset=+1]
 
 include::{chapters-path}editor-config/_index.adoc[leveloffset=+1]
 
+include::{chapters-path}trademarks/_index.adoc[leveloffset=+1]
+
 include::{chapters-path}see-also/_index.adoc[leveloffset=+1]
 
 :sectnums!:
diff --git a/documentation/content/pt-br/books/fdp-primer/doc-build/_index.po b/documentation/content/pt-br/books/fdp-primer/doc-build/_index.po
index d865cf3ca8..f36303377c 100644
--- a/documentation/content/pt-br/books/fdp-primer/doc-build/_index.po
+++ b/documentation/content/pt-br/books/fdp-primer/doc-build/_index.po
@@ -5,7 +5,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: FreeBSD Documentation VERSION\n"
-"POT-Creation-Date: 2022-02-01 10:28-0300\n"
+"POT-Creation-Date: 2022-07-07 23:22-0300\n"
 "PO-Revision-Date: 2022-02-06 18:52+0000\n"
 "Last-Translator: Danilo G. Baio <[email protected]>\n"
 "Language-Team: Portuguese (Brazil) <https://translate-dev.freebsd.org/"
@@ -1200,7 +1200,8 @@ msgstr ""
 
 #. type: Plain text
 #: documentation/content/en/books/fdp-primer/doc-build/_index.adoc:516
-msgid "`RUBY_CMD` flag specifies the location of the Python binary."
+#: documentation/content/en/books/fdp-primer/doc-build/_index.adoc:637
+msgid "`RUBY_CMD` flag specifies the location of the Ruby binary."
 msgstr "A flag `RUBY_CMD` especifica a localização do binário Ruby."
 
 #. type: Plain text
@@ -1498,11 +1499,6 @@ msgstr ""
 "releases-clean:\n"
 "\trm -f data/releases.toml\n"
 
-#. type: Plain text
-#: documentation/content/en/books/fdp-primer/doc-build/_index.adoc:637
-msgid "`RUBY_CMD` flag specifies the location of the Ruby binary."
-msgstr "A flag `RUBY_CMD` especifica a localização do binário Ruby."
-
 #. type: Plain text
 #: documentation/content/en/books/fdp-primer/doc-build/_index.adoc:640
 msgid ""
@@ -1530,6 +1526,9 @@ msgid ""
 msgstr ""
 "`build` compila o website e coloca o resultado em *~/doc/website/public*."
 
+#~ msgid "`RUBY_CMD` flag specifies the location of the Python binary."
+#~ msgstr "A flag `RUBY_CMD` especifica a localização do binário Ruby."
+
 #, no-wrap
 #~ msgid ""
 #~ "| Formats\n"
diff --git a/documentation/content/pt-br/books/fdp-primer/editor-config/_index.adoc b/documentation/content/pt-br/books/fdp-primer/editor-config/_index.adoc
index 661deb9151..9bcd4620a7 100644
--- a/documentation/content/pt-br/books/fdp-primer/editor-config/_index.adoc
+++ b/documentation/content/pt-br/books/fdp-primer/editor-config/_index.adoc
@@ -1,6 +1,6 @@
 ---
 description: 'Configuração usada nos editores de textos do Projeto de Documentação do FreeBSD'
-next: books/fdp-primer/see-also
+next: books/fdp-primer/trademarks
 path: /books/fdp-primer/
 prev: books/fdp-primer/writing-style
 showBookMenu: 'true'
@@ -52,12 +52,14 @@ Ajustar a configuração do editor de texto pode tornar o trabalho nos arquivos
 [[editor-config-vim]]
 == Vim
 
-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.
 
 [[editor-config-vim-use]]
 === Uso
 
-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.
+Os escritores de páginas de manuais podem usar os seguintes atalhos de teclado para reformatar:
+* Pressione kbd:[P] para reformatar parágrafos ou texto selecionado no modo Visual.
+* Pressione kbd:[T] para substituir grupos de oito espaços por um tab.
 
 [[editor-config-vim-config]]
 === Configuração
@@ -67,43 +69,59 @@ Edite o [.filename]#~/.vimrc#, adicionando estas linhas ao final do arquivo:
 [.programlisting]
 ....
 if has("autocmd")
-    au BufNewFile,BufRead *.sgml,*.ent,*.xsl,*.xml call Set_SGML()
-    au BufNewFile,BufRead *.[1-9] call ShowSpecial()
+  au BufNewFile,BufRead *.adoc call Set_ADOC()
+  au BufNewFile,BufRead *.[1-9] call Set_MAN()
 endif " has(autocmd)
 
 function Set_Highlights()
-    "match ExtraWhitespace /^\s* \s*\|\s\+$/
-    highlight default link OverLength ErrorMsg
-    match OverLength /\%71v.\+/
-    return 0
-endfunction " Set_Highlights()
+  "match ExtraWhitespace /^\s* \s*\|\s\+$/
+  return 0
+endfunction " Set_Highlights_Adoc()
+
+function Set_Highlights_MAN()
+  highlight default link OverLength ErrorMsg
+  match OverLength /\%71v.\+/
+  return 0
+endfunction " Set_Highlights_MAN()
 
 function ShowSpecial()
-    setlocal list listchars=tab:>>,trail:*,eol:$
-    hi def link nontext ErrorMsg
-    return 0
+  setlocal list listchars=tab:>>,trail:*,eol:$
+  hi def link nontext ErrorMsg
+  return 0
 endfunction " ShowSpecial()
 
-function Set_SGML()
-    setlocal number
-    syn match sgmlSpecial "&[^;]*;"
-    setlocal syntax=sgml
-    setlocal filetype=xml
-    setlocal shiftwidth=2
-    setlocal textwidth=70
-    setlocal tabstop=8
-    setlocal softtabstop=2
-    setlocal formatprg="fmt -p"
-    setlocal autoindent
-    setlocal smartindent
-    " Rewrap paragraphs
-    noremap P gqj
-    " Replace spaces with tabs
-    noremap T :s/        /\t/<CR>
-    call ShowSpecial()
-    call Set_Highlights()
-    return 0
-endfunction " Set_SGML()
+function Set_COMMON()
+  setlocal number
+  setlocal shiftwidth=2
+  setlocal tabstop=8
+  setlocal softtabstop=2
+  setlocal formatprg="fmt -p"
+  setlocal autoindent
+  setlocal smartindent
+  call ShowSpecial()
+  call Set_Highlights()
+  return 0
+endfunction " Set_COMMON()
+
+function Set_ADOC()
+  setlocal syntax=asciidoc
+  setlocal filetype=asciidoc
+  call Set_COMMON()
+  return 0
+endfunction " Set_ADOC()
+
+function Set_MAN()
+  setlocal syntax=man
+  setlocal filetype=man
+  setlocal textwidth=70
+  " Rewrap paragraphs
+  noremap P gqj
+  " Replace spaces with tabs
+  noremap T :s/        /\t/<CR>
+  call Set_COMMON()
+  call Set_Highlights_MAN()
+  return 0
+endfunction " Set_Man()
 ....
 
 [[editor-config-emacs]]
@@ -187,17 +205,48 @@ Instale o aplicativo partir de package:editors/nano[] ou package:editors/nano-de
 [[editor-config-nano-config]]
 === Configuração
 
-Copie o arquivo com a amostra da regra para realce da sintaxe XML para o diretório inicial do usuário:
-
-[source, shell]
-....
-% cp /usr/local/share/nano/xml.nanorc ~/.nanorc
-....
-
-Use um editor para substituir as linhas do [.filename]#~/.nanorc# referentes ao bloco `syntax "xml"` por estas regras:
+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:
 
 ....
-syntax "xml" "\.([jrs]html?|xml|xslt?)$"
+syntax "asciidoc" "\.(adoc|asc|asciidoc)$"
+# main header
+color red "^====+$"
+# h1
+color red "^==[[:space:]].*$"
+color red "^----+$"
+# h2
+color magenta "^===[[:space:]].*$"
+color magenta "^~~~~+$"
+# h4
+color green "^====[[:space:]].*$"
+color green "^\^\^\^\^+$"
+# h5
+color brightblue "^=====[[:space:]].*$"
+color brightblue "^\+\+\+\++$"
+# attributes
+color brightgreen ":.*:"
+color brightred "\{[a-z0-9]*\}"
+color red "\\\{[a-z0-9]*\}"
+color red "\+\+\+\{[a-z0-9]*\}\+\+\+"
+# Paragraph Title
+color yellow "^\..*$"
+# source
+color magenta "^\[(source,.+|NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]"
+# Other markup
+color yellow ".*[[:space:]]\+$"
+color yellow "_[^_]+_"
+color yellow "\*[^\*]+\*"
+color yellow "\+[^\+]+\+"
+color yellow "`[^`]+`"
+color yellow "\^[^\^]+\^"
+color yellow "~[^~]+~"
+color yellow "'[^']+'"
+color cyan "`{1,2}[^']+'{1,2}"
+# bullets
+color brightmagenta "^[[:space:]]*[\*\.-]{1,5}[[:space:]]"
+# anchors
+color brightwhite "\[\[.*\]\]"
+color brightwhite "<<.*>>"
 # trailing whitespace
 color ,blue "[[:space:]]+$"
 # multiples of eight spaces at the start a line
@@ -207,8 +256,6 @@ color ,blue "^([TAB]*[ ]{8})+"
 color ,yellow "( )+TAB"
 # highlight indents that have an odd number of spaces
 color ,red "^(([ ]{2})+|(TAB+))*[ ]{1}[^ ]{1}"
-# lines longer than 70 characters
-color ,yellow "^(.{71})|(TAB.{63})|(TAB{2}.{55})|(TAB{3}.{47}).+$"
 ....
 
 Processe o arquivo para criar guias incorporadas:
@@ -225,7 +272,7 @@ Especifique opções úteis adicionais ao executar o editor:
 
 [source, shell]
 ....
-% nano -AKipwz -r 70 -T8 _index.adoc
+% nano -AKipwz -T8 _index.adoc
 ....
 
 Usuários do man:csh[1] podem definir um alias em [.filename]#~/.cshrc# para automatizar estas opções:
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 2078fe2d79..91d546f2c4 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,12 +1,12 @@
 # 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 <[email protected]>, 2021.
+# Danilo G. Baio <[email protected]>, 2021, 2022.
 msgid ""
 msgstr ""
 "Project-Id-Version: FreeBSD Documentation VERSION\n"
-"POT-Creation-Date: 2022-02-01 09:20-0300\n"
-"PO-Revision-Date: 2021-11-05 11:08+0000\n"
+"POT-Creation-Date: 2022-07-07 23:22-0300\n"
+"PO-Revision-Date: 2022-08-07 18:44+0000\n"
 "Last-Translator: Danilo G. Baio <[email protected]>\n"
 "Language-Team: Portuguese (Brazil) <https://translate-dev.freebsd.org/"
 "projects/documentation/booksfdp-primereditor-config_index/pt_BR/>\n"
@@ -15,7 +15,7 @@ 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.8.1\n"
+"X-Generator: Weblate 4.10.1\n"
 
 #. type: YAML Front Matter: description
 #: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:1
@@ -52,19 +52,23 @@ msgid "Vim"
 msgstr "Vim"
 
 #. type: Plain text
-#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:56
+#: 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:58
-#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:226
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:59
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:273
 #, no-wrap
 msgid "Use"
 msgstr "Uso"
@@ -72,37 +76,50 @@ msgstr "Uso"
 #. type: Plain text
 #: 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:63
+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] tpara reformatar parágrafos ou texto selecionado no modo "
-"Visual. Pressione kbd:[T] para substituir grupos de oito espaços por um tab."
+"Pressione kbd:[P] para reformatar parágrafos ou texto selecionado no modo "
+"Visual."
 
-#. type: Title ===
+#. type: Plain text
 #: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:64
-#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:192
+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: Title ===
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:66
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:210
 #, no-wrap
 msgid "Configuration"
 msgstr "Configuração"
 
 #. type: Plain text
-#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:67
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:69
 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: delimited block . 4
-#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:74
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:76
 #, 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
@@ -110,102 +127,146 @@ msgstr ""
 #, 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:87
 #, 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:93
+#, 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:108
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:106
 #, 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"
+"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_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"
+"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:113
+#, 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:126
+#, 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: Title ==
-#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:111
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:129
 #, no-wrap
 msgid "Emacs"
 msgstr "Emacs"
 
 #. type: Plain text
-#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:114
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:132
 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:116
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:134
 #, no-wrap
 msgid "Validation"
 msgstr "Validação"
 
 #. type: Plain text
-#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:121
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:139
 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 "
@@ -220,7 +281,7 @@ msgstr ""
 "e adicione estas linhas ao arquivo:"
 
 #. type: delimited block . 4
-#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:130
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:148
 #, no-wrap
 msgid ""
 "locatingRules xmlns=\"http://thaiopensource.com/ns/locating-rules/1.0\"\n"
@@ -240,13 +301,13 @@ msgstr ""
 "locatingRules\n"
 
 #. type: Title ===
-#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:133
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:151
 #, 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:137
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:155
 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 "
@@ -257,13 +318,13 @@ msgstr ""
 "pacotes do Emacs, ele pode ser adicionado executando"
 
 #. type: delimited block . 4
-#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:140
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:158
 #, 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"
 
 #. type: Plain text
-#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:143
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:161
 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 "
@@ -274,23 +335,23 @@ msgstr ""
 "el#) para tornar esta alteração permanente."
 
 #. type: Plain text
-#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:145
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:163
 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:148
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:166
 #, 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:151
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:169
 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:155
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:173
 #, no-wrap
 msgid ""
 "(flycheck-define-checker igor\n"
@@ -300,7 +361,7 @@ msgstr ""
 "  \"FreeBSD Documentation Project sanity checker.\n"
 
 #. type: delimited block . 4
-#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:162
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:180
 #, no-wrap
 msgid ""
 "See URLs https://www.freebsd.org/docproj/ and\n"
@@ -318,13 +379,13 @@ msgstr ""
 "  :standard-input t)\n"
 
 #. type: delimited block . 4
-#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:164
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:182
 #, 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:167
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:185
 msgid ""
 "Again, add these lines to Emacs's initialization file to make the changes "
 "permanent."
@@ -333,13 +394,13 @@ msgstr ""
 "tornar as mudanças permanentes."
 
 #. type: Title ===
-#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:169
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:187
 #, 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:172
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:190
 msgid ""
 "To apply settings specific to the FreeBSD documentation project, create [."
 "filename]#.dir-locals.el# in the root directory of the documentation "
@@ -350,7 +411,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:176
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:194
 #, no-wrap
 msgid ""
 ";;; Directory Local Variables\n"
@@ -360,7 +421,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:184
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:202
 #, no-wrap
 msgid ""
 "((nxml-mode\n"
@@ -380,45 +441,73 @@ msgstr ""
 "  (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:187
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:205
 #, no-wrap
 msgid "nano"
 msgstr "nano"
 
 #. type: Plain text
-#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:190
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:208
 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:195
-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:"
-
-#. type: delimited block . 4
-#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:199
-#, 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:202
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:213
 msgid ""
-"Use an editor to replace the lines in the [.filename]#~/.nanorc# `syntax "
-"\"xml\"` block with these rules:"
+"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 ""
-"Use um editor para substituir as linhas do [.filename]#~/.nanorc# referentes "
-"ao bloco `syntax \"xml\"` por estas regras:"
+"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:216
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:263
 #, 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"
@@ -428,10 +517,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"
@@ -441,33 +566,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:219
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:266
 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:223
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:270
 #, 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:229
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:276
 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:233
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:280
 #, 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:236
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:283
 msgid ""
 "Users of man:csh[1] can define an alias in [.filename]#~/.cshrc# to automate "
 "these options:"
@@ -476,23 +599,77 @@ msgstr ""
 "automatizar estas opções:"
 
 #. type: delimited block . 4
-#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:239
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:286
 #, 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:242
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:289
 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:246
+#: documentation/content/en/books/fdp-primer/editor-config/_index.adoc:293
 #, 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"
*** 1304 LINES SKIPPED ***
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.