Setting up the configuration file
It is necessary to complete this set up procedure in order to provide information for this API to function properly. The output of the program relies on the information put in here. Whether you want exception tables to be generated as a separate document or not is necessary information to put in for output generation.
Be careful if there are going to be many instances of unauthorized paragraphs in the document, especially when exception reports are generated since this may cause memory to run out, even on small documents.If you are uncertain about the amount of unauthorized paragraphs that exist you should first run the documents in statistical mode and figure out how many exceptions there are. If there are a lot you should only run a small number of documents at a time.
An example of an authtags.ini file and list of authorized paragraph tags is shown in Figure 1.
Generate_Exception=Y
-Start_Paragraph_Tags-
0body
0body_compact
0caution_body
3ul3n-emdash
4body
4body_compact
4ul3c-emdash_compact
4ul3n-emdash
AnchorLine
AnchorTop
approval
bookhead
cc-cell_center
cl-cell_left
cr-cell_right
date
figurecaption
footnote1
footnote_normal
footnotenormal
Logo
NewPage
NotePage
product_name
table_head_right
CircuitDescription
-EOF-
1. Unload installation materials. Installation materials may be received on a variety of media (i.e. diskette or tape) in tar format. Normally the software is in the form of a compressed tar file which is received over the Internet using ftp.
uncompress tar_filename.Z
cd /afs/btv/data/memory/admin/apis
tar xvf tar_filename
cd para_audit
2. Tailor Make file. There are several items in the make file that may need to be changed.
F_DIR=/usr/frame4
F_DIR = frame_dir
frame_dir is the directory where Frame is installed on your system. At IBM
Burlington the name of the FrameMaker installation directory changes each time
maintenance is applied. The name will be something like:
/afs/btv/common/vendor/xfm4
L_DIR = $(F_DIR)/fdk/lib/sunxm.os.sparc
L_DIR =(F_DIR)/fdk/lib/ibm.aix.pwr
LD-FLAGS = -L$(L_DIR) -lfapi -lfde -ll
CC=gcc
LEX=flex
3. Build product by entering the command:
make
paraudit.fa.4. Decide where you are going to install production version of API and related files.
/afs/btv/data/memory/bin/fminit/usenglish/APIArea.
afs/btv/data/memory/bin/fminit/usenglish/APIArea/resources.
5. Copy appropriate files to final installation locations.
cp paraudit.fa /afs/btv/data/memory/bin
paraudit.ini to API resources directory.
cp ../distr/tabinsert.ini /afs/btv/data/memory/bin/fminit/usenglish/APIArea
/resources
6.
Modify API client file with an appropriate text editor. If you keep the API client file in the Frame home directory, this would be the file: /afs/btv/data/memory/fminit/usenglish/APIArea/apiclients. Insert the following lines at the end of the file.
<APIclient
<Name Table_Inserter>
/afs/btv/data/memory/fminit/usenglish/APIArea/resources>
<Directory client_dir>
/afs/btv/data/memory/bin/para
<CommandLine executable_dir/tabinsert.fa>
<Products Maker>
<RPCVersion 1>
7. Verify that installation has been successful.