.f3 - # - Chapter 2 - Customizing .po5 .rm70 .mt5 .mb5 .pl66 .tc 2. CUSTOMIZING ........................................# 2. CUSTOMIZING Customization falls into two categories - those items that you can change while Word Fugue is running, and those items that you must run the installation program to change. .TC Options Configurable From Inside Word Fugue .........# Options Configurable From Inside Word Fugue This is accomplished by running Word Fugue. If you have a floppy system, make sure that the default drive is A: by typing in A: If you have a hard disk system, make sure that you are in the Word Fugue directory by typing CD C:\WF if your directory was WF or the appropriate name Now you run Word Fugue by typing in at the DOS prompt WF Word Fugue will load, and come up with a screen showing among other things . You will see a comment  for menus in the top left corner. Press Shift and Function key 1 to activate the pulldown menu system, followed by "O" (that is the letter O) for options. Each of the categories may be chosen by pressing the letter that is highlighted, or by using the arrow keys to move the highlight bar over the appropriate option and pressing Enter. Most options are covered under their own sections, but those relating to Customization are discussed below. Configured options are saved by pressing S (for Save Setup) while on the options menu. .tc Margins ...........................................# Margins Select this menu by typing M for Margins on the Options menu. The margins available are: Left margin - where characters you type will be indented to. Right margin - if word wrap is active, characters typed past this will wrap onto the next line. Top margin - the number of blank lines to allow down from the top of the paper before printing. The headings will print here. Bottom margin - the number of blank lines to leave at the bottom of the page. The footers will print here. Page length - the number of physical lines that fit on a page. The top and bottom margin will be subtracted from this to arrive at the appropriate number of lines to print per page. .tc Format Options ....................................# Format Options Select this menu by typing F for Format options on the Options menu. The Format Options available are: Justify - if word wrap is active, the lines of text will be spread out between the left and right margins, so that all right hand words will line up on the right hand margin. When this option is ON, the second line of the edit screen will show justify. Word Wrap must be ON as well. Turning this On will turn Word Wrap on if not ON already. Word Wrap - This determines what happens when lines of text go beyond the right hand margin. When Word Wrap is ON, the line will be broken at a convenient place, and the additional words will be placed on the next line. When Word Wrap is active, and Continuous Reformat is not, the second line will show Wrap. Autoindent - This determines where the cursor will go when you press Enter. If Autoindent is ON, the cursor will line up underneath the start of the line above. If it is OFF, the cursor will return to the left margin. When this option is ON, the status line will show Indent. This option is very useful for programmers. Insert Mode - When Insert mode is ON, newly typed text is inserted into the line, pushing aside characters to the right of the cursor to make room. If Insert mode is OFF, the newly typed characters overwrite existing text. When Insert is ON, the status line will show Ins, while if Insert is OFF, the status line will show Ovr. Page Breaks - When pagination is activated, the right two columns of the text window will be devoted to showing page breaks. The characters žø in those columns indicate that the corresponding line is the first printing text line on its page. In addition, the status line for the window will indicate what page number the cursor is on. Column Mode - When Column mode is OFF, all text between the start block marker and the end block marker is moved/copied/deleted. If Column Mode is ON, the start marker is considered to mark the top left corner of a rectangular block, while the end marker is considered to mark the bottom right corner. If the Block end column is less than the block start column, no block will be visible. If Column Mode is ON, the status line will show either Cols if Column Replace is OFF, or C Rep if Column Replace is ON. If word wrap is ON, columns of text can be delineated by the use of < and > or ] in the ruler line. In this case, columns of text will wrap independently of other columns, paragraph reformat will only reformat text within the column boundaries, text will only insert within the column (other columns will not be displaced), and delete character and delete word will only delete within column boundaries. Replace Column - Column replace mode only has meaning in conjunction with Column Mode being ON. When Column Replace Mode is ON moved and copied blocks will overwrite any text in the area they are copied to, and delete and move will space fill the deleted text. When Column Replace mode is OFF, moved and copied blocks will push existing text to the right, and delete and move will suck text left to fill the hole left by the deleted text. Squash Line On Wrap - By default, WordFugue compresses extra spaces out of any line before it is wrapped. This feature is required in order to "unjustify" text that has previously been right justified. However, in some cases the compression will remove desired spaces, as in the case of aligned columns of figures. When this toggle is OFF, extra spaces will not be removed from lines being wrapped. Wrap compression is saved as a WordFugue default. However, when compress wrap and continuous reformat is on, you may find that as fast as you type several spaces, Word Fugue may remove them. Auto Reformat - When this is ON and word wrap is set, the current paragraph is reformatted as you edit it. If you press any key, reformatting stops until you pause. The pause is about a second, and in most cases, the paragraph can be reformatted before you continue typing. When this is OFF paragraphs are not reformatted unless you use the Reformat Paragraph command. .tc Ruler Line ........................................# Ruler Line Select this menu by typing T for Tabs on the Options menu. The Tab Options available are: Set Line - The tab settings will be initialized based on the contents of the current line of text. The start of each blank-delimited word will set a tab at that column. Any other tabs will be cleared. By using this command in concert with the Put Tabs command, you can store a custom tab line as part of a document and easily use it later. You can return to the default evenly spaced tabs by activating the Options Tabs Restore even menu selections. Put Line - The tab settings etc of the ruler line are stored into the current window as a formatted text line. The line begins with the WordFugue formatting character (.), and will be ignored during printing. Use this command in concert with the Set tabs command to store a custom tab line as part of a document for later use. Restore Even - Tabs will be set on an even spacing as determined by the current default tab spacing. Any other tab settings will be cleared. Edit Ruler - Tab positions and columns can be interactively edited using this command. The cursor will be moved to the current window's tab line display. Use the cursor keys or the tab key to move along the tab line. Pressing the space bar will toggle a tab setting on or off, pressing the key will add a tab, pressing the key will delete a tab at the cursor position. Press when editing is complete, or to undo any changes made. Display Ruler - Toggling Display Ruler ON reserves one line of the current window for display of tab settings and margins. The tabs and margins can be active whether or not the tab line is visible. Fixed Tabs - When fixed tabs are ON, tab positions are taken from a table of columns that you can set to even spacing or customize through various tab commands. When fixed tabs are OFF, tab positions are based on the contents of the text line above the current line, just like the Turbo Pascal editor. Tab Size - By default, a tab is placed after every eight columns of text. This tab size is also used when files containing tabs are read into WordFugue. Change the tab size and use the Restore even command to initialize a different set of regularly spaced tabs. .tc Load File Options .................................# Load File Options Select this menu by typing L for Load file options on the Options menu. The Load file Options available are: Home Directory - WordFugue uses several files in its operation. These contain the current printer definition, default macros, and this help file. In order to run WordFugue from a drive or directory other than where these files are located, you will need to set up a Home Directory. The home directory specifies the location of the optional WordFugue support files on your system. The following files should be kept in that directory: WF.HLP WF.MAC *.PDF WF.OVR WF_MAIN.DIC WordFugue will operate without the use of these files (except the Overlay file WF.OVR), but in that case certain program features will not be available. After the home directory is set, it can be saved with WordFugue's Save Setup command. If you operate from floppy disks, the home directory should be set to the drive you will load the program from (usually A:). This drive should always have in it a disk with WF.OVR on it. File Extension - If you edit many files with the same extension, such as .DOC, you should enter that value for the default extension. WordFugue will automatically supply the default extension whenever you respond to a filename prompt without entering an extension. The extension you enter should not include a period or any DOS wildcards, and is limited to three characters. Expand Tabs - When tab expansion is ON, any tabs encountered upon read-in of a file are expanded into spaces, using a tab spacing that you specify. If tab expansion is OFF, WordFugue leaves the tabs intact. In this case, WordFugue does not expand tabs as it displays them, so these will be displayed on the screen as I. Write Tabs - By default, WordFugue does not write tab characters in files saved from the editor. If Tab Writing is activated, WordFugue will translate sequences of spaces to tabs in order to save disk space for the output file. Tabs are computed using the fixed spacing currently set for fixed tabs. Multiple spaces found within pairs of single or double quotes (as used in Pascal or C source code) will not be converted to tabs. Strip Hi Bits - When Hi-bit strip is ON, the most significant bit of each character read from the disk will be set to zero. This is useful when reading in files previously generated in WordStar document mode. Note that stripping the high bit will also affect any usage of the IBM extended ASCII character set, such as the line drawing characters. Undo Limit - This specifies the maximum number of lines of deleted text that will be stored in the Undo buffer. If Undo limit is 10, and you delete 15 lines, the first five lines deleted will be lost. Whenever lines are Undeleted, that space is recovered for the undo buffer to reuse. Make Backup - When this is ON the old version of the file (before editing) is saved with the extension of .BAK When this is OFF the old version is not saved. .tc Display Options ...................................# Display Options Select this menu by typing D for Display options on the Options menu. The Display Options available are: Snow Control - When Snow Control is ON, WordFugue avoids the screen interference patterns called "snow" that are produced by certain display adapters, notably the IBM Color Graphics Adapter. For other color adapters, the Snow Control can be turned off. This improves screen updating performance considerably. Block Cursor - WordFugue offers a choice between a blinking hardware cursor and a solid unblinking cursor. The color of the block cursor can be set via the Options Colors menu. This Block Cursor can be very useful on Lap Top PCs. 43 Line Mode - On computers equipped with an Enhanced Graphics Adapter, WordFugue can display 43 lines on the screen. Toggle this option ON if a longer text display is desired. Font Display - When Font Display is enabled, print formatting commands that control font selections will not be displayed on-screen. Instead the marked text will be displayed in a color or attribute corresponding to the font. This "what you see is what you get" mode allows more accurate alignment of tables, and avoids multiple print cycles to correct formatting commands. The screen colors for each font may be adjusted on the Options Colors menu. When font display is enabled, the control characters that select the fonts are not visible. However, the cursor can be positioned over the control character, and it can be deleted if desired. The WordFugue hardware cursor grows to a large block when it is positioned over the control character. The value of the control character will be displayed at the right hand edge of the window status line when the cursor is positioned over it. WordFugue computes the display of on-screen fonts while it is waiting for you to enter keystrokes. As a result, if you enter new text it may take a short period of time before control characters disappear and fonts are drawn in their final colors. Key Help - When Key Help is ON, WordFugue will display the command sequences that correspond to each menu selection while you are browsing through the menu system. This can serve to familiarize you with the quick keystrokes and speed up your editing. Zoom State - The state of this toggle determines WordFugue's default behavior when more than one window is on the screen. When Initial Zoom State is OFF, multiple windows will appear simultaneously on the screen, that is, they will not be zoomed. When Initial Zoom State is ON, multiple windows will be zoomed. The last file opened will be visible on the screen, and others will be hidden behind it. Initial Zoom State is saved as a WordFugue default. The normal zoom window command may be used at any time, regardless of Initial Zoom State. Set Paging Amount - This command will set the Page Up and Page Down amount to Page - move a full screen page at a time  Half - move only half a screen page at a time  Csr - move so that cursor is at top or bottom of screen or a full screen page if it is already there Set Colors - All of the editor colors can be customized to your liking. Independent color settings are available for normal text, block marked text, window status lines, the prompt line at the top of the screen, text in menus and prompt boxes, menu frames, the highlighted character by which each menu item may be selected, the currently selected menu item, the block cursor (when active), and each of the five selectable fonts. The colors that you select are saved with WordFugue when you execute the Options Save setup command. .tc Save Setup ........................................# Save Setup Once you have finished with the options, you will want to save these values in the executable of Word Fugue so that next time you load the program, the same options will be used. With the pulldown menu activated, and the Options menu showing, type in S for Save Setup. After a few seconds, you will be prompted with the message Defaults stored in WF.EXE - press ESC to continue Press the ESC key to return to the options menu, and press ESC twice more to return to edit mode. .lm3 .tc Installation of Key Strokes .........................# Installation of Key Strokes This is accomplished by running a program called WFINST. It will allow you to customize the program, but you can do that once you become more familiar with it. At a minimum, you must have 2 files on the same disk: WF.EXE (Word fugue) WF.TXT (The source for the context sensitive help) If you have a 360K floppy system, there should be no other files on the disk, since WFINST will generate the file WF.HLP from the file WF.TXT. This file will take up about 87K, and will probably fill up a 360K floppy disk. In this case you must have WFINST on a second disk drive (not the default). Type in d:WFINST at the DOS prompt, where d: is the drive and directory where WFINST resides. The program will load and prompt you with Perform fast entry of fully reconfigured keyboard (Y/N/enter for N) Unless you wish to reconfigure the entire keyboard, press enter. You will receive a list of commands, which you may move around by using the arrow keys, the Page Up and Page Down, Home and End keys. When the cursor is on the command you wish to reconfigure, press Enter to select it. Backspace will delete the keystrokes one by one. ESC will backout of the change, while ENTER will accept the change. Pressing SCROLL LOCK will permit you to enter commands including any of the above characters. You must press SCROLL LOCK again in order to be able to terminate. When you have finished modifying keyboard commands, press ESC to terminate. You will be asked Press W to Write changes, Q to Quit. If you press Q, your changes will be lost. If you press W, your changes will be checked to ensure that you have not selected a keystroke combination that has been reserved for some other function. If you have, you will be prompted to go back and change things again (the erroneous keys will be highlighted). If everything is OK, the changes will be made to Word Fugue, and the Help file will be regenerated. Whatever combination you select for the pulldown menu will be displayed in the top left hand corner of the screen. Once you have finished, be sure to copy both WF.EXE and WF.HLP to your working disk, since these files are altered during the installation process.