aspell-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Aspell-user] javadoc spell check


From: Christoph Hintermüller
Subject: Re: [Aspell-user] javadoc spell check
Date: Sun, 20 Mar 2005 20:38:11 +0100
User-agent: KMail/1.7.1

Hi
Am Sonntag, 20. März 2005 18:55 schrieb Ivan Villanueva:
> Hello list,
> is there any filter to check javadoc documentation in java source files?
> 
If you are using aspell >= 0.60.x the following holds
Afaik Javadoc is enclosed within javacomments which are similar or equal to 
c/c++ thus try the context filter which per default looks for c/c++ comments.
Further look at the filter modes and how to use them to customize the 
behaviour of different filter. If you want to limit the checking to javadoc 
parts only and ommit any other comments than simply call aspell as follows

  aspell --add-filter context --rem-all-context-delimiters \
  --add-context-delimiters "/**,*/ //*,\0" -c <your java file>

the \ only indicates that the line is continued in the one below. Further 
before using the above line check the manual on how to properly specify the 
delimiters. Allthought i coded the entire filter i'm not quite shure if the 
above really holds, especially if the `,' really can be used to separate open 
and close context markes ;-(
Possibly you have to change the `\0' indicating that the entire context is 
closed by the end of line to `\\0' in order to make the above line work 
properly ;-(

I aspell behaves as you exspect than try to combine the filter related 
commandline arguments within a filter mode file and submitt it to Kevin so 
that he is able to include it in the next release.
cu
Xris




reply via email to

[Prev in Thread] Current Thread [Next in Thread]