[prev in list] [next in list] [prev in thread] [next in thread]
List: aspell-user
Subject: [Aspell-user] aspell and xml documents
From: Manfred Lotz <manfred.lotz () web ! de>
Date: 2015-08-13 17:56:00
Message-ID: 20150813195600.584a66e3 () hogwart ! bsdlocal ! net
[Download RAW message or body]
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.
--
Thanks, Manfred
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic