Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
user:zeman:interset:how-to-use [2007/03/01 12:20] zeman |
user:zeman:interset:how-to-use [2008/03/10 14:25] zeman How to get the list of drivers. |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | |||
===== Manual ===== | ===== Manual ===== | ||
+ | |||
+ | ==== Installation ==== | ||
+ | |||
+ | If you exist on the ÚFAL network, you can use directly Dan's version here. Otherwise, you need to [[mailto: | ||
+ | |||
+ | **Note:** I decided to put the whole thing under version control. At the same time, I moved it from my lib folder to my project folder. So the current ÚFAL location is ''/ | ||
+ | |||
+ | **Contributions welcome!** If you write your own driver, please share it with others! If you send it to me, I will add it to the package for download here. | ||
+ | |||
+ | === Existing drivers === | ||
+ | |||
+ | Note: This list may not be up-to-date. To see what drivers are currently available on your system, call '' | ||
+ | |||
+ | * tagset:: | ||
+ | * tagset:: | ||
+ | * tagset:: | ||
+ | * tagset:: | ||
+ | * tagset:: | ||
+ | * tagset:: | ||
+ | * tagset:: | ||
+ | * tagset:: | ||
+ | * tagset:: | ||
+ | |||
+ | === Directory Structure === | ||
+ | |||
+ | The drivers are Perl modules and must be somewhere under '' | ||
+ | |||
+ | <code perl> | ||
+ | use tagset:: | ||
+ | </ | ||
+ | |||
+ | Besides drivers, there is a library of useful functions that can be called from within drivers: '' | ||
+ | |||
+ | There is also the driver testing script, '' | ||
+ | |||
+ | |||
==== How to use the Interset ==== | ==== How to use the Interset ==== | ||
Line 6: | Line 41: | ||
You can write your own tag conversion Perl script, and use the Interset driver library. You have to tell Perl where to find the drivers: | You can write your own tag conversion Perl script, and use the Interset driver library. You have to tell Perl where to find the drivers: | ||
- | < | + | < |
+ | setenv PATH / | ||
- | Once the variable is set, writing a conversion script is very easy. For instance, my '' | + | Once the variable is set, writing a conversion script is very easy. For instance, my '' |
<code perl> | <code perl> | ||
Line 16: | Line 52: | ||
while(<> | while(<> | ||
{ | { | ||
- | if(s/< | + | if(s/< |
{ | { | ||
my $tag0 = $1; | my $tag0 = $1; |