Message: previous - next
Month: February 2014

koffice - kthesaurus - with WordNet - nice!

From: "David C. Rankin" <drankinatty@...>
Date: Sun, 16 Feb 2014 00:18:24 -0600

  Testing kthesaurus functionality, I built the optional dependency with latest
WordNet-3.0 and then updated library database files to the latest 3.1 version of
the files. (3.0 is last release - 3.1 is a database only update). It works very
well and adds a whole new aspect of thesaurus functionality. It provides the
synonymous words in sentence context. Here a two screenshots of both the generic
kthesaurus output and the WordNet extension:

  If you want to include WordNet in your build, you will need 'tk' as a
dependency, then you will need:


3.1 Database Update:

Then build with:

./configure --prefix=/usr --mandir=/usr/share/man

## change screwy location of dictionary and other dirs:

  sed 's:#define DEFAULTPATH "/usr/dict":#define DEFAULTPATH
"/usr/share/wordnet/dict":' -i config.h
  sed 's:"/usr/local/WordNet-3.0/lib/wnres":"/usr/share/wordnet/wnres":' -i src/wnb

The continue with packaging (moving default dirs to logical place and update to
3.1 database files):

  make DESTDIR=$pkgdir install
  mv $pkgdir/usr/doc $pkgdir/usr/share/wordnet
  mv $pkgdir/usr/lib/wnres $pkgdir/usr/share/wordnet/wnres
  rm -fr $pkgdir/usr/include/tk

  # Replace dictionary files
  cp -a $srcdir/dict/ $pkgdir/usr/share/wordnet/dict
  rm -fr $pkgdir/usr/dict

  install -D -m644 $srcdir/wordnet.desktop
  install -D -m644 $srcdir/wordnet.png $pkgdir/usr/share/pixmaps/wordnet.png
  install -D -m644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING

Works well. About a 12M package and 50M install.

David C. Rankin, J.D.,P.E.