Previous Next Contents

Index editing

After selecting an index by clicking on its title one can edit it with the tools listed in the Edit menu (Fig.13).
Fig.13. Index editing tools.

Trim-words

Trimming an index is the procedure of eliminating certain words of user`s choice. The words to be trimmed are in the file word.trm located in the index directory - Index_i, where i is an integer. ./Pion_Home/Index_i/word.trm. The file ./Pion_Home/Index_i/word.trm can be edited with any word editor. In particular, one can start editing ./Pion_Home/Index_i/word.trm by clicking on the menu item Trim-words. Words in word.trm have to be separated by spaces and new lines.

When the desired word.trm is created one can start trimming procedure with Trim from the Index menu (Fig.14).

Fig.14. Index menu after selecting an index.

URL list

URL list (.Pion_Home/Index_i/URL.lst) is created and then maintained by PION. It contains all URL entries that are present in the index together with the specific information about indexing any particular URL. For example, the following URL.lst consists of 4 entries.
{
URL=http://finance.yahoo.com
DEPTH=0
RECURSIVE=No
MIRROR=Yes
}
{
URL=http://finance.yahoo.com/q?s=WCOM&d=t/index.html
DEPTH=0
RECURSIVE=No
MIRROR=No
}
{
URL=http://finance.yahoo.com/q?s=LEH&d=t
DEPTH=0
RECURSIVE=No
MIRROR=No
}
{
URL=http://finance.yahoo.com/q?s=SCH&d=t
DEPTH=1
RECURSIVE=Yes
MIRROR=No
}

Each entry is embraced in the brackets {,} and consists of four lines: URL.lst is used by PION for rebuilding indices. To rebuild selected indices one needs to use Rebuild from the Index menu (Fig.14). One can select several indices.

Index log

To view Index.log file for the selected index choose Index log from the Edit menu (Fig.13). Index.log contains the information recorded by PION during the index maintenance. One can delete any entries from Index.log but the file Index.log should be always present in the index directory. Do not delete the file itself.

Icon

The index icon can be changed by selecting Icon from the Edit menu. The size of the icon will be automatically adjusted by PION. PION can handle JPEG and GIF images.

Title

To change the index title choose Title from the Edit menu and type a new title in the text-field of the corresponding dialog.

Optimize

To optimize the index (i.e. create xword.ind) select Optimize from the Edit menu.

Ignore Case

It creates the case insensitive derivative for your index. If you choose this option than the derivative der1.zip will be created in your index directory. Each time during the search of this index you can choose whether you want to perform case sensitive or insensitive search.

Annotation

This option allows you to edit annotations for the chosen index.
Fig.15. Edit annotations.

First you need to select entries, then If you push the button Annotate you will be asked whether you want to edit those entries manually or automatically. If you choose to edit automatically then PION will make annotation for you. Otherwise, if you choose manual annotations, then you will need to edit annotations by hand.

RmEntries

RmEntries from the Edit menu starts the dialog for removing the entries from the selected index. The entries are selected by clicking on the corresponding lines. Then pressing the Remove button will delete the chosen entries from the index.

Preferences

The Edit menu item Preferences opens with the built in editor the file Index.conf for the selected index. An example of Index.conf is as follows.

#TRIMMED is set to Yes
#Tue Feb 29 13:18:36 MST 2000
OPTIMAL=Yes
TITLE=GNU
COMPRESS=Yes
BROWSER=/usr/bin/netscape
ICON=/home/devel/.Pion_Home/images/life.gif
TRIMMED=Yes
START_ANNOTATE_AT_LINE=15
NUMBER_OF_CHARACTERS_IN_ANNOTATION=330

All lines in this file have been already described. However, we notice that one can specify an html-browser for the selected index, i.e., different html-browsers can be used for different indices. On the other hand, if BROWSER is not defined, then PION uses the default browser defined in Pion.cfg.


Previous Next Contents