[prev in list] [next in list] [prev in thread] [next in thread] 

List:       aspell-user
Subject:    Re: [Aspell-user] C API and Filter Modes
From:       Johnny Pickle <jpickle () idmcomp ! com>
Date:       2006-09-08 12:59:05
Message-ID: 45016919.1030601 () idmcomp ! com
[Download RAW message or body]

Hello Christoph,

Thank you for your reply.  I couldn't see the forest for the trees,
i.e. I was concentrating too hard on the problem.  After about an
hour after I sent the email I realized all I needed was the context
filter and to set the options manually.  Actually I didn't even have
to do that.  I went back over the documentation for the context
filter and lo and behold "[p]er default the delimiters are set to
C/C++ comment and string constant delimiters."

Thanks,
Johnny

Christoph Hintermüller wrote:
> Hi
> Am Donnerstag, 7. September 2006 16:55 schrieb Johnny Pickle:
>> Hello,
>>
>> A question about the C API and Filter Modes.  I wish to use the
>> ccpp filter mode, but I'm using aspell through its C API.  As I
>> understand it filter modes work by file extension, so is there a
>> way to make a filter mode work with the C API.  There is a config
>> setting but it doesn't seem to work; should it over-ride the MAGIC
>> line in the amf file?  I'm using aspell_speller_check to do
>> spelling checks and I don't see anyway to set a file type.  Am I
>> missing something?  If there is no way to make these work together,
>> is there a third party filter I could use instead or will I have to
>> roll my own?
>>
> Depends filter modes at least need the file extension and if supported 
> and activated the filter modes may also be selected by checkin for 
> characteristic strings and/or bytes in the file. If i do understand 
> you right you want to use the modes to properly select the filter 
> settings but you do not use the aspell main program. There is a 
> static class function which handles all the file inspection. Thus if 
> you still work with files and the C api gives you access to this 
> inspection function let this function do all the mode selection. If 
> you do operate on explicit files you either could generate dummy 
> files used to force the proper file selection. If this is not 
> acceptable you would have to parse the amf files manually properly 
> matching the extension with the filter mode and if necessary call the 
> byte check function to fine tune the mode selection.
> 
> CU
> Xris
> 
>> Thanks,
>>
>> Johnny
>>
>> P.S. Are there ANY third party filters out there?
> 
> 
> _______________________________________________
> Aspell-user mailing list
> Aspell-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/aspell-user
> 
> 

-- 
--------------------------------------------------------------------
Johnny Pickle                                    Tel: (513) 892-8600
IDM Computer Solutions, Inc.                     Fax: (513) 892-4915
5559 Eureka Dr., Suite B                         jpickle@idmcomp.com
Hamilton, OH 45011                            http://www.idmcomp.com
--------------------------------------------------------------------




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic