Manfred Lotz
2015-08-13 17:56:00 UTC
Hi there,
I have an XML document where I want to exclude certain parts from spell
checking. Although I messed with options like --rem-sgml-check I wasn't
able to achieve this.
Let us look at a minimal example:
$ cat test.xml
<text>
<xref refid='blabla'>more bla</xref>
is available
</text>
In this case I don't want 'blabla' nor 'more bla' being spell checked.
I tried:
$ cat test.xml | aspell -H list
and got
bla
It seems that the refid attribute is automatically excluded. But how do
I get the text 'more bla' of <refid ../> excluded?
I tried all sort of things, for instance this one
cat test.xml | aspell -H --rem-context-delimiters='<refid>,</refid>'
--rem-sgml-check='refid' list
but nothing worked.
Any help appreciated.
I have an XML document where I want to exclude certain parts from spell
checking. Although I messed with options like --rem-sgml-check I wasn't
able to achieve this.
Let us look at a minimal example:
$ cat test.xml
<text>
<xref refid='blabla'>more bla</xref>
is available
</text>
In this case I don't want 'blabla' nor 'more bla' being spell checked.
I tried:
$ cat test.xml | aspell -H list
and got
bla
It seems that the refid attribute is automatically excluded. But how do
I get the text 'more bla' of <refid ../> excluded?
I tried all sort of things, for instance this one
cat test.xml | aspell -H --rem-context-delimiters='<refid>,</refid>'
--rem-sgml-check='refid' list
but nothing worked.
Any help appreciated.
--
Thanks, Manfred
Thanks, Manfred