The printing routines are invoked by Alt O ("O" as in output) command. A selfexplanatory menu of printing options is displayed. Selection of option "e", right justification of the printed text, has no effect on the format of the text in the file buffer. Lines are right justified for the printer output only. In some situations a continuous printing of text is not practical: fanfold (continuous) forms may not be always available especially when stationery with a company letterhead has to be used. Option "i" of the menu command controls the printing mode. This option is set FALSE by default, i.e. continuous printing will normally take place. When the option is set TRUE, a page will be printed and ejected. The printing will then stop to allow insertion of another blank sheet. You will be prompted to enter "y" when the printer is ready for the next page.  -21- WORDFLEX Version 2.60 User's Manual Part of the text can be underlined or printed with a double stroke, thus creating a boldface appearance. In order to get this type of printout, the parts of the text to be underlined, printed boldface or both have to be delimited by two Ctrl characters: Ctrl P - start of underline or boldface Ctrl Q - end of underline or boldface These two characters are displayed on the IBM PC screen as a left and right triangle, respectively. The line containing words to be underlined and/or printed with a double stroke has to be terminated with Ctrl U for underline or Ctrl B for boldface. A line ending with both these characters will be printed with delimited portions both underlined and printed with double stroke. Examples of such lines are part of this User's Manual text. The control characters are used by WORDFLEX internally and are removed from the line before the line is transmitted to the printer. This has an effect on alignment of columns: since the control characters are not printed, blanks have to be inserted in order to maintain column alignment if underline and/or boldface printing of column headers is selected. Summary: Alt O - invokes printed routines options and subcommands available: right justification of printed lines printing of entire text printing of a marked block multiple copy printing Ctrl Q, Ctrl P - delimits parts of line to be underlined and/or bold face Ctrl U, Ctrl B - last characters of lines to be underlined or bold face  -22- WORDFLEX Version 2.60 User's Manual Options selectable by Alt O: "b": printing of entire text "c": printing of a marked block "d": number of copies to be printed "f": serial printer ('com1') "f": parallel printer ('lpt1') - default option "h": left margin (0 - 80 columns) - default value 0 "g": double spaced printing - default value single spaced "i": continuous or single page printing  -23- WORDFLEX Version 2.60 User's Manual XI REFORMATTING THE TEXT Two WORDFLEX commands act on paragraphs of texts. As mentioned above, a paragraph is defined as one or more lines delimited by empty lines. The commands are: Alt B - right justifies lines to a specified length Alt G - reformats paragraph These commands are executed in many cases automatically if the corresponding option is selected by Alt A. By default, WORDFLEX performs the automatic reformatting of a paragraph during text insertion when an overflow into the next line takes place. This option can be turned off whenever it is not desirable, as explained in Section VII. On the other hand, deletion of individual characters is never followed by an automatic readjustment of line lengths. In that case, the Alt G command has to be invoked if such readjustment is desired. Both Alt B and Alt G operate on displayed text only. In other words, in order to right justify or reformat an entire paragraph, you will have to use either Pg Dn or scrolling to display it completely. If that is not possible, you have to finalize the screen pressing F6 (or F9) display the rest of the paragraph and try again. The Alt G command can be used to reformat the lines into longer ones. The new line length must first be entered using the Alt A or Alt W command. Alt G must be then applied to all paragraphs where a line lengthening is desired. In this version, WORDFLEX does not allow reformatting into shorter lines. The automatic right justification option is off by default. It is much more convenient to generate text files with variable line lengths (they also occupy less disk space) than to perform right justification upon text entry or insertion. The right justification option of the Alt O command is in most cases preferable to the actual padding of each line in the buffer with blanks to maintain a constant line length.  -24- WORDFLEX Version 2.60 User's Manual Nevertheless, the Alt B command is available for the testing of the appearance of the text when right justified. The right justification is performed initially only in the display (cyan color or high intensity) and it can be reversed as all similar commands by pressing F9. F6 will make the right justification permanent in the buffer; files can be stored with lines of the same length. The procedure performing the right justification of lines was written in such a way that it attempts to pad only about 20% of a line with blanks. This means that short lines are not right justified; this is mandatory for the last lines of paragraphs. In addition, the right justification is disabled for all lines that start right of the first tab position. This approach reasonably solves the problems of right justification of text lines. With the default line length of 64 characters, lines with less then 52 characters will not be right justified. It is suggested to use an old fashioned division of words in such a case to make right justification possible. There is no need to count the number of characters in line: invoking the Alt B function will display the column right justified according to the rules just explained. There are always ways to modify the text to achieve the most desirable appearance.  -25- WORDFLEX Version 2.60 User's Manual XII REMAINING COMMANDS There are six remaining Alt commands: Alt J - inserts page headers into the buffer Alt K - kills, i.e. erases individual text buffer Alt P - inserts a single page header Alt Q - erases page headers from the buffer Alt U - displays file handling utility menu Alt Z - erases text in all buffers and reinitializes WORDFLEX. Alt P inserts a page header just before the current line. Page headers can be placed either on the top or on the bottom of a page. Option "e" of the Alt A command selects top page headers (option is TRUE, the default) or bottom page headers (option is FALSE). The exact format of the headers is as follows: Top page headers; option "e" is TRUE: Ctrl L (ASCII 12, the formfeed character) followed by Ctrl H (backspace) and a space page number preceded and followed by a hyphen 0 to 2 optional page title lines an empty line Bottom page headers;option "e" is FALSE: an empty line page number preceded and followed by a hyphen 0 to 2 optional title lines Ctrl L (formfeed) character followed by backspace and space The default number of page title lines is 0 (i.e., no title lines except the one with page number). This number can be modified by the Alt A command. By invoking option "f" of the command, you are prompted first for the number of title lines and then for their text. Page numbers are incremented automatically and can be reset by option "h" of the Alt A command.  -26- WORDFLEX Version 2.60 User's Manual Alt Q deletes all page headers, i.e. the formfeed character, the page number and the lines of optional page titles from the text buffer. This command is necessary when insertions, deletions or block text movement took place in a document already containing page headers. Such text modifications may severely alter the sizes of text pages, possibly even putting page numbers in an incorrect sequence. The Alt Q command works as follows: Page headers following the current cursor location are deleted. The deletion stops either at a marked line (if such a line exists in the following text) or at the end of the text buffer. A line marked in the text preceding the current cursor location has no effect on page header deletion. Alt J command inserts page headers into the rest of the text buffer following the current location of the cursor. The insertion stops, as in the Alt Q command, either at a marked line (if such a line exists in the rest of the text) or at the end of the text. Option "j" of the Alt A command selects the number of lines per page, including the lines used by the page header. By default, the number of lines per page has been set to 50 but it can be reset to any value between 3 and 80. The Alt J command executes the Alt Q command (deletion of old page headers) first. A care should be taken in invoking the command if the Alt A options "e" (page headers on the top or the bottom of a text page) or "f" (number and contents of page title lines) have been changed. The Alt J command will not perform properly if these options differ from the current format of the page headers. If the page header format is to be changed, the Alt J command has to be preceded by the Alt Q command with the "e" option set according to the current page header format. Once the old page headers have been removed, the page header format can be changed and the Alt J command executed. Execution of Alt Q command in a buffer that does not contain page headers (more accurately, lines containing the Ctrl L (formfeed character)) has no effect on the text buffer.  -27- WORDFLEX Version 2.60 User's Manual Page headers are stored automatically with a file and retrieved upon loading the file on a buffer. Also, when switching from one file buffer to another, the following options are preserved: number of page header lines text of page header lines type of page headers (on the top or bottom) current page number in each file buffer The Alt U commands displays the file utility menu. Responses to the prompts have generally the same form as if invoked from the operating system. Usage of global characters (*,?) in file names is not allowed for rename, delete, hide and unhide options. It is required, however, for option "d", selective file directory listings if you are looking for groups of files. Hidden files can be edited by WORDFLEX. They have to be, however, first marked unhidden. Option "b" of the Alt U command merely makes directory listing of hidden file names possible. The Alt Z command is useful when an editing of a document has been completed and all pertinent text stored on file(s). Alt Z reinitializes WORDFLEX: all text buffers are erased, the buffer number is set to 1 and the names of all previously edited files is also lost. Some of the parameters changeable by the Alt A command are reset to their default values. Alt Z command releases all memory previously used by the file buffers. The Alt K command is probably of a limited use: it allows the user to erase completely the contents of an individual file buffer. As mentioned above, it does not release the memory used by the buffer; the only useful application would be if all remaining four buffers have to be preserved (for text merges or similar situations) and a new text has to be entered instead of the old one. The Alt K (as well as Alt D and Alt E) command is irreversible; the contents of an erased buffer cannot be retrieved.  -28- WORDFLEX Version 2.60 User's Manual XIII PERMANENT MODIFICATION OF DEFAULTS. WORDFLEX requires presence of file config.www on the same diskette and in the same directory (DOS Version 2.0). This file contains default values of most of the options selectable by the Alt A and Alt O command. You may prefer another set of default values for various types of word processing. A special program is provided on the distribution diskette to allow you to modify the default values permanently; the Alt A and Alt O command do it only for the current session. The program is invoked by typing "defaults" from the operating system. User with the Color/Graphics Adapter card will be prompted for answer whether they use color or monochrome monitor. Display on a monochrome monitor connected to the Color/Graphics Adapter card will not be legible if the selection is made for color. Program "defaults" senses selection of either the monochrome or color card, if you have both and creates a new file config.www corresponding to your current selection.It will not allow you to create file config.www for the IBM Monochrome Display if you have both IBM Monochrome and Color/Graphics cards and the color is selected. WORDFLEX reads file config.www automatically and sets its defaults accordingly. When program senses presence of the Color/Graphics card, and a color monitor is used, an option is available to change all color displays used by the program: the color of permanent text displayed (normally green), new or modified text (normally cyan) or text moved around (normally yellow). Also, the marked lines can be displayed in any other color than just reversed video. The colors for various messages on the topmost (command line) can also be selected. Under DOS Version 2.0 you may include different files config.www in separate directories. This makes tailoring of the defaults to the requirements of various types of documents very easy.  -29- WORDFLEX Version 2.60 User's Manual REFERENCE SECTION Command Page Brief description F1 4 displays slowly all screens of the current file buffer F2 4 selects one of the active file buffers F3 4 loads file of selected name on the next file buffer. If file does not exist, the file buffer is associated with the specified new file name F4 4 stores current buffer on disk file of the name associated with the buffer. Any other suitable name can also be used F5 17 moves cursor to the selected mark (1 or 2) F6 13 finalizes text changes displayed on the screen (transfers them into current file buffer) F7 17 if line is not marked, marks it. Mark 1 is stored if no marks exist. If mark 1 exists, mark 2 is stored. If line is marked, a mark is erased. F8 17 erases mark(s) F9 13 restores previous screen display if F6 has not yet been pressed. F10 5 terminates WORDFLEX session  -30- WORDFLEX Version 2.60 User's Manual Command Page Brief description Alt A 6 displays and/or modifies the list of WORDFLEX options Alt B 23 right justifies lines of the rest of paragraph Alt C 17 inserts marked block of text after the current line; original block remains unchanged Alt D 18 deletes (irretrievably) the current line Alt E 17 erases (irretrievably) a marked block of text Alt F 16 finds a specified string in the current file buffer Alt G 23 readjusts lines to their maximum length in the rest of paragraph Alt H 6 displays summary of WORDFLEX commands Alt I 8 moves cursor to the left margin column Alt J 25 inserts page headers into the text following the cursor location Alt K 25 kills (erases) irretrievably file buffer Alt L 8 sets left margin at the current cursor position Alt M 17 inserts marked block of text after current line; the original block is erased Alt O 20 displays menu of options for printed output and prints text using either parallel or serial printer port  -31- WORDFLEX Version 2.60 User's Manual Command Page Brief description Alt P 25 inserts a page header before the current line Alt Q 25 deletes (irretrievably) page headers from the text following the cursor location Alt R 16 replaces a search string with a new string Alt S 6 displays WORDFLEX status Alt T 10 centers current line Alt U 25 displays file utility menu Alt W 8 sets right margin at the current cursor position Alt Z 25 erases contents of all memory buffers WORDFLEX Version 2.60 User's Manual 1t lable: right justification for lines stored without it printing of marked blocks of text