XEROX LOOKUPINFILES 2 4 1 LOOKUPINFILES 1 4 By: dgb (Bobrow.pa@Xerox.com) Eb       ? ? ?@ ? ?0 ?p ?  p ?           ?                 `    ?        É, $J2 $L" $J" $I2 È,  @ <8! @" @# @" H" 0!  INTRODUCTION The LOOKUPINFILES package is a facility for building quick and easy access to on$line files. It allows search for a target string though all files in a specified list. It finds the target, and brings up the file in a window, with the target selected in inverse video. The file can then be used as the source for text for other documents. It is the basis for the user facilities of ADDRESSBOOK and FIND-CITATION. Its interface is defined by the function: (MakeLookupWindow fileList processName mainWindowRegion iconBM iconMask iconPosition iconTitle) These arguments are used as follows: fileList List of file names. Search goes through these files in order processName Name appearing in PSW for this lookup process mainWindowRegion Region for window showing text found iconBM Bit map for icon when mainWindow is shrunk iconMask Mask for icon iconPosition Position for icon iconTitle Title put under icon to distinguish lookup operation Arguments other than fileList are optional. Calling MakeLookupWindow will construct a Lookup window, and shrinks it to the icon provided. Opening this icon shows the window interface to the search process. To find any string in one of the files, type the string followed by a return. The program will quickly search through the files and show you an occurrence of the string typed. The located string is shown in inverse video. The title of the window will contain the name of the file in which the entry was found. The search ignores case; e.g. "bobrow" matches "Bobrow". The text of the document is scrollable, and any portion can be shift selected into another document. Type carriage return, ^X, or click on Next Occurrence to search further in the files for the same string. If no (further) occurrences are found, the text window will display a message indicating the failure. Searching again after failure will start the search from the beginning of all the files, using the same lookup string. Typing a new string can be repeated as many times as you like. When you are done, just SHRINK the window back to its icon by using the Shrink selection in the title bar . The window below is taken from the use of this package as an online address book. 2 UUUUYUUUUUVUUUUUUUUUUUeUUUUUYUUUUUVUUUUUUUUUUUeUP_hXphY`p3`6hY3p3o϶`hYcllff6pll`yf7hY3ll`7pc3ll`6hY33llff6`plg60hX`p `hXphY`p3`hY3p3ohYcllfpll`hY3ll`pc3ll`hY33llfplghX`p `hXphXp_8` 8`   0` Po70go|||0lm30lllm(Plo0l l00lo0l l0(Plm{0llll00ll{3lll0(Pll`910|||0(P0(_Uh_xx݃8p0a_ݻݿvݷvݻ]۷oݻ~Up;xݻ{vݷv^ݻ]۷oݻ~Uh_~ow~݇_w]۰?~^7ݻ^_w۵_~ݻwnݻnݿ ۶ݻ~Up~~ݻ۷{ݿvݻvݿ۷oݻ~~Uh_;۸݃wwq~8w`~a_UpUh_hXphXp<hX!_<p )`{hX y@3p !{hX !@{p!! H{hX9sq1phXphXphXphX"  @0pSp q0h"ID HQI<x>DFĈH8x DFDHH`""DIDHQH`X㙃pygs}3phXphXphXp hX"`!p$ #p fw88 8hX8"J$S$$EH E p( "Z'$$|`|hX$ "$$!2@A p" "$$S!DHE hX$sp>9py9p"PhX`phXphXppÀ><"hX$@B@fp @9pB" hX0`D$"p @D$B"hX @Db$B"!p$@BDb$B"hXpÀ<8App "! D @hX{xphXphxx``X" p"r4qc hX""LQ p<>D$hX$ 2D$p""N$QhX4s3 p hXphXph 2 Example LOOKUPINFILES window 2 Notes Caching Files When you first create the window, the program will copy the files to {CORE}, significantly speeding up queries. Bugging in the title of the main window with the left or middle mouse button will produce a menu with an option to recache all these files. Editing Your Files To edit the file in which a string is found, click middle button in the title of the main window, and select the option "Edit file named in window title". A TEDIT process editing the file will be set up. This process is independent of the lookup process. To select the file to be edited, rolloff the above item, and select "Select file to edit". A menu of files used by the Lookup process will be presented to you. Selecting one will cause that file to be edited. To make editing changes visible to the lookup process, PUT the file in TEDIT; when it is done, recache the the file in core. To recache just the file edited, (the one specified in the title bar of the window), select the option "Recache file named in window title" in the middle button title bar menu. You can recache all files by selecting the option "Recache all files" in the title menu (a subselection of the item "Recache file named in window title". Adding to the List of Files To add to the list of files being used for lookup, select the option "Add new file" in the title bar menu. This file will be added to the beginning of the list of files to be searched, and cached in core. Deleting a file from the List of Files To delete from the list of files being used for lookup, select the option "Delete file from list" in the title bar menu. This file will be deleted from the list of files to be searched. (LIST ((PAGE NIL (FOLIOINFO (ARABIC) STARTINGPAGE# 1) (0 0 612 792) ((FOLIO NIL (PARALOOKS (QUAD CENTERED) CHARLOOKS (SUPERSCRIPT 0 SIZE 10 FAMILY MODERN OVERLINE OFF STRIKEOUT OFF UNDERLINE OFF SLOPE REGULAR WEIGHT MEDIUM) FORMATINFO (ARABIC)) (174 36 288 36) NIL) (HEADING NIL (HEADINGTYPE RUNNINGHEAD) (84 744 444 36) NIL) (TEXT NIL NIL (84 96 456 600) NIL))) (PAGE NIL NIL (0 0 612 792) ((FOLIO NIL (PARALOOKS (QUAD CENTERED) CHARLOOKS (SUPERSCRIPT 0 SIZE 10 FAMILY MODERN OVERLINE OFF STRIKEOUT OFF UNDERLINE OFF SLOPE REGULAR WEIGHT MEDIUM)) (282 42 72 36) NIL) (HEADING NIL (HEADINGTYPE RUNNINGHEAD) (84 744 444 36) NIL) (TEXT NIL NIL (84 96 456 600) NIL))) (PAGE NIL NIL (0 0 612 792) ((FOLIO NIL (PARALOOKS (QUAD CENTERED) CHARLOOKS (SUPERSCRIPT 0 SIZE 10 FAMILY MODERN OVERLINE OFF STRIKEOUT OFF UNDERLINE OFF SLOPE REGULAR WEIGHT MEDIUM)) (282 42 72 36) NIL) (HEADING NIL (HEADINGTYPE RUNNINGHEAD) (84 744 444 36) NIL) (TEXT NIL NIL (84 96 456 600) NIL)))))2x,$$ , ,,8, ,8H PAGEHEADING RUNNINGHEAD HELVETICA MODERN MODERN MODERN MODERNLOGO  HRULE.GETFNMODERN  HRULE.GETFNMODERN  HRULE.GETFNMODERN  HRULE.GETFNMODERN  HRULE.GETFNMODERN  BMOBJ.GETFN3MODERN  P|`%G:62?&R HRULE.GETFNMODERN T BMOBJ.GETFN3 HRULE.GETFNMODERN  HRULE.GETFNMODERN  '2mz