On Tue, Jul 15, 2008 at 7:40 PM, Chris McCormick <[EMAIL PROTECTED]> wrote: > On Tue, Jul 15, 2008 at 07:17:48PM +0200, Frank Barknecht wrote: >> Hallo, >> Nicolas Montgermont hat gesagt: // Nicolas Montgermont wrote: >> >> > Has anybody developped a way to check the existence of a word in a given >> > dictionnary? >> > As a basis, I was looking at the aspell command line spell checking tool >> > : http://aspell.net/ >> > This is well suited, but it will need to use the shell object and I'm >> > working under OSX, so I'm not sure of it's long term stability. >> > Aspell can be used as a lib also, so i was wondering if anyone has ever >> > developped an external based on it? >> > Or has anyone some other ideas to do that? >> >> You could use Lua instead. It's like [shell] on steroids, if you >> employ something like "io.popen" like this: >> >> word = get_word_from_inlet() >> cmd = "aspell -c " .. word >> p = assert(io.popen(cmd)) >> result = p:read("*all") >> >> Lua is trivial to build on OS-X. I just did it and I'm a complete OS-X >> idiot. Here's how: You check out pdlua from goto10 subversion, edit >> Makefile.static to let it find m_pd.h and build for OS-X ("PLATFORM = >> macosx"), then do "make -f Makefile.static" while connected to the net >> to let make download and build Lua for you and that's it. OS-X seems >> to come with everything needed. > > Hi Frank, > > Did you have to install the XCode developer kit (or whatever it's > called) to do this? Or is there a built in compiler? What version of OSX > is it? Yo Chris, Ya, you'll need XCode to get gcc and friends... it is free on the install disc or you can download it after making a (free) account at http://connect.apple.com/ ; I think this info applies to all reasonably recent versions of OS X (10.3+ and perhaps earlier)
Cheers Luke > > Thx for the help, sorry for the OT! > > Chris. > > ------------------- > http://mccormick.cx > > _______________________________________________ > [email protected] mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list > _______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
