|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CHAPTER 7 |
REFERENCE - SYSTEM OPTIONSThe following chapter provides more detailed information on miscellaneous functions that are found on the System Options Menu. These operations provide additional support to the edit and print operations as well as provide assistance to the system manager. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ADD A DIRECTORY | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Purpose: |
Enables the creation of a new document directory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Type Of Operation: |
Menu Item | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Keystroke(s) Required: |
Select <A> on the Directory Options menu. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| How Is It Used: |
Adding a new directory to the TK-WRITER system simply requires the letter designator, directory description and an optional password to be entered on the Add a New Directory input screen. The single or double letter designator can not be already in use. All 52 upper and lower case characters can be used. Provide the directory with a description that will identify it on the Directory Selection screen. This description may include name, department or type of documents that will be stored in it. The password is optional. The password will lock out users who are unable to provide the password which can be up to eight characters in length. Make sure you remember the password yourself, or you may be locked out of your own directory. Note: Your system manager can assist you if you forget your password. Leaving the password blank will enable free access to the directory by TK-WRITER users. Of course it is also possible to protect individual documents through the use of document specific passwords. Use the Change Directory Description option to make changes to the description or password of any directory. (It is necessary to know the current password of a locked directory, before a new password can be assigned). | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
COPY A DOCUMENT | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Purpose: |
Permits the entire document to be copied to another document without changing the first. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Type Of Operation: |
Menu Item | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Keystroke(s) Required: |
Select the Copy Document option on the Special Options menu. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| How Is It Used: |
The Copy Document option will request the document number of the document to be copied. The directory from which the document is to be copied is already displayed. NOTE: To copy a document, the user must first have made the directory to be copied from, current. It is not possible to copy from any other directory other than the directory which is current. The description of the source document is shown so that you can verify the correct document. You will then be asked to enter the document that you want to copy to. The letter of your current directory will be presented to you but you may type over it to change to another directory if you would like. In this way you may copy from one directory to another. The document description of the document you are going to copy into will be shown if it already exists or else it will say "new document" indicating that you will be creating a new document with the copy. You will then be requested to enter a <Y> for YES if you want to proceed with the copy. Verify that the source and target documents are correct before proceeding. If there is a mistake enter a <N> for NO and the copy will be aborted. If the target document already exists, the copied text will be added to the end.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DELETE A DIRECTORY | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Purpose: |
Enables an empty directory to be removed from the directory selection screen. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Type Of Operation: |
Menu Item | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Keystroke(s) Required: |
Type <D> on the Directory Options menu. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| How Is It Used: |
You may delete a directory from TK-WRITER only when it is empty. If you want to delete it and there are documents present, they will first need to be removed. Select the directory to be deleted. You will be prompted to enter a <Y> for YES if you want the selected directory deleted.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DELETE A DOCUMENT | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Purpose: |
Enables a document to be removed from a directory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Type Of Operation: |
Menu Item | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Keystroke(s) Required: |
Enter <D> from the Special Options menu. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| How Is It Used: |
Be sure that the proper directory is current before beginning. Select the Delete a Document option on the Special Options menu and select the document to be deleted. If the document contains a password, you will be required to enter the password. Enter <Y> for YES if the selected document is the document you want to delete. Should you select the wrong document or you have a change of heart, type a <N> for NO and the document will be left intact.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
EDIT DIRECTORY DESCRIPTION | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Purpose: |
Enables modifications to the directory description and/or password. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Type Of Operation: |
Menu Item | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Keystroke(s) Required: |
Type <C> on the Directory Options menu. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| How Is It Used: |
Select the Change Directory Description option. The current directory will be shown on the screen. Press <RETURN> to accept it, or change it to another directory code and press <RETURN>. The current description will be displayed on the screen. If there is a password associated with the directory, then you will be requested to enter it before you can make any further changes. You can then change the description and/or password. Press <RETURN> to return to the menu. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
EDIT DOCUMENT DESCRIPTION | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Purpose: |
Enables the document description, password and default word wrap mode to be changed. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Type Of Operation: |
Menu Item | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Keystroke(s) Required: |
Enter <E> on the Special Options menu. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| How Is It Used: |
Select the Edit Document Description and Password option. Select the appropriate document. You will then be shown the document description. If there is a password associated with the document, you will be required to enter the password before changes can be made. Change the description, password and word wrap mode as needed; then, press <RETURN> until you are returned to the menu. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
MAINTENANCE OF DICTIONARY | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Purpose: |
Permits the user to add, subtract or correct words in the spelling dictionary. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Type Of Operation: |
Menu Item | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Keystroke(s) Required: |
Type <M> on Special Options menu. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| How Is It Used: |
You will first be prompted for the beginning letter or letters. This allows you to start anywhere in the dictionary and display the contents on the screen. If, for an example, you type <lam>, then you will be shown the words in the dictionary that start at "lam" and so on, just as if you were looking them up in a book. You have to press <RETURN> after you type the letters. You will be shown three columns of words that are currently in the dictionary. You now have four options:
Words are added to the dictionary by either adding words in this option or by "learning" words in the Spelling Check function. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PAGINATION PREVIEW | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Purpose: |
Allows for modification to the page breaks before the document is printed. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Type Of Operation: |
Menu Item | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Keystroke(s) Required: |
Type <P> on the Special Options menu. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| How Is It Used: |
Pagination Preview allows you to look at the document page by page to verify that all of the page breaks are in order. You are first required to select the document to be checked. Then you will be required to make any necessary modifications to the Printer Parameters screen. Make sure that you set the top and bottom margins and the lines per inch correctly as these values will affect the number of lines that will be included on the page. You will then be asked whether or not you want to remove any previous pagination. To understand this question, you will first have to know a little of what is happening in the Pagination Preview process... TK-WRITER is going to walk through the document page by page just as if it were printing it. When it recognizes that there are enough lines to fill a page, or if a ~P print control character is encountered, it will stop and request a response from you. You will be able to see the last few lines of the page plus one or two lines that will be printed on the next page. You are now able to go ahead and accept the page break that it computed or you may move the break up one or more lines so that it will end sooner. You cannot change it to break after the computed page break. If you make a change to the normal page break, TK-WRITER will insert a new line of text containing a ~ PC to tell the printer that the page break has been overridden. If at a later time, you add or delete text from the document or perhaps change the Print Parameters so that the page breaks are changed, the computer generated ~ PC will most likely be in the wrong place. So, that is why you are asked if you want to remove any previous pagination. If you answer <Y> for YES, TK-WRITER will first remove any ~ PC lines that exist in the document before it will go any further. Now you are ready to preview the document (if you haven't fallen asleep reading this explanation). First enter the page number that you want to start on. Generally you will start on page 1. You will be shown the text of the page with an indicator for the end of the page. If you prefer that the page be broken at a different line, move the pointer with the up and down arrows. Press a <C> when you are satisfied and want to continue with the next page. Press <R> to return to the menu. Once you have finished with the preview, any of the ~ PC that have been inserted in the document are a direct result of your moving the last line pointer and pressing a <C> to continue. Accepting the page break as shown will not result in the insertion of ~ PC. Printing the document should result in exactly the same paging as you previewed. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
REPAIR DOCUMENT | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Purpose: |
Permits the user to repair a document that has become corrupted. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Type Of Operation: |
Menu Item (also found in OTHER OPTIONS menu) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Keystroke(s) Required: | Type <R> in the Print Options menu. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| How Is It Used: |
The Repair Document option (or Fix Document option in the OTHER OPTIONS menu) scans the document for problems associated with imbalanced pairs of video attributes, line drawing, invalid backward pointers and other structures that may be corrupted because of failures in the software, operating system or hardware. Use this option if you experience a program error or unusual underlining, bolding or line drawing activity within the document. The Repair Document option requires that you first select the directory and document. It will then scan through the document and report the number of corrections (if any) at the end. If you still experience a program problem it is most likely attributed to a database degradation of some sort and you should have the ^TKWP file checked for errors. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SYSTEM MANAGER'S MENU | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Purpose: |
Permits the system manager to configure and maintain the TK-WRITER environment. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Type Of Operation: |
Menu Item | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Keystroke(s) Required: | Type <S> in the SPECIAL OPTIONS menu. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| How Is It Used: |
The System Manager's Menu provides seven options that help control TK-WRITER. Since some of these options are irreversible, it is recommended that the access of this menu be restricted. The first option listed below allows for this restriction.
FONT FILE DEFINITION In order to conveniently use the printer's special features such as fonts, page orientation, etc., you need to define the these features in the Font File. Sample files may be ordered from PG&A for a number of the popular printers to which you can add other features, or you can define it all yourself. Here is how:
1st line - descriptionThe MUMPS code on line 2 applies to the printer classes listed on line 3, the code on the 4th for the classes listed on line 5, and if necessary you can have lines 6 & 7, etc. Two switches can be included on line 1 after the description. The first is a /I switch which indicates that additional "Input" is required for the font definition. The /I switch is followed by one or more input statements such as:
/I=Enter Row-# Column-#The "#" indicates where the user may enter a number. Now these inputs are assigned a a temporary variable that can be used in your MUMPS code. The first input is P1, the second is P2, and the third is P3. The second switch is a /D and indicates that a font download is needed to activate this font. The sample printer function in following figure gives you an idea how you can define other printer features. Note that the MUMPS code illustrated doesn't really do anything useful. It will just write some useless text on the printer, but it should serve to show how the P1 and P2 inputs can be tied to the /I flag.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CHAPTER 8 |
INTEGRATION NOTESAlthough most of this manual addresses the use of TK-WRITER as a general purpose word processor, there are in fact many other important ways to use TK-WRITER in an integrated environment. If you are old enough, you might remember a time when computers only accepted numbers or perhaps a limited amount of alphanumeric input with a preponderance of numbers. At that time computers were not designed to easily accept, store, manipulate and output free text. But with the advent of inexpensive memory and disk storage, new computer languages, efficient input and output devices, and faster computers we have seen the "number machines" changed into "database machines". The importance of being able to easily enter and edit free text is becoming much more important. Perhaps one of the most suitable tools for processing free text is the word processor. TK-WRITER provides the system integrator just such a tool to aid in the creation, editing, and printing of free text data. It offers the following possibilities:
The remainder of this chapter explains in more detail how to use TK-WRITER to accomplish each of these integration methods. There are as many ways to use TK-WRITER as there are applications. It is only when the systems integrator is familiar with the options that he or she will be best able to fit the software to the particular needs of the users. If the following information is not clear or not adequate, please feel free to call us for more help. Incidently, the following material requires some knowledge of MUMPS programming.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TK-WRITER |
The Document editor of TK-WRITER may be called directly from the user's
applications for general purpose text editing. This feature provides the
user with the following advantages:
where each line of text is delimited with three ASCII 01 characters ($C(1)) separating the back pointer from the text. The back pointer is the value of the subscript of the preceding entry. The subscripts start their numbering at .04 and on up. All subscripts between 0 and .03 are used by the editor for storing tabs and other control information. (You may have the control items between 0 and .03 and the delimiters in the text removed by TK-WRITER if you include the "ST" parameter in TKWPOPT.) (Notice that the subscripts of the global are all numeric, but do not necessarily have even spacing. Insertions, deletions, and general editing will cause various spacing. You must use an $ORDER to traverse the global.) Here is an example of a simple interface:
S TL=10,MG=60,NM="",TKWPD="^TEXT" Another example with a full screen editor, limited options and stripped control at the end would look like:
S TL=4,WO="",MG=76,TKWPD="^TEXT(12)" An example where the text is to be entered directly into a patient file, a limited number of items in the OTHER OPTIONS menu are selectable and bolding and underlining is available would look like:
S TL=9,BL=18,WO="",MG=70,TKWPD="^PAT(PN)" If your application requires multiple edits of the same information over and over again, you may choose not to remove the control information but leave it intact for the next edit. If so, you may access the text with a $PIECE function as follows:
$P(@TKWPD@(X),$C(1),4) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PRINTER |
Although the globals created using the editor of TK-WRITER are available
for whatever use the system designer may see fit, printing of these
globals, particularly if they contain video attributes, may be somewhat
difficult without the help of the TK-WRITER print routines. TK-WRITER
converts bolding and underlining to the appropriate escape sequences
required for each printer type. Line drawing and multinational character
sets also need to be converted to match the appropriate printer. Using the print interface is very easy to implement. Basically all that is required is to define the printer and the global and call the print routines at the appropriate entry point. (TK-WRITER will print whether or not the backward pointers are still intact at the beginning of each line. You can print plane ASCII files.) There are two entry point depending upon the type of interface that you require:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
LIST | TK-WRITER incorporates two forms of list processing, the first being patterned after the familiar "Mail Merge" concept which is entirely self-contained within TK-WRITER, and the other which is called "List Processing" and which uses the user's database as a source of the list. The "Mail Merge" does not require any interfacing and is explained in the Printing Reference chapter. List processing in TK-WRITER works very similiar to "Mail Merge" except that the data is provided from the user's database rather than another document. As in "Mail Merge" the data can be inserted into the document by either using "stops" or glossary text or both. In order for TK-WRITER to be able to fetch the data from the user's database, there needs to be some rules spelling out how the database is to be traversed and how the data is to be extracted. To accomplish this TK-WRITER requires a MUMPS global be defined in the following format:
^TKWPLIST(LIST) ^TKWPLIST(LIST,"FETCH") Once a valid STRT is returned from NEXT and the value of X is not equal zero, then TK-WRITER executes the FETCH code. The FETCH code defines the data for the "stops" and or glossary text. If the data is to be inserted into "stops" within the document, then the FETCH code needs to define D(1), D(2) . . . D(n) for as many items as are needed. If the item is be left blank, set D(X) to a null. If the stop is alone on the line and the D(X) is set to a single space ( D(X)=" " ) then the line will be skipped altogether and the remainder of the document will be moved up one line. Glossary text needs to be passed in the GLOSS variable with the subscript defined as the name of the glossary item, i.e., if the document references ~ $NAME then a variable GLOSS("NAME") should be defined. Glossary items that are not defined are left blank, but you should watch that GLOSS is not defined from the previous data set. If there is a chance of some items not being defined in some of the data sets, it may be a good idea to kill the GLOSS variable at the beginning of the FETCH code. An example of these variables and of list processing in general can be shown by executing:
D DEMO^TKWPP7This code will create a TKWPLIST(1) node with both a FETCH and a NEXT node defined. You may use this demo as a start and modify it to your particular needs. |