Skip to content

LkbTrollet

PavelMihaylov edited this page Jun 16, 2006 · 5 revisions

Trollet is a wrapper around LKB aiming for better multilingual support and a cleaner, more logical interface. For a short summary on some issues with multilingual grammar development with LKB and how Trollet can help, see [http://lingua.bash.info/trollet/trollet.pdf].

Installation

First of all you need to have LKB installed and working. It will be easiest if you have it in your path, so that Trollet can find it automatically. You can check that by opening a terminal window and typing lkb. If LKB starts then it's in your path, if you get a message like bash: lkb: command not found then it's not.

Alternatively you can set an environment variable TROLLET_LISP to the full path to the LKB binary (e.g. /home/username/delphin/bin/lkb) or to Allegro in case you use LKB from source. To do that you need to add export TROLLET_LISP=/full/path/here/lkb to your .bash_profile file.

On Ubuntu Linux (will probably also work on other Debian-based distributions):

Add this to your /etc/apt/sources.list:

deb http://lingua.bash.info/dapper/trollet binary/ (if you have Ubuntu Dapper) BRorBR deb http://lingua.bash.info/breezy/trollet binary/ (if you have Ubuntu Breezy)

Alternatively you can use the Synaptic package manager: go to System/Administration/Synaptic package manager; then choose Settings/Repositories, Add, Custom and paste one of the above lines in the box.

Then you need to update the package list and install the package called trollet (either via Synaptic or by typing apt-get update && apt-get install trollet in the shell). If you have updates enabled you will get automatic updates for Trollet too.

Once you have it installed you can start it either via the menu (Applications/Development/Trollet) or by typing trollet in the shell.

You can install LKB the same way too (package lkb). The updated version of LUI is provided by package lkb-yzlui. This is experimental and it works, but I haven't tested all the LKB (and helper programs') features out are. Hopefully I will release updates regularly.

On other Linux distributions:

Open http://lingua.bash.info/trollet/ and get the latest version (normally in a file called trollet-NNN.tar.bz2, where NNN is the version number). You can unpack that file anywhere and you'll get a directory called trollet-NNN. Run the trollet file in that directory (e.g. type ./trollet from within the directory).

Most probaly you will need to install the Perl modules Gtk2 and IPC::Run (available standardly in most newer Linux distributions). Ask the local Linux/Perl guru if you need help.

The updated LUI

(to be integrated with the rest of the LUI stuff once I have more time)

You can get a Linux binary of the updated LUI from [http://lingua.bash.info/trollet/] (the file is called yzlui). You have to put that file in $DELPHINHOME/lkb/bin/linux.x86.32/ and make it executable (e.g. chmod +x $DELPHINHOME/lkb/bin/linux.x86.32/yzlui). This will overwrite your old LUI binary so you might want to rename it to yzlui.old first.

Ubuntu users: If you choose to install the lkb and lkb-yzlui packages mentioned above you don't need to install the LUI binary manually.

Trollet will use LUI by default, though you can turn it off by saying (lui-shutdown).

See LkbLui for more info.

Clone this wiki locally