aspell(1) markup visibility and filtering (was: demandoc(1))

From: Graham Perrin <grahamperrin_at_freebsd.org>
Date: Sun, 06 Aug 2023 15:46:17 UTC
On 06/08/2023 13:36, Graham Perrin wrote:
> … have aspell present everyday language, without markup. …

Sorry, ignore that.

I assumed, wrongly, that markup was visible because the nroff filter was 
not effective with mdoc markup.

Eventually I realised: it's normal for aspell to show filtered markup, 
and there _is_ a slight difference with the filter.


% cat /usr/src/share/man/man7/hier.7 | aspell list --mode=nroff 
--encoding utf-8 | sort | uniq | wc -l
      121
% cat /usr/src/share/man/man7/hier.7 | aspell list --encoding utf-8 | 
sort | uniq | wc -l
      133
% cat /usr/src/sbin/bectl/bectl.8 | aspell list --encoding utf-8 | sort 
| uniq | grep -e Cm -e Ns -e Pa
Ns
% cat /usr/src/sbin/bectl/bectl.8 | aspell list --mode=nroff --encoding 
utf-8 | sort | uniq | grep -e Cm -e Ns -e Pa
Ns
%


I guess, Cm is interpreted as short for C minor, and Pa as short for 
father.