1

The problem is as follows: I'm writing a brute-force decrypter to crack some supersecret code (it's a contest, not a crime), which turned out to be impossible: just too many nodes in the tree that needs to be searched. To overcome this problem, I thought it might be helpful to check the intermediate 'solutions' to see if they produce (parts of) sentences. For example, I might get something like: "jvabaosajbgasgav..." or "lookslikeitsworking....". The first clearly is gibberish and in that case it wouldn't make any sense to continue cracking the code. The second one can easily be identified by eye as a valid English sentence.

I'm not planning on writing my own spell/grammar checker, so I thought it might be possible to call the spell checker from an open source project like OpenOffice or LibreOffice. I checked the openoffice.org website but I couldn't really find out what to do next. Like, how can I link against their libraries? Are these libraries in the SDK? What functions can I use?

The program I'm writing is in pure C, so I probably need to write a wrapper to call their C++ member-functions, right?

Any help is much appreciated!

4

1 に答える 1

2

Aspell ライブラリのように、そのような統合を念頭に置いて作成されたものと統合することで、はるかにうまく統合できると思います。

于 2012-12-17T10:50:21.167 に答える