Bash 在手册页上运行aspell

Bash 在手册页上运行aspell,bash,manpage,aspell,Bash,Manpage,Aspell,我想在手册页上使用Aspell,但我在分词方面有问题。 我使用man-man | col-bx | aspell(…),但“man-man | col-bx”返回文本时会吐出单词,即: "man formats and displays the on-line man- ual pages. If you specify section, man on- ly looks in that section of the manual." 因此,Aspell将此词返回为错误 你知道如何关闭它吗?你

我想在手册页上使用Aspell,但我在分词方面有问题。 我使用man-man | col-bx | aspell(…),但“man-man | col-bx”返回文本时会吐出单词,即:

"man formats and displays the on-line man-
ual pages. If you specify section, man on-
ly looks in that section of the manual."
因此,Aspell将此词返回为错误


你知道如何关闭它吗?

你想格式化手册页而不使用连字符。这应该做到:

 groff -mtty-char -Tutf8 -man -rHY=0 /usr/share/man/man1/man.1
或者,告诉它该页面太宽,以至于它从不使用连字符:

 groff -mtty-char -Tutf8 -man -rLL=1000000 /usr/share/man/man1/man.1
现在解释一下,这样你就知道在哪里可以找到这些东西了
man
使用
nroff
格式化页面,这只是
groff
周围的一个脚本。您可以了解它的作用:

sh -x $(which nroff) -man /usr/share/man/man1/man.1
这将依次发出一个与上述命令类似的
groff
命令。然后,您可以了解groff使用
-V
在内部做了什么:

groff -mtty-char -Tutf8 -man -V /usr/share/man/man1/man.1
…并了解我使用的连字号标志

man groff_man