OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] DocBook Spelling Aid


Am 27.06.2010 18:16, schrieb Mathieu Malaterre:
> On Sun, Jun 27, 2010 at 12:47 PM, Tom Browder <tom.browder@gmail.com> wrote:
>> On Sun, Jun 27, 2010 at 05:32, Tom Browder <tom.browder@gmail.com> wrote:
>>> On Sun, Jun 27, 2010 at 04:43, Stefan Kost <ensonic@hora-obscura.de> wrote:
>>>> Am 26.06.2010 15:24, schrieb Tom Browder:
>>> ...
>>>> You mean like :)
>>>> aspell check --mode=sgml doc.xml
>>
>> I get it, I could have used aspell instead of hunspell and specifying
>> the English system dictionary,
>>
>> Hunspell was the first thing I saw when running apropos on my machine
>> to look for a spelling program--didn't think to look further.  I
>> forgot about aspell--been a loooong time since I used an external
>> spell checker
>>
>> At any rate, aspell should work with my wrapper with suitable command
>> line changes.  It will still help eliminate the cruft and simplify
>> spell checking  a large set of files.
> 
> Here is my two cents:
> 
>       xmllint --postvalid --xinclude --nonet ${input_file} | aspell
> list -p path/to/aspell.en.pws --mode=sgml --lang=en --encoding=utf-8
> 
> Because this trigger quite a lot of false positive I also append:
> 
> foreach( skip in    `acronym       application      author      code
>     hardware      filename       markup       programlisting
> productname       screen      sgmltag`)
>        "--add-f-sgml-skip=${skip}"
> endforeach()
> 
> HTH

I use a local dictionary for the exceptions. This is the whole rule in my makefile:

check-local:
	@echo "Spellchecking C/$(DOC_MODULE).xml..."
	if test 0 -ne `cat $(srcdir)/C/$(DOC_MODULE).xml | aspell list --lang=en_US -p
$(PWD)/$(srcdir)/C/aspell.pws --mode=sgml | wc -l`; then \
	  echo; \
	  echo "C/$(DOC_MODULE).xml doesn't pass spellchecking, please fix with" >&2; \
	  echo "  aspell check --lang=en_US -p ./C/aspell.pws --mode=sgml
C/$(DOC_MODULE).xml" >&2; \
	  echo; \
	  false; \
	else \
	  echo "  done"; \
	fi


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]