文件手冊的拼字檢查器

文件手冊的拼字檢查器

是否有任何好的 Docbook 命令列拼字檢查器可以設定為忽略某些標籤,例如 <programlisting>。

最好使用 hunspell 字典,因為我有一個很好的瑞典語詞典對此。

答案1

Aspell 提供多種工作模式。

--mode=<string>, -e, -H, -t, -n
  Sets the filter mode.  Mode is one of none, url, email, html, tex or nroff. 
  The  alternative  shortcut  options  are  '-e'  for  email,  '-H'  for
  Html/Sgml, '-t' for Tex or '-n' for Nroff.

聽起來你只需要安裝 hunspell 字典,然後你可以使用 -H (--mode=Html/Sgml) 選項來執行 aspell 。

相關內容