home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / wset-os2.zip / DocuSrc / WSFDOCU.WS < prev    next >
Text File  |  2003-05-23  |  111KB  |  2,932 lines

  1. ..This is the unformatted raw text of the WSformat documentation in Wordstar/Write&Set
  2. ..format. You are encouraged to format and print the file. The file is also the source
  3. ..of the Winhelp file which part of the Write&Set archive. It was created by Hypermake.
  4. ..To learn more about the dot commands, move the mouse cursor over a dot command which
  5. ..you want to get described.
  6. .bt₧ wsformat.bmp
  7. .gs130
  8. .bt¡ exclam.bmp
  9. .gs300
  10. .fi Title.ws
  11. ..(concerns Hypermake only)
  12. .ti WSformat 0.95 Documentation
  13. .<>
  14. .bt■ blackdot.bmp
  15. ..(End Hypermake only)
  16. .1
  17. Introduction
  18.  
  19. .if not WSformat
  20. .ep off
  21. ..principally, this code can be interpreted by WSformat,
  22. ..but is for Hypermake (generating online-help) only
  23. .sfJ
  24. ₧ WSformat 0.95 Documentation
  25. .sf
  26. .ep on
  27. .end not WSformat
  28.  
  29. .icµ
  30. .in Introduction
  31. .2
  32. WSformat abstract
  33.  
  34. .in Write&Set
  35. WSformat is a formatting and printing program for Wordstar (DOS) files. WSedit ì
  36. and WSformat together are the full-featured word processing suite Write&Set, ì
  37. running under current operating systems. Word processing with Write&Set ì
  38. divides the job of producing a document in two parts: editing and - later - ì
  39. formatting and printing. These two parts of the job are done by separate ì
  40. programs: WSedit and WSformat. Nevertheless, running the two programs ì
  41. simultaneously offers you the look-and-feel of a single program. The concept ì
  42. of separate editing and setting simplifies word processing and enables you ì
  43. compiling a single document with hundreds of pages without any problems.
  44.  
  45. Write&Set is based on the Wordstar DOS philosophy ('what you see is what you ì
  46. want' and not 'what you see is what you get'). Nevertheless, WSformat does ì
  47. have a provision for document preview.
  48.  
  49. WSformat is Shareware and WSedit is Freeware.
  50.  
  51. WSformat supports hyphenation, the creation of end notes and footnotes, ì
  52. generation of tables of contents and indexes, line drawing, embedding graphics ì
  53. in text and allows conditional statements. In contrast to the older DOS ì
  54. Wordstar versions, document preview and printing use functions provided by the ì
  55. Windows (or OS/2) operating systems. This means you have access to the ì
  56. printers and type fonts which are installed on the operating system.
  57.  
  58. Wordstar Compatiblity: WSformat accepts all Wordstar (DOS) files, but does not ì
  59. support all Wordstar DOS functions, i.e., those which were added after ì
  60. Wordstar Version 4. Instead, some extended functions (such as generating ì
  61. tables of contents or handling footnotes) are implemented in a ì
  62. WSformat-specific way. Basic Wordstar 5-7 'symmetrical sequences' are ì
  63. recognized (indentions, for example).
  64.  
  65. The Write&Set command syntax is very similar to that of Hypermake. From a WS ì
  66. file, Hypermake will generate an equivalent file in RTF, Winhelp, HTML, IBM ì
  67. Help or Microsoft HTML-Help format. The Windows and IBM Help files of WSformat ì
  68. and WSedit were compiled from WS (Write&Set unformatted) files.
  69.  
  70. WSformat requires Windows 98, Windows NT 4, OS/2 Warp 3 or later.
  71.  
  72. .2
  73. Word Processing with Write&Set
  74.  
  75. .ID P_PROCESSING
  76. .in wordprocessing
  77. Word processing with Write&Set is very different from those Windows word ì
  78. processing programs such as Winword or StarOffice, and also differs in some ì
  79. respects from Wordstar for DOS. Word processing operations are closer to Latex ì
  80. than to Winword. With Write&Set, the task of 'text content editing' and that ì
  81. of 'typesetting' are sequention operations, rather than simultaneously.
  82.  
  83. For the moment, forget all you have learned about computer word processing and ì
  84. think about the time before the personal computer was invented, when your ì
  85. 'word processor' was pen, scissors, cement, etc. The way to get a complex ì
  86. document involved some or all of the following steps:
  87.  
  88. Step 1:áWriting a draft in longhand, often including notes that would not ì
  89. ááááááááappear in the final publication;
  90. Step 2:áTyping the draft with a typewriter;
  91. Step 3:áCorrecting the text by hand on the typewriter copy;
  92. Step 4:áSending the typewritten manuscript to the typesetter.
  93.  
  94. In the first step there was no need to consider the layout - page size, ì
  95. margins, type faces. The author concentrated only on the contents... The four ì
  96. steps were performed step by step. Today when you prepare a document using ì
  97. Winword, the steps are all intermingled, effectively taking place ì
  98. simultaneously. Because of this mode of operation, Winword and its ì
  99. counterpart word processors are difficult to use. This design philosophy ì
  100. produces word processing programs that are big, slow, drain system resources, ì
  101. crash often, and in some cases are unable to produce the document the user ì
  102. requires.
  103.  
  104. By way of contrast, when documents are prepared with Write&Set, the four steps ì
  105. take place sequentially rather than concurrently.
  106.  
  107. Step 1:áEditing: Text is prepared as an (unformatted) 'raw' text file (a ì
  108. áááááááá*.WS file) using WSedit (or Wordstar DOS). Such a text file will not ì
  109. ááááááááinclude fixed margins. If you use WSedit, the margin of the displayed ì
  110. áááááááátext depends only on the settings of the editing window and the screen ì
  111. ááááááááfont.
  112.  
  113. When preparing documents on your computer, WSformat will only rarely be called ì
  114. upon to process the text. This is the reason why I have decided not to create ì
  115. a single program incorporating both functions.
  116.  
  117. Step 2:áStarting WSformat, formatting the unformatted raw-text WS file to ì
  118. ááááááááproduce a formatted FMT file:
  119.  
  120. The WSformat 'format' function reads the raw-text WS file and writes ì
  121. an FMT file. It does not modify the WS file in any way. In the FMT file, which ì
  122. can be also viewed using WSedit or Wordstar (DOS), the right margin is now ì
  123. fixed, the page breaks are apparent, and words at the end of the line which ì
  124. require hyphenation are displayed accordingly.
  125.  
  126. Step 3:áMinor changes by hand on the formatted FMT file
  127.  
  128. If you are not satisfied with some formatting details, you can make small ì
  129. changes to the FMT file. These include such things as incorrect hyphenations, ì
  130. and more importantly, page breaks which can be improved.
  131.  
  132. However, avoid making bigger changes to the FMT file; if these are considered ì
  133. necessary, it is more expedient to make the changes to the WS file and run ì
  134. WSformat again. Because WSformat formatting is extremely fast (about 100 pages ì
  135. per second, depending on your processor and the nature of the text), this does ì
  136. not represent a significant delay in production.
  137.  
  138. The WSformat preview feature helps in locating sections of the text where the ì
  139. printout can be improved. The printout in the Preview window mirrors exactly ì
  140. page printout.
  141.  
  142. Step 4:áPrinting the final version of the document
  143.  
  144. After making the final changes to the FMT file, select the physical or virtual ì
  145. printer installed on your computer and print your document. This is done the ì
  146. same way as it would be for other current word processors. Besides physical ì
  147. printers (laser or inkjet printers), it is possible to use 'virtual' printers ì
  148. (FAX and PDF creation programs). These also work on files produced with ì
  149. WSformat.
  150.  
  151. .2
  152. Who should use Write&Set?
  153.  
  154. The Write&Set word processing suite is useful for the following users:
  155.  
  156. ■ááUsers of Wordstar (DOS): Of course, all computer users who resist ì
  157. áááWinword and similar programs will find a new home with Write&Set. (I intend ì
  158. áááto support Write&Set in the long term, because I myself for various reasons ì
  159. áááfind Winword and similar programs unproductive.)
  160.  
  161. ■ááAcademics and other authors who have to prepare large and complex ì
  162. ááá(scientific) documentation: Authors, students and others often fear using ì
  163. áááwinword-like programs when generating large, complex documents. Many people ì
  164. áááhave found themselves typing and re-typing such documents, due to the ì
  165. áááinherent instability (and the resulting crashes) when handling such ì
  166. ááádocuments. Because of the serial processing of WSformat, there is virtually ì
  167. áááno limit on file size. There are no problems in processing a document with ì
  168. áááhundreds of pages, thousands of footnotes, and dozens of bitmap graphics. ì
  169. áááAfter creating a formatted text file (FMT file), line breaks and page ì
  170. ááábreaks are fixed even if you print the document to another printer.
  171.  
  172. Note to Students: WSformat is available for a special, very low student fee ì
  173. (30$).
  174.  
  175. ■ááAll people who do not like winword-like software: users who do not like ì
  176. áááwinword-like word processing software are invited to switch to Write&Set. ì
  177. áááWrite&Set is also a fast, easy-to-use and adequate software for writing ì
  178. áááeven simple correspondence.
  179.  
  180. ■ááCompanies who want to reduce software expenses: WSedit is free and ì
  181. áááWSformat is much cheaper than word processors such as Winword. Helping a ì
  182. áááWrite&Set user by telephone or by E-Mail is simpler, because dot commands ì
  183. áááare transmitted within the document, instead of being forced to describe ì
  184. ááámouse controlled actions. ('On the top left, you see an icon with a wide ì
  185. áááborder...') By using the 'embed file .fi' command, it is possible to ì
  186. áááobserve standards throughout documents regardless of the author. For ì
  187. áááexample, the company letterhead to be used in all WSformat files can be ì
  188. ááámaintained centrally, and when it is necessary to change 'boilerplate' ì
  189. ááátext, those changes will appear in all subsequent publications.
  190.  
  191. Limitations
  192.  
  193. Write&Set does not support muli-column text editing and formatting. ì
  194. (Nevertheless, I plan multi-column printouts.) It is not intended for ì
  195. desktop-publishing of such things as newsletters, magazines, etc. It is not ì
  196. possible to include output from other applications, such as the way Winword ì
  197. does with Excel, Access and so on. Instead you have to generate a bitmap file ì
  198. from your spreadsheet, database or graphics program which can then be embedded ì
  199. into a text document produced by WSformat. When making changes to your ì
  200. spreadsheet, you have to update the bitmap file manually, something Winword ì
  201. will do automatically.
  202.  
  203. For technical writers (physicists and mathematicians, for example) Latex will ì
  204. also be found useful because Write&Set has no specific provisions for handling ì
  205. mathematical formulas. With Write&Set, you have to generate a bitmap file of ì
  206. your formula.
  207.  
  208.  
  209. .1
  210. Installation and first steps
  211.  
  212. .ID P_INSTALLATION
  213. .in Installation
  214. .2
  215. Installation of Write&Set
  216.  
  217. Download the Write&Set archive file and unpack it to a new directory, e.g:
  218. C:\Programs\WriteSet.
  219.  
  220. The two programs WSedit and WSformat are now located in subdirectories:
  221. C:\Programs\WriteSet\WSedit
  222. C:\Programs\WriteSet\WSformat
  223.  
  224. Now simply run the INSTALL program in the WriteSet directory. INSTALL creates ì
  225. file associations and program icons on the desktop (and in the Windows Start ì
  226. Menu). INSTALL does not copy files.
  227.  
  228. When starting WSformat the first time, some initialization procedures run ì
  229. automatically:
  230.  
  231. -ááA binary file WSformat.dta which retains user settings will be generated; ì
  232. áááit contains the data found in the settings notebook (settings - settings ì
  233. ááánotebook)
  234. -ááA simple text file fonts.ini will be generated. It stores the information ì
  235. áááabout the fonts which are available on your system. It is recommended that ì
  236. áááyou modify this file to fit your needs. (settings - font definition)
  237. -ááThe fonts.ini text file is converted to a binary file printername.dta ì
  238. áááwhich holds detailed font information before formatting or printing. When ì
  239. áááchanges are made to fonts.ini, e.g. 'HP Deskjet 600.dta' file is updated ì
  240. áááautomatically and a small window 'registering fonts' appears.
  241.  
  242. It is also necessary to modify some entries in the settings notebook ì
  243. (settings - settings notebook):
  244.  
  245. ■ááTo start WSedit or your preferred Wordstar editor from WSformat, select the ì
  246. áááProgram page of the settings notebook and check the correct full filename ì
  247. áááof the editor. If the file exists, the edit field turns green; otherwise it ì
  248. áááremains red. (The same procedure is necessary in WSedit to find ì
  249. áááWSformat.)
  250. ■ááSelect the printer to which formatting refers to. This should be your ì
  251. áááfavourite printer for printouts.
  252.  
  253. By default, hyphenation is turned off. If you want to turn hyphenation on, do ì
  254. the following:
  255.  
  256. ■ááSelect the Hyphenation page in the settings notebook. For all languages ì
  257. áááother than German, click on 'external tex file' and select your language. ì
  258. áááPlease note that some conventions of British and American English are ì
  259. ááádifferent, so there are own settings. The browser, which uses the Google ì
  260. ááásearch engine, is started and you are directed to download the file to the ì
  261. ááádirectory where WSformat.exe resides. Tex hyphenation files are small.
  262. ■ááFor German users, I recommend the internal german hyphenation which is ì
  263. ááábetter than the tex algorithm.
  264.  
  265. .2
  266. Format and print this documentation
  267.  
  268. .in Documentation
  269. The archive file contains the same documentation in WS format (unformatted ì
  270. text) and in Help file format. You have got access to the Help file from the ì
  271. WSformat main window, Help menu item, or by pressing the yellow questionmark ì
  272. buttons. If you prefer a printed documentation, you are encouraged to print ì
  273. your docu.
  274.  
  275. Select the WS file
  276.  
  277. Start WSformat. First select the file which you want to format and print, in ì
  278. this case WSFDOCU.WS in the Write&Set directory, subdirectory DOCUSRC. Click ì
  279. on the File menu item, and then choose select. You may also simply drop ì
  280. the WSFDOCU.WS file icon into the dropdown field on the WSformat main ì
  281. window.
  282.  
  283. Format the WS file
  284.  
  285. Simply press the format button. A new file, WSFDOCU.FMT, will be ì
  286. generated.
  287.  
  288. Edit the FMT file
  289.  
  290. If you really want to create a paper print, take a look at the WSFDOCU.FMT ì
  291. file. By default, after formatting the editor starts and selects the FMT file. ì
  292. Take a look at the page breaks which are represented in WSedit by a floating ì
  293. yellow background. If you want to improve some page breaks, do it and then ì
  294. save the FMT file.
  295.  
  296. Preview
  297.  
  298. You are also encouraged to preview the file; simply press the preview ì
  299. button. When saving the FMT file in the editor, the preview window is updated ì
  300. automatically. In the preview window, use the Pg dn and Pg up keys on your ì
  301. keyboard, or use the left and right mouse button. For example, to go to page ì
  302. 20, hold down the left mouse button and drag the mouse to the right. Change ì
  303. the height and width of the Window. The preview scale depends on the window ì
  304. width.
  305.  
  306. Print the file
  307.  
  308. Select a printer by using the dropdown box in the WSformat main window. Press ì
  309. the Print button, or select File - Print pages from the menu. In this ì
  310. case, you can select single pages.
  311.  
  312. .1
  313. User interface
  314.  
  315. Because WSformat is a text compiler, there are only a few windows which forms ì
  316. the user interface.
  317.  
  318. .dp#23
  319. .2
  320. Main Window
  321.  
  322. .ID P_MAIN
  323. .in main window
  324. .it file selection
  325. The WSformat main window is the central command window for editing, ì
  326. formatting, and printing text; it is where you start jobs and open other ì
  327. windows. While merely editing text, you can operate on your WS files directly ì
  328. with your WSedit or Wordstar editor. While formatting and printing, start ì
  329. WSformat and leave the main window open. From there, you can also execute the ì
  330. editor on unformatted text.
  331.  
  332. Selecting a WS file
  333.  
  334. There are several ways of selecting a WS file.
  335.  
  336. ■ááClick on the File menu item, and then choose select. You will get a ì
  337. áááfile dialog which is similar to those used in many other programs.
  338. ■ááDrop the WS file on the WSformat icon on your desktop
  339. ■ááDrop the WS file icon onto the dropdown field of the WSformat main ì
  340. áááwindow
  341. ■ááEnter the WS file name after WSformat on the command line.
  342.  
  343. After successfully selecting a WS file, some of the five WSedit function ì
  344. buttons are enabled, depending on the existence of the corresponding FMT ì
  345. (formatted) file.
  346.  
  347. .in RTF to WS conversion
  348. Converting an RTF file to WS
  349.  
  350. The RTF file format is a worldwide standard for transferring text data with ì
  351. formatting information from one wordprocessing software to another. E.g. you ì
  352. can import a text from Winword to Write&Set by using the RTF file format. This ì
  353. allows you to import not only simple text: also headings and footnotes are ì
  354. converted.
  355.  
  356. You can convert an RTF file to WS the same way like selecting a WS file: Use ì
  357. the "File - Select" dialog or drop an RTF file onto the the dropdown field of ì
  358. the WSformat main window.
  359.  
  360. Formatting a WS file
  361.  
  362. Press the Format button or select the menu item Make - formatted file. ì
  363. Either choice is acceptable.
  364.  
  365. Editing files
  366.  
  367. To edit files from WSformat, the file name of your favourite editor has to be ì
  368. entered in Settings - settings notebook, page Program.
  369.  
  370. Selecting the button unformatted - edit starts the editor with the ì
  371. designated file (with the file extension WS); selecting formatted - edit ì
  372. starts a file with the extension FMT.
  373.  
  374. The menu items file - edit - unformatted and file - edit - formatted have ì
  375. the same effect as the corresponding buttons. If the FMT file does not exist, ì
  376. the buttons are disabled, while the menu items remain enabled.
  377.  
  378. The menu item File - close editors closes all Editor windows (for ì
  379. programmers: by sending WM_CLOSE messages) of the selected project file. This ì
  380. has the same effect as clicking to the 'Window Close' button of each editor ì
  381. window. Do not use this function with a DOS (Wordstar) editor. In this case, ì
  382. you are asked whether to interrupt the DOS application or not. If you press ì
  383. yes, all data in the DOS window will be lost.
  384.  
  385. Previewing formatted files
  386.  
  387. To open the preview window, press the Preview button or select File - ì
  388. Preview.
  389.  
  390. Printing formatted files
  391.  
  392. To select a printer, press the dropdown button and make your selection. To ì
  393. print the whole document, press the print button. To print only a section of ì
  394. the document, select the menu item File - Print pages. Note that you get the ì
  395. best result if the selected printer is also the printer where formatting ì
  396. refers to. You can reselect the 'reference printer' in the settings notebook, ì
  397. page Program.
  398.  
  399. While the print job is running, the print button turns into a stop ì
  400. printing button. Note that if you interrupt printing, a lot of data likely ì
  401. will have been sent to the printer queue. You can delete this data by opening ì
  402. your printer object.
  403.  
  404. Dropdown field and compile information
  405.  
  406. .in Dropdown field
  407. In the middle of the WSformat main window, there's the dropdown field where ì
  408. you are able to drag and drop WS files. This will select the dropped WS ì
  409. file.
  410.  
  411. In the dropdown field, there are three lines, each with an LED. These display ì
  412. the current processing states of the three WSformat jobs:
  413.  
  414. ■ááWhen formatting a text, the progress of the operation is displayed on the ì
  415. áááfirst line. While formatting, the red LED glows.
  416. ■ááWhile preview is activated and the preview window is shown, the yellow ì
  417. áááLED glows and the page number of the page currently displayed in the ì
  418. ááápreview window is shown. The page number also appears in the title bar of ì
  419. áááthe Preview window.
  420. ■ááWhile a print job is running, the blue LED glows.
  421.  
  422. The WSformat print job is faster than the printer can print the results. The ì
  423. operating system buffers the data and sends it to the printer as requested, ì
  424. depending on the speed of the printer.
  425.  
  426. .in Multithreading
  427. WSformat is a multi-threaded program. This means that even while WSformat ì
  428. is executing one job, it is able to do another job concurrently. Besides the ì
  429. main thread - editing the settings notebook, for example - there are three ì
  430. threads which are represented by the red, yellow and blue LED: When the LED ì
  431. glows, the thread is running. This means that you can format a file while ì
  432. another file is still being printed, but you cannot print a file while another ì
  433. file is printed. While printing a file, you can select another file and format ì
  434. or preview this new document.
  435.  
  436. The extended compile jobs Make - Text and Footnote, Make - Content and ì
  437. Make - Index are also executed in the format thread.
  438.  
  439. You are not allowed to exit WSformat until all threads are finished. If ì
  440. WSformat does not end a thread - we don't hope that such a bug occurs - close ì
  441. the main window and answer "Yes". In this case, WSformat tries to kill the ì
  442. threads and to close. Sometimes this trial fails and you have to kill the ì
  443. WSformat application (in Windows, press Ctrl-Alt-Del simultaneously and select ì
  444. WSformat to end the process). In any case, contact the author if the bug can ì
  445. be reproduced.
  446.  
  447. .wa verti 25
  448. .2
  449. Settings Notebook
  450.  
  451. .in Settings notebook
  452. The data of the settings notebook is stored in the file WSformat.dta.
  453.  
  454. .3
  455. Program page
  456.  
  457. .ID P_PROGRAM
  458. In the entry field Full filename of the embedded editor, you can select the ì
  459. editor program to be executed when pressing the buttons edit unformatted and ì
  460. edit formatted on the WSformat main window. If you don't remember the file ì
  461. name, use the search button.
  462.  
  463. The checkbox auto save sends a message to WSedit to save the file currently ì
  464. loaded. Running "format" automatically saves the WS file, running "preview" or ì
  465. "print" automatically saves the formatted file.
  466.  
  467. If the checkbox open editor after make is checked, WSformat automatically ì
  468. executes the editor with the generated file after finishing the task of ì
  469. formatting the text, generating the table of contents, or performing any ì
  470. similar operations.
  471.  
  472. You can restrict where WSformat is to search for files by supplying it with a ì
  473. list of directories. The directories are separated from one another by a ì
  474. semicolon ';'. Instead of typing the directory names directly, you can also ì
  475. use the search button. The directory where WSformat.exe resides is always ì
  476. searched, but only if the search in these directories has failed. The list of ì
  477. directories refers to the following files:
  478.  
  479. ■ááFormatted and unformatted files, by using the .FI command
  480. ■ááHeading template files (.HF command)
  481. ■ááBitmap files, by using the .BM and .BT commands.
  482.  
  483. Printer to which formatting refers is relevant only if you have installed ì
  484. more than one printer on your system. In such a case, selecting the active ì
  485. printer affects how WSformat will perform its calculations while formatting. ì
  486. If you select another printer for printing, the spaces between words can ì
  487. differ because of slight differences of printer font metrics. But neither ì
  488. line breaks nor page breaks are affected.
  489.  
  490. Auto correct file extension affects the main window of WSformat. If this ì
  491. setting is on, you can also drop FMT files into the dropdown window and the ì
  492. unformatted file will be given the extension WS. Deselect the checkbox if ì
  493. you:
  494. ■ááWant to re-format a FMT file
  495. ■ááWant to use extensions other than WS for the unformatted Wordstar file
  496. ■ááwant to preview or print files other than FMT or TAF files, for example, a ì
  497. áááTOC (table of contents) file.
  498.  
  499. Allow printing unformatted WS files can be useful if you have a text file ì
  500. with a table or graphics and no running text, and thus the text file will not ì
  501. need to be reflowed. Running text will not look as good as it would be with ì
  502. the formatted file. Normally, this setting should be turned off.
  503.  
  504. The program language is only English at this time. The German setting ì
  505. affects only some error and information messages. To translate WSformat to ì
  506. other languages, I need help from native speakers. Please contact me if you ì
  507. are interested in such an effort - you will receive a donation for your ì
  508. work.
  509.  
  510. Concern printing group box
  511.  
  512. Lower the Print job priority if user input slows down while running a print ì
  513. job.
  514.  
  515. Concerning Preview groupbox
  516.  
  517. When using preview you can also choose between positioning of each character ì
  518. and positioning only each word. Positioning only each word is faster, but it ì
  519. affects the word spacing, because WSformat can only select integer values of ì
  520. font sizes and then the spaces between words can differ. The default value is ì
  521. enabled.
  522.  
  523. .3
  524. Format page
  525.  
  526. .ID P_FORMAT
  527. On the format page, you can change settings concerning formatting rather than ì
  528. directly previewing or printing or setting margins. These settings are located ì
  529. on the Layout page.
  530.  
  531. Change hard spaces to soft spaces at the beginning of a line is useful if ì
  532. WordStar conventions using soft spaces have not been observed for text ì
  533. indention. Note that enabling this function will result in a wrong format if ì
  534. normal spaces have been used to indent the first line of a paragraph. The ì
  535. default value is disabled.
  536.  
  537. Reduce factor of spaces in wrapped lines ('gum factor') affects the width of ì
  538. the spaces between the words of a wrapped line. A gum factor of '1' means that ì
  539. on average the sum of the width of all spaces in a line is reduced about the ì
  540. width of one Courier 12 character (1/10 inch). A negative gum factor enlarges ì
  541. the average width of spaces. You can change this setting in your document by ì
  542. entering '.GU', followed by the value.
  543.  
  544. Stretch factor of tabs (soft spaces) applies only to proportional fonts. In ì
  545. a proportional font, there's no single width for every character; instead ì
  546. every character is assigned its own width. If text printed in a proportional ì
  547. font table is indented using soft spaces, there is the question to which scale ì
  548. the indention refers to. This scale is now defined by the 'tab stretch' (.TS) ì
  549. value. A value of 60 means the width of one soft space is equal to 60% of the ì
  550. widest character in the font, usually the capital 'W' in a Roman alphabet. If ì
  551. you want to be sure to keep two columns of a table from overlapping, try a ì
  552. value of 100. This applies even if the column contains only 'W's. Since this ì
  553. is highly unlikely, adequate values are from 50 to 60. When creating tables ì
  554. with a proportional font, it is strongly recommended to check carefully with ì
  555. Preview.
  556.  
  557. All .LH Line Height values refer to default normal font
  558. let WSformat change the .LH values in the formatted file, dependent on the ì
  559. current font selected with .SF. This omits overprinting lines when using ì
  560. large fonts. See Line Height.
  561.  
  562.  
  563. Default fonts
  564.  
  565. .it default font
  566. Using fonts is described in an own chapter of this document. Fonts are ì
  567. represented by single letters (case-sensitive). In the file fonts.ini, font ì
  568. letters are assigned to the fonts available on your operating system. Single ì
  569. characters represent fonts with no attribute, adding ' means italic, " means ì
  570. bold, and & bold-italic. Note however that all these conventions can be ì
  571. redefined.
  572.  
  573. You can select default values for both the normal and alternate fonts. The ì
  574. selected font written with the selected font is displayed in the white field ì
  575. on the right.
  576.  
  577. .3
  578. Hyphenation page
  579.  
  580. .ID P_HYPHENATION
  581. .in Hyphenation
  582. Hyphenation is an important feature of a word processing program that must ì
  583. formatting text with a fixed right margin. The more hypenation points are ì
  584. correctly found, the better the final appearance of the document.
  585.  
  586. The default value of hyphenation is no hyphenation.
  587.  
  588. External Tex file
  589.  
  590. For all languages other than German, the external tex file setting is ì
  591. recommended. Use the Google search engine on the Internet to locate the tex ì
  592. hyphenation file (there is one available for almost every language). Once ì
  593. located, download it to your computer and then save it in or move it to your ì
  594. WSformat directory so that it will be available. These files are available for ì
  595. nearly every language. For additional information see the chapter on ì
  596. installation.
  597.  
  598. Tex hyphenation files are data-based text files which can be viewed with an ì
  599. ASCII editor that accepts the IBM-OEM codepage. If a word is not currently in ì
  600. the database, that word will not be hyphenated in your document. This will ì
  601. especially affect the hyphenation points of such complex substantives as ì
  602. 'news-paper. The database stores the syllables with interspersed digits which ì
  603. represent the possible hyphenation points. An odd digit means 'hyphenation ì
  604. allowed,' while an even digit indicates 'hyphenation not allowed.' These may ì
  605. be considered indicators of 'fracture' points. Digits of larger values ì
  606. indicate a low probability of a hyphenation point; low value digits indicate ì
  607. 'weak' and thus an increased likelihood. The factor Minimal rating refers to ì
  608. these digits. A minimal rating of 1 can result in a larger number of ì
  609. hyphenations; values of 3 and 5 reduce the frequency of hyphenations, and ì
  610. produce only very good hyphenations. A lower frequency of hyphenations can ì
  611. increase the average width of spaces between words. A rating of 2 is not ì
  612. different from a value of 1.
  613.  
  614. Internal german hyphenation algorithm
  615.  
  616. In the German language, hyphenation is very important because of complex ì
  617. substantives. The internal german hyphenation function is based on a ì
  618. phonetic assessment of a word, rather than on a reference to a stored data ì
  619. base. It can thus hyphenate words which occur in text only very seldom; proper ì
  620. names fall into this category. It locates more possible hyphenations (nearly ì
  621. all in fact) than the German TeX database. In the case of a few hyphenations, ì
  622. the results of the algorithm are ambiguous. In these cases, there is a query ì
  623. option (Rückfrage) where the user is called upon to make a judgment. Many of ì
  624. these queries are humorous funny, because the wrong hyphenation alters the ì
  625. meaning. It is possible that WSformat takes note of these corrected ì
  626. hyphenations, and stores them in the files DEULERN.DTA and GRIELERN.DTA which ì
  627. resides in the current directory (normally the directory where WSformat.exe is ì
  628. located in). The additional 'Ancient Greek' algorithm is useful for scientific ì
  629. documents where many words are derived from the Greek roots. This particularly ì
  630. applies to syllables beginning with ps, pt, rh, sc and some others. In most ì
  631. German (commercial, correspondence...) these syllables occur very seldom, and ì
  632. the default setting is set to disabled.
  633.  
  634. The minimum of not separated chars settings refer to all hyphenation ì
  635. algorithms. It's a matter of document ('house') style whether a hyphenation ì
  636. will leave only two characters of the word on a line. Higher values will ì
  637. reduce the number of hyphenations; useful values are 2, 3 or 4. You can change ì
  638. this default value with the .HN (Hyphenation Number of not separated ì
  639. characters) dot command.
  640.  
  641. Do not hyphenate areas with capital letters depends on your own style ì
  642. requirements. Sometimes there are abbreviations with capital letters which ì
  643. must not be hyphenated. If your text contains sections in capital letters, you ì
  644. should disable this function. The default setting is enabled.
  645.  
  646. A manual hyphenation setting is also available. When a word must be ì
  647. hyphenated, a simple YES-NO-CANCEL dialog box is presented to the user for his ì
  648. decision.
  649.  
  650. You can change the hyphenation default setting by using the .HY command, see ì
  651. chapter Select Hyphenation.
  652.  
  653. To indicate that no attempt should be made to hyphenate it, type a leading ^PG ì
  654. character in front of the word.
  655.  
  656. .3
  657. Layout page
  658.  
  659. .ID P_LAYOUT
  660. On the settings notebook page Layout, you can set the default values of many ì
  661. dot commands which refer to the default page layout.
  662.  
  663. The scale of all vertical values is the default typewriter line height ì
  664. (.LH8) ('lines') and of the horizontal values the width of a Courier 12 font ì
  665. character ('columns').
  666.  
  667. The dot commands also accept inch values (.PL 8.5") or cm values (.PL ì
  668. 23.0). To distinguish the line/column scale from cm scale, the latter always ì
  669. requires a decimal point or comma.
  670.  
  671. On the settings notebook, only the column/inches values can be set, but if you ì
  672. move the mouse over the entry fields, you will activate a bubble help which ì
  673. shows you the value in inches or cm, depending on the scale for bubble help ì
  674. radiobuttons.
  675.  
  676. Page Template let you restore and save other dot command settings referring ì
  677. the page layout. To define a new value, select one of the "Template" items, ì
  678. edit the combobox and change the dot command values. The last template you ì
  679. have chosen is the template WSformat refers to.
  680.  
  681. Write default dot commands to FMT file is useful if you want to send a ì
  682. formatted file to another WSformat user. All your dot command default settings ì
  683. are automatically written at the beginning of the formatted file.
  684.  
  685. The ASCII codepage holds single line and double line images, e.g. single ─ ì
  686. (Alt-196) and double ═ (Alt-205). WSformat does not send the ASCII code of ì
  687. these 'characters' to the printer; instead it generates graphics. The Line ì
  688. drawing settings refers to the width of lines in 1/300 inch pixels. Useful ì
  689. values are from 2 to 10. Instead of a double line, WSformat creates a wide ì
  690. line.
  691.  
  692. It is permissible to use these characters in situations other than in .LI ì
  693. line drawing tables. The length of these lines in relation to text set in ì
  694. proportional fonts depends on the '.TS' tab stretch value: The length of one ì
  695. line character corresponds to one soft space.
  696.  
  697. Codepage has two settings. There are two code pages which are very similar, ì
  698. both known as the 'IBM codepage' or the 'OEM codepage.' The difference is in ì
  699. the line drawing characters, which are made up of both small and wide lines. ì
  700. Code page 850 lacks these combined line drawing characters, but instead ì
  701. contains additional accented characters for various languages.
  702.  
  703. An important consideration in Europe is the addition of Euro-character ╒ which ì
  704. is available only on the 850 Code page. If you have selected code page 437, it ì
  705. will be a line-drawing character instead of the Euro symbol.
  706.  
  707. .3
  708. Notes page
  709.  
  710. .ID P_NOTES
  711. WSformat handles endnotes, footnotes and margin notes.
  712.  
  713.  
  714. Settings referring to Format function
  715.  
  716. Width of left margin for margin notes is the default value of the '.MN{}n' ì
  717. dot command, where 'n' represents the maximal length of margin notes in ì
  718. characters.
  719.  
  720. ..Arndt wsfdocu3.ws
  721. When bringing text and notes on a page together (Make - text and footnotes), ì
  722. it is necessary that each footnote link in the text area be indicated with a ì
  723. marker. This marker is the internal character for assigning footnotes and is ì
  724. simply a character which is not used anywhere else in your document. The ì
  725. default value is ^PQ (ASCII value of 17 decimal).
  726.  
  727. To enter Wordstar Printer chars ^PA...^PZ, type a ^ (circumflex) character ì
  728. and then a capital letter.
  729.  
  730. There are different ways of showing footnote links. Footnote link text in ì
  731. text area defines how the footnote link is to appear. Acceptable conventions ì
  732. for footnote links are (1), [1], and ^T1^T (superscript). Remember that you ì
  733. can define a superscript font, see chapter fonts.
  734.  
  735. Footnote link text in footnote area is the counterpart at the beginning of a ì
  736. footnote. Note the use of leading spaces to represent indention.
  737.  
  738. If you want to insert a Return inside your footnote text, you need a ì
  739. character for RETURN in footnote text which will later be converted to a ì
  740. Return. Normal Returns in footnote text are filtered.
  741.  
  742.  
  743. Settings referring to 'Making Text and Footnotes'
  744.  
  745. Number of empty lines between text area and footnotes defines the distance ì
  746. between the text block and the footnote block of a single page.
  747.  
  748. The last setting hold number of lines in a paragraph together refers to the ì
  749. Make - Text and footnote task. When creating a text and footnote file (TAF ì
  750. file), WSformat has to generate the Page breaks on its own. If you select a ì
  751. value of 2, WSformat holds the first two and the last two lines of a paragraph ì
  752. together; using a value of 1 deactivates this function. Enabling this function ì
  753. (values 2 or 3) is strongly recommended.
  754.  
  755. .3
  756. Index page
  757.  
  758. .ID P_INDEX
  759. The index page stores those settings which refer to the Make - contents ì
  760. and the Make - index function of WSformat.
  761.  
  762. Concerning content creation
  763.  
  764. When creating a table of contents (TOC) files, you can select whether or not ì
  765. to write page numbers.
  766.  
  767. With Highlight main headings enabled, main headings get bold toggles. ì
  768. Anyway, WSformat writes an empty line above a main heading.
  769.  
  770. Concerning index creation
  771.  
  772. Highlight weighted page numbers generates bold face page numbers for ì
  773. weighted index entries.
  774.  
  775. Sortiere... refers to a German 'umlaut' problem.
  776.  
  777.  
  778. .2
  779. Insert Dot Commands Window
  780.  
  781. .ID P_INSERTDOTCOMMANDS
  782. If you don't know Wordstar and Write&Set dot commands by heart, you can use ì
  783. the Insert Dot Commands Window to insert dot commands to your unformatted WS ì
  784. file. You can reach this window via WSformat main menu, item Command.
  785.  
  786. All dot commands are part of the outline tree. They are sorted to logical ì
  787. subjects.
  788.  
  789. If you know the name command, but don't remember the usage or syntax, type the ì
  790. two letters of the dot command behind go to command. This let you jump to ì
  791. the corresponding line in the outline tree.
  792.  
  793. Before pressing the Help button, select a line in the outline tree. Help ì
  794. activates the page of the Online Help where the subject or dot command is ì
  795. explained.
  796.  
  797. Insert inserts the current dot command to the editor. This only works if a ì
  798. WS file was selected in WSformat and the unformatted editor window is open.
  799.  
  800. .2
  801. Preview Window
  802.  
  803. .ID P_PREVIEW
  804. .in Preview
  805. To have access to the preview feature, first format your text. Then press the ì
  806. preview button or select File - Preview. The preview window opens and the ì
  807. yellow LED in the WSformat main window glows.
  808.  
  809. The title bar of the preview window now displays the current page number and ì
  810. the filename.
  811.  
  812. When saving the FMT file in the editor, the preview window is updated ì
  813. automatically. Changing settings in the settings notebook will also ì
  814. automatically force a preview update.
  815.  
  816. In the preview window, use the Pg dn and Pg up keys of your keyboard or ì
  817. the left and right mouse button. The left mouse button shows the next page, ì
  818. the right mouse button the previous page. To go to page 20, for example, hold ì
  819. down the left mouse button and drag the mouse to the right. Until the end of ì
  820. the file is reached, WSformat does not know the page length. On reaching the ì
  821. end, the number of pages is shown in the titlebar: '7 of 17' (pages).
  822.  
  823. Change the window with and height. The preview scale depends on the window ì
  824. width. If you make the window width large, a vertical scrollbar appears.
  825.  
  826. If you have a slow computer and a large document, previewing backwards ì
  827. requires some considerable time because WSformat must read the document again ì
  828. from the beginning. (Perhaps that will improve in a later version.)
  829.  
  830. .2
  831. Print pages dialog
  832.  
  833. .ID P_PRINTPAGES
  834. .in print pages
  835. To print a document from the first to the last page, select a printer in the ì
  836. main window dropdown box and press the Print button.
  837.  
  838. To print selected pages of a document, click on File - print pages. This ì
  839. brings up a small dialog window. If you press OK without entering values for ì
  840. the first and last pages, the whole document will be printed.
  841.  
  842. You are allowed to enter several page numbers in the entry field, separating ì
  843. them by commas or spaces. To print several pages, enter the first and the last ì
  844. page numbers, separating them with a hyphen.
  845.  
  846. If you want to print from a specific page to the end of the document, select a ì
  847. number for the last page which exceeds the size of the document, e.g. ì
  848. 18-999.
  849.  
  850. Enabling the Exclude pages checkbox means all pages will be printed, but now ì
  851. the pages shown in the entry field are instead omitted.
  852.  
  853. You can select the Number of copies which you want printed. The document is ì
  854. printed once from the first to the last page, and then the document is printed ì
  855. a second time from the beginning. That means the page order is in collated ì
  856. sequence, such as 1, 2, 3, 1, 2, 3, etc., and not as 1, 1, 2, 2, 3, 3.
  857.  
  858. Press OK to start printing and Cancel if you decide to terminate the ì
  859. job.
  860.  
  861. .2
  862. Info and Error Messages
  863.  
  864. .ID P_ERRORWINDOW
  865. .it Info and Error Messages
  866. The "Info and Error Messages" Window appears, if specific info or error ì
  867. messsages do appear while compiling a job. Formatting simple text without ì
  868. errors won't activate this window. The Preview and the Print function does not ì
  869. use the "Info and Error Messages" Window, but formatting, converting RTF to ì
  870. WS, creating index and "make text and footnotes" does.
  871.  
  872. An error message appears if e.g. a dot command has been used in a wrong way. ì
  873. In the message, you can see the Paragraph number ("Par") where the bug occurs. ì
  874. The paragraph number counts the Hard Returns, a dot command is also a ì
  875. "Paragraph". WSedit shows the paragraph number in its titlebar.
  876.  
  877. If you use WSedit, you can doubleclick to the error message and this will run ì
  878. WSedit with the cursor at the paragraph where the error or info messages ì
  879. refers to.
  880.  
  881. .2
  882. Command line Arguments
  883.  
  884. .in Command line argument
  885. The current WSformat program allows only one file name to be entered as an ì
  886. argument on the command line. Any additional arguments are ignored. If the ì
  887. filename contains spaces, type 'file name' or "file name". Do not omit the ì
  888. file extension.
  889.  
  890. I am planning to include support for full format and print control using ì
  891. command line arguments in a later version.
  892.  
  893. .1
  894. Conversion from WS to RTF and HTML
  895.  
  896. .in RTF conversion
  897. .in HTML conversion
  898. The RTF file format is a worldwide standard for transferring text data with ì
  899. formatting information from one wordprocessing software to another. E.g. you ì
  900. can import an (unformatted) text from Write&Set to Winword by using the RTF ì
  901. file format. This allows you to import not only simple text: also headings and ì
  902. footnotes are converted.
  903.  
  904. In the WSformat menu structure, you will find the command Make - RTF text. ì
  905. But WSformat does not has the ability itself for this conversion. This does ì
  906. Hypermake - also a Shareware program written by Martin Vieregg. The Hypermake ì
  907. commandline version is part of the Write&Set package since version 0.95 and ì
  908. gets executed from the WSformat Make - RTF text command. It runs separated ì
  909. from WSformat in a text window (usually white letters on black background).
  910.  
  911. The HTML file format is the file format of the World Wide Web. These files ì
  912. are viewed with a Web browser like Microsoft Internet Explorer, Netscape, ì
  913. Mozilla or Opera.
  914.  
  915. Make - HTML also executes Hypermake. Hypermake does not create only one ì
  916. single HTML file. Instead, a folder will be created containing a lot of HTML ì
  917. files, one for each chapter. To view the HTML file with your browser, click to ì
  918. the HTML file which has the same name as your WS file. E.g. if the name of ì
  919. your WS file is MYDOC.WS, the HTML start file is MYDOC.HTML and all the HTML ì
  920. files are located in the folder MYDOC.
  921.  
  922. If you want to create HTML files from the WS file format, you must use ì
  923. headings, otherwise you will get an error message. Every text has to be part ì
  924. of a chapter, so begin your text with ".1". Sometimes you will have different ì
  925. commands or text, dependent on compiling HTML files or formatting and printing ì
  926. a text. Use conditional statements in this case. When formatting a text with ì
  927. WSformat, the condition "WSformat" is always set.
  928.  
  929. Behind the command ".TI" on top of your WS file, you can enter a document ì
  930. title which will appear in the browser titlebar.
  931.  
  932. The user settings of Hypermake are hold in the file HMAKE\wsformat.ini which ì
  933. can be viewed with WSedit. Here, the font letters are defined independent from ì
  934. the Fonts.ini file and a lot of other settings are located here. If you are ì
  935. interested in Hypermake, please download Hypermake from ì
  936. http://www.hypermake.com . Hypermake compiles WS files, but the internal ì
  937. editor of Hypermake reads and writes WS files only if you have got Hypermake ì
  938. 4.1 or later.
  939.  
  940. If you want to convert WS files which are bigger than 20 kB, you need a ì
  941. Hypermake registration key. If you have registered WSformat, you are ì
  942. encouraged use this key for Hypermake, too: Simply insert this key to the line ì
  943. "Registration code = " of the file HMAKE\wsformat.ini. Now you can compile WS ì
  944. files to RTF or HTML format without size limit. But if you want to generate ì
  945. large Winhelp, IBM Help or MS HTML-Help files, you have to buy the specific ì
  946. Hypermake registration key.
  947.  
  948. Nevertheless, you are allowed to compile the help source files located in the ì
  949. DOCUSRC directory.
  950.  
  951. .dp#-
  952. .1
  953. Fonts
  954.  
  955. .ID P_FONTS
  956. .in Fonts
  957. Using fonts with WSformat is very different from Wordstar, but similar to ì
  958. Hypermake. Fonts are selected by using specific dot commands.
  959.  
  960. In WSformat and Hypermake, fonts are represented by a font letter which is ì
  961. a shortcut for a specific font description. Font letters are case-sensitive, ì
  962. so you can use A to Z and a to z for a total of 52 letters.
  963.  
  964. .2
  965. Storing font data
  966.  
  967. .in Fonts.ini
  968. .in Printername.dta
  969. The information about fonts is stored in two files: Fonts.ini and ì
  970. Printername.dta. Both files are located in the directory where WSformat.exe ì
  971. resides.
  972.  
  973. Fonts.ini is a text file which can be edited with any reliable ASCII editor, ì
  974. with WSedit, or by selecting Settings - Font definition in the WSformat main ì
  975. window.
  976.  
  977. Printername.dta is a binary file which stores the same information which is ì
  978. held in the Fonts.ini file. It stores additional information about the ì
  979. selected fonts, especially the pixel width of all characters. Because the font ì
  980. metrics slightly differ from printer to printer, every printer installed on ì
  981. your system gets such a file, e.g. 'HP Deskjet 600.dta'. After changing ì
  982. Fonts.ini, the Printername.dta file is updated automatically before processing ì
  983. the next format, preview or print job. When formatting or printing, WSFormat ì
  984. gets the information from this file and not from the operating system. This ì
  985. makes formatting and printing faster.
  986.  
  987. If formatting problems occur, regulary these binary font data files are ì
  988. involved. In this case, deleting the Printername.dta file forces recalculating ì
  989. all font data and the elimination of the problems.
  990.  
  991. .2
  992. WSformat default fonts
  993.  
  994. .in Fonts.ini
  995. .in Font definition
  996. Starting WSformat the first time causes a new Fonts.ini file to be ì
  997. generated. WSformat asks the operating system for the names of registered ì
  998. Times Roman, Helvetica and Courier fonts. Depending on this computer-specific ì
  999. query, WSformat generates a new Fonts.ini file. Please take a look at your ì
  1000. Fonts.ini.
  1001.  
  1002. On many systems, the following fonts are listed:
  1003.  
  1004. .sfM
  1005. Font A = Times New Roman 8
  1006. Font B = Times New Roman 10
  1007. Font C = Times New Roman 12
  1008. Font D = Times New Roman 14
  1009. Font E = Helvetica 8
  1010. Font F = Helvetica 10
  1011. Font G = Helvetica 12
  1012. Font H = Helvetica 14
  1013. Font I = Helvetica 16
  1014. Font J = Helvetica 18
  1015. Font K = Courier New 8
  1016. Font L = Courier New 10
  1017. Font M = Courier New 12
  1018. .sf
  1019.  
  1020. The font letters from A to M are allocated in every WSformat installation. ì
  1021. Use these fonts if you want to write a document to be sent to another WSformat ì
  1022. user. This font selection covers all normal word processing purposes.
  1023.  
  1024. If you miss some fonts, enter your own definitions, using the font letters N ì
  1025. to Z and a to z.
  1026.  
  1027. .2
  1028. Basic font selection in document
  1029.  
  1030. .in font selection
  1031. .it normal font
  1032. For selecting a font in your document, simply use the dot command
  1033.  
  1034. .SF (select font),
  1035.  
  1036. followed by the font letter. E.g.
  1037.  
  1038. .SFC
  1039.  
  1040. This selects the font 'Times New Roman 12,' because it is defined in the ì
  1041. Fonts.ini file as:
  1042.  
  1043. .sfM
  1044. Font C = Times New Roman 12
  1045. .sf
  1046.  
  1047. Typing .SF without a parameter selects the default font which is set in ì
  1048. the settings notebook, page format.
  1049.  
  1050.  
  1051. Alternate Font
  1052.  
  1053. .it alternate font
  1054. You can also define an alternate font
  1055.  
  1056. .AF (alternate font)
  1057.  
  1058. which is printed when a ^PA character appears at the beginning of a paragraph. ì
  1059. The syntax is similar to the .SF font:
  1060.  
  1061. .AFC  (selects alternate font C)
  1062. .AF   (selects default alternate font).
  1063.  
  1064. Behind the ^PA printer character, the alternate font rests activated until the ì
  1065. paragraphs ends with a Hard Return.
  1066.  
  1067. Subscript/Superscript font
  1068.  
  1069. It is useful to select a smaller font for subscript (^PV in pairs) and ì
  1070. superscript (^PT in pairs) text:
  1071.  
  1072. .SSB
  1073. select subscript/superscript font selects e.g. font B (Times Roman 10). The ì
  1074. default setting is the default font in the settings notebook, page ì
  1075. format.
  1076.  
  1077. .2
  1078. Extended Fonts.ini functionality
  1079.  
  1080. .it extended font
  1081. If you are more ambitious in your treatment of fonts, you can define manually ì
  1082. bold, italic and bold-italic fonts.
  1083.  
  1084. The default behaviour of WSformat is that you simply define a font by using ì
  1085. .SF. When you then use the ^PB (bold) and ^PY (italic) toggles, you will get ì
  1086. the same font in bold or italic styles respectively. You have the option to ì
  1087. redefine the bold, italic and bold-italic fonts manually.
  1088.  
  1089. When interpreting a 'Font' line in the Fonts.ini file, not only is a single ì
  1090. font defined, but the italic, bold and bold-italic fonts along with it:
  1091.  
  1092. .sfM
  1093. Font C = Times New Roman 12
  1094. Font C" = Times New Roman 12 bold
  1095. Font C' = Times New Roman 12 italic
  1096. Font C& = Times New Roman 12 bold italic
  1097. .sf
  1098.  
  1099. This default behavior can be turned off selectively by entering:
  1100.  
  1101. .sfM
  1102. AutoItalicBold = no
  1103. .sf
  1104.  
  1105. and can be turned on
  1106.  
  1107. .sfM
  1108. AutoItalicBold = yes
  1109. .sf
  1110.  
  1111. You can now define the bold, italic and bold-italic fonts by hand, or you can ì
  1112. override these settings. Because the Fonts.ini file is interpreted ì
  1113. sequentially, it is possible to repeat a font definition without turning off ì
  1114. the 'AutoItalicBold' setting.
  1115.  
  1116. .sfM
  1117. Font C = Times New Roman 12
  1118. Font C" = Times New Roman 13 bold
  1119. .sf
  1120.  
  1121. That means italic and bold-italic of the C type face are defined ì
  1122. conventionally, but the bold font is a slightly larger font (13 instead of ì
  1123. 12).
  1124.  
  1125. .2
  1126. Extended font selection in document
  1127.  
  1128. .ID P_FONTSEXTENDED
  1129. The .SF command changes the previously selected fonts for normal, bold, ì
  1130. italic and italic-bold styles simultaneously. If you want to change a font ì
  1131. attribute selectively, there are specific dot commands which can be used, such ì
  1132. as the .SF command:
  1133.  
  1134. .SN   (select normal)
  1135. .SB   (select bold)
  1136. .SY   (select italic)
  1137. .SX   (select bold-italic)
  1138.  
  1139. .1
  1140. Basic text commands
  1141.  
  1142. 'Basic text commands' refers to the formatting and printing commands - dot ì
  1143. commands, printer (^P) characters - which are similar to Wordstar DOS. The ì
  1144. next chapter 'Extended text commands' refers to advanced features such as ì
  1145. graphics, footnotes or contents which are implemented in a WSformat specific ì
  1146. way.
  1147.  
  1148. The majority of WSformat text commands are identical to those in Wordstar DOS, ì
  1149. but a few are new or different from Wordstar DOS. They are marked with the ì
  1150. following sign:
  1151.  
  1152.  
  1153. ¡ Wordstar DOS user, please note!
  1154.  
  1155. Most word processing programs save formatting and printing information in a ì
  1156. binary format. Wordstar DOS and WSformat store this information as readable ì
  1157. text characters. There are two kinds of these commands:
  1158.  
  1159. ■áádot commands: A text line beginning with a dot (period), followed by two ì
  1160. ááácharacters. Dot commands are not case-sensitive.
  1161.  
  1162. ■ááprinter chars: Characters with an ASCII value lower than decimal 32. In ì
  1163. áááWordstar DOS and WSedit such characters are entered by type Ctrl-P, ì
  1164. áááfollowed by a letter.
  1165.  
  1166. .2
  1167. Syntax of dot commands
  1168.  
  1169. .in dot command
  1170. .id P_DOTCOMMANDS
  1171. A dot command must be typed on a separate line and begin with a dot in the ì
  1172. leftmost margin. If the dot is not located at the first column, it will not ì
  1173. treated as a dot command and will instead be be printed as text. In most ì
  1174. cases, the dot is followed by two characters which are not case-sensitive. ì
  1175. Many dot commands require a following argument. For example:
  1176.  
  1177. .RM70
  1178.  
  1179. sets the right margin to the value 70. You are allowed to enter spaces between ì
  1180. 'RM' and the number.
  1181.  
  1182. In this documentation, I need to print dot commands without having them ì
  1183. interpreted. The first character in a line is the bold toggle and the second ì
  1184. the dot, thus isolating the latter from the right margin. A line so ì
  1185. constructed will thus show the dot in the left margin, as the first character ì
  1186. when it is printed, and it won't be interpreted.
  1187.  
  1188. In Wordstar, the default horizontal page measurement is characters and the ì
  1189. default vertical measurement is lines. Both directions refer to old ì
  1190. typewriter conventions. A character is considered to be as wide as a 'Courier ì
  1191. 12' character - the only font with which most typewriters were provided - and ì
  1192. the line measurement is the default (narrow-spaced) line. WSformat assumes ì
  1193. 1/48' to be the unit of vertical pitch, so .LH8 indicates a line spacing of ì
  1194. 8/48' or 6 lines per inch).
  1195.  
  1196. All dot commands which allow character or line counts to indicate distances ì
  1197. will also accept inches and cm values:
  1198.  
  1199. .RM 7.0"
  1200. .RM 17.8
  1201.  
  1202.  
  1203. ¡ Note that the use of dot (decimal point) or " makes the difference: If ì
  1204. the number contains a dot or a comma, it is treated as a measurement in ì
  1205. centimeters or inches. The inch value is marked by the " character.
  1206.  
  1207. Comments
  1208.  
  1209. .in comments
  1210. A very useful dot command is 'dot dot'
  1211.  
  1212. ..This won't be printed
  1213.  
  1214. This allows you easily to enter text which won't be printed in the finished ì
  1215. document. In WSedit, these lines are shown on the editing screen in magenta.
  1216.  
  1217. .2
  1218. Printer command characters
  1219.  
  1220. .in Printer character
  1221. .in Printer char
  1222. .id P_PRINTERCHARS
  1223. In WSformat and Wordstar DOS, characters with an ASCII value lower than ì
  1224. decimal 32 have got a specific meaning. These characters are not printed, but ì
  1225. instead control the formatting and printing of the job.
  1226. In both Wordstar DOS and WSedit, you can enter a command to be sent to the ì
  1227. printer by typing Ctrl-P (P for 'printer'), followed by a letter from A to Z. ì
  1228. In the documentation, these commands are written ^PA... ^PZ.
  1229.  
  1230. printer chars not used in pairs
  1231.  
  1232. .tb6
  1233. ^P@áá(Wordstar DOS) Text followed by this character is right-justified ì
  1234. áááááwhen printing
  1235. ^PZáá(WSedit) Text followed by this character is right-justified when ì
  1236. áááááprinting
  1237. ^PKááText followed by this character is centered when printing
  1238.  
  1239. ^PAááTurn on the alternate font until the next Hard Return
  1240. ^PGááThe following word is not hyphenated
  1241. ^POáábinding space: a line will not be divided a binding space
  1242.  
  1243. printer chars used in pairs (toggles)
  1244.  
  1245. .it printer char bold
  1246. .it printer char italic
  1247. .it printer char superscript
  1248. .it printer char subscript
  1249. ^PBááselect the bold font
  1250. ^PSááselect underlined text
  1251. ^PYááselect the italic font
  1252.  
  1253. ^PTááSuperscript, e.g. square meter m2
  1254. ^PVááSubscript, e.g. CO2 will be polluted
  1255. .SSA
  1256. .cp2
  1257.  
  1258.  
  1259. ¡ WSedit shows the ^PT 2 ^PT sequence simply as 2 which is part of the IBM ì
  1260. Codepage, and ^PT 3 ^PT as 3. You can set the height and depth of the printout ì
  1261. with the .SR command (default is .SR3) and the superscript/subscript font ì
  1262. with the .SS command (select sub/superscript font), followed by a font ì
  1263. letter.
  1264.  
  1265. .2
  1266. Text formatting commands
  1267.  
  1268. .ID P_TEXTFORMATTING
  1269. .3
  1270. Indentions
  1271.  
  1272. Hard and Soft Spaces, indentions
  1273.  
  1274. .in indention
  1275. .in Soft space
  1276. .ID P_INDENTIONS
  1277. Wordstar DOS, WSedit and WSformat know two different kinds of Spaces: Soft ì
  1278. spaces (in WSedit shown as 'snow characters') and normal 'hard' spaces. Soft ì
  1279. spaces represent indentions and tabulations. While formatting, these soft ì
  1280. spaces can vanish and then appear on another place.
  1281.  
  1282. .tb4
  1283. áááThis is a sample showing soft spaces. To indent a line in WSedit, simply ì
  1284. áááuse the Tabulation (Tab) key, or press Ctrl-OG.
  1285. ■ááIt is also possible first to enter text and then to indent by typing the ì
  1286. áááTab key, followed by the running text.
  1287. .tb10
  1288. .if WSformat
  1289. áááááááááI have now selected Tabstop 10. This is a sample of the use of soft ì
  1290. áááááááááspaces. To indent a line in WSedit, simply use the Tab key, or press ì
  1291. áááááááááCtrl-OG.
  1292. Note:ááááIt is possible to begin a line with non-indented text (in this case ì
  1293. áááááááááthe word 'Note:'), and then to indent text by typing soft spaces.
  1294. .end WSformat
  1295.  
  1296. To reformat a paragraph in WSedit after changing the '.TB' tab stop position, ì
  1297. type Ctrl-B. WSformat interprets the resulting soft spaces, not the '.TB' ì
  1298. command.
  1299.  
  1300. To select the indention tabulator stops, enter the WSedit and Wordstar ì
  1301. command
  1302.  
  1303. .TB 4,14,24
  1304. which e.g. sets tab stops to the rows 4, 14 and 24. In WSedit, use the tab key ì
  1305. several times to go to tabstop row 24. (WSedit does not support other scales ì
  1306. than rows in the .TB command.)
  1307.  
  1308. ¡ The width of soft spaces (snow characters) can be defined with the .TS ì
  1309. tab stretch command.
  1310.  
  1311. .TS60 (also .DE60 or .DE6)
  1312. sets the width of a soft space to 60% of the capital W of the current ì
  1313. proportional font. When using a fixed font, this setting has no effect.
  1314.  
  1315. .3
  1316. Hard and Soft Returns
  1317.  
  1318. .it Soft Return
  1319. .it Hard Return
  1320. There are also two different kinds of Returns: lines can end with either a ì
  1321. Soft or a Hard Return. In WSedit, this is shown by color patches in the ì
  1322. rightmost column. Soft Returns vanish and appear on another place while ì
  1323. formatting. Hard Returns remain fixed at the same place. Soft Returns are ì
  1324. generated by the computer; Hard Returns by typing the Enter key on the ì
  1325. keyboard.
  1326.  
  1327. .3
  1328. Turning formatting off and on
  1329.  
  1330. .ID P_FORMATTING
  1331. .in formatting off
  1332. When typing tables, there is always the concern about destroying table ì
  1333. formatting, because WSformat might treat the table as running text and reormat ì
  1334. it. WSformat attempts to recognize the difference between tables or columns ì
  1335. automatically, if more than 4 normal spaces occur, but sometimes this rule ì
  1336. fails. In such instances, it is safer to turn off formatting explicitly:
  1337.  
  1338. .BD Formatting disabled (also .BA, .AW OFF)
  1339. .BE Formatting enabled (also .AW ON)
  1340.  
  1341. Typing ^B in the WSedit editor will not have an effect after typing .BD or ì
  1342. .BA.
  1343.  
  1344. If you type .BD TOTAL at the beginning of a Wordstar document, neither ì
  1345. WSformat will do any formatting whatever.
  1346.  
  1347. .3
  1348. Change the hyphenation algorithm
  1349.  
  1350. .in hyphenation
  1351. .id P_HYPHENATIONCOMMAND
  1352. You have access to the hyphenation algorithm choice within your document like ì
  1353. you have on the hyphenation page of your settings notebook. This is useful ì
  1354. when editing multilingual documents.
  1355.  
  1356. .HY OFF
  1357. or
  1358. .HY NO
  1359. hyphenation off turns hyphenation of words off.
  1360.  
  1361. .HY ON
  1362. turns hyphenation on again and activates the algorithm which was valid before ì
  1363. turning off hyphenation.
  1364.  
  1365. .HY GERMAN
  1366. turns the internal german hyphenation on, using the checkbox values of the ì
  1367. settings notebook.
  1368.  
  1369. .HY TEX
  1370. turns the external tex hyphenation on, with the tex hyphenation file which was ì
  1371. last selected.
  1372.  
  1373. .HY Languagename.TEX
  1374. turns the external tex hyphenation on and makes the tex file Languagename.tex ì
  1375. current
  1376.  
  1377. .HY MANUAL
  1378. or
  1379. .HY HAND
  1380. queries all possible hyphenations. A simple YES-NO-CANCEL dialog box is ì
  1381. presented to the user for his decision.
  1382.  
  1383.  
  1384. .HN3 (Hyphenation number of chars)
  1385.  
  1386. let you change the minimum number of not separated characters when hyphenation ì
  1387. is active. It can be useful to enlarge this number in headings. You are ì
  1388. encouraged to enter a higher value in the HEADINGS.WS headings template file ì
  1389. for every heading. Useful values are from 2 up to 5. The higher the value, the ì
  1390. less hyphenation will be active.
  1391.  
  1392. .HN
  1393.  
  1394. switches the minimum number of not separated characters back to the default ì
  1395. value, which is set in the settings notebook, page hyphenation.
  1396.  
  1397. .3
  1398. Line Height, superscript roll
  1399.  
  1400. .in Line Height
  1401. .ID P_LINEHEIGHT
  1402. .in superscript roll
  1403. .LH8
  1404. line height sets the line height to 8/48 inches. This is the default ì
  1405. linespacing of a conventional typewriter. .LH12 means 150% of the default ì
  1406. typewriter linespacing. .LH10. is a good choice for Times Roman 12 or ì
  1407. Helvetica 12.
  1408.  
  1409. In the settings notebook on the format page, you will find the checkbox
  1410. all .LH Line Height values refer to default normal font
  1411.  
  1412. This has got two effects:
  1413. .tb4
  1414. ■ááall .LH commands gets changed in the FMT file, if you don't use the size of ì
  1415. áááthe default font, e.g. '12' for 'Times Roman 12'.
  1416. ■ááafter selecting a new font with .SF, the line height is recalculated and ì
  1417. áááin the FMT file, WSformat generates a new .LH entry behind the .SF ì
  1418. ááácommand.
  1419.  
  1420. This setting omits that lines with large fonts are overprinted, but old ì
  1421. Wordstar DOS user could get confused. The default setting is enabled.
  1422.  
  1423.  
  1424. .SR3
  1425. superscript/subscript roll defines the height of superscript text (using ^PT ì
  1426. in pairs) or the depth of subscript text (^PV in pairs). The default value is ì
  1427. 3.
  1428.  
  1429. .3
  1430. Text Width
  1431.  
  1432. .in Right Margin
  1433. .in Text Width
  1434. .ID PARAGRAPHWIDTH
  1435. .RM40 (or .BS40)
  1436. sets the width of the text block (right margin) to 40 (the measurement is in ì
  1437. Courier 12 characters). The WSformat default value is 60 and can be modified ì
  1438. in Settings - Settings notebook, page Page. The value does not correspond ì
  1439. to the width of the right paper margin; you enter instead the width of your ì
  1440. text (text width).
  1441.  
  1442. .PO8
  1443. page offset defines the left paper margin. This command affects only ì
  1444. previewing and printing, but not formatting. The measurement is in Courier 12 ì
  1445. characters, the default value is 8.
  1446.  
  1447. To enter separate left margins for left pages (with even page numbers) and ì
  1448. right pages (with odd page numbers), extend the ".PO Page Offset" command in ì
  1449. the following way:
  1450.  
  1451. .POL 13 (Page offset left)
  1452. .POR 7 (Page offset right)
  1453.  
  1454.  
  1455. The width of a default sheet of paper is 83 characters. If your .PO page ì
  1456. offset is 8 and the text block width (.RM 'right margin') is 60, then 83 - ì
  1457. 8 - 60 = 15 characters are left for the right paper margin.
  1458.  
  1459. .3
  1460. Paragraph orientation
  1461.  
  1462. .it Paragraph orientation
  1463. .in centered
  1464. .ID P_PARAGRAPHORIENTATION
  1465. Output centered
  1466.  
  1467. To center text, instead of typing ^PK in front of each line you can also use ì
  1468. the appropriate dot commands:
  1469.  
  1470. .OC ON
  1471. .OC OFF
  1472.  
  1473. The default value is OFF.
  1474.  
  1475. .it Micro justification
  1476. Micro justification
  1477.  
  1478. You can also select whether text is to be set ragged right or justified:
  1479.  
  1480. .BL ON
  1481. Block on turns justification on (fixed right margin) using 'micro ì
  1482. justification'
  1483. .BL OFF
  1484. Block off turns justification off (ragged right margin). ('Micro ì
  1485. justification' is off.)
  1486.  
  1487. If the text is to be right justified (right margin is fixed - .BL ON), ì
  1488. WSformat distributes the empty space remaining at the end of the line equally ì
  1489. between all words. If the Printername.dta file which holds the character ì
  1490. width of all characters and fonts which are used by the document is corrupted, ì
  1491. micro justification will fail and the printed result will be unusable. In this ì
  1492. case, delete the Printername.dta file; it will be re-created ì
  1493. automatically.
  1494.  
  1495. By default, paragraphs are printed with fixed left and right margins (FMT ì
  1496. formatted files), or with a fixed left and a ragged right margin (WS ì
  1497. unformatted files).
  1498.  
  1499. The Wordstar commands .UJ and .OJ are also interpreted. However, you won't ì
  1500. see justification in the editor. .FL (German 'flatter' = bouncing) and ì
  1501. simply .BL (block) without parameters is also interpreted.
  1502.  
  1503.  
  1504. ¡ Do not format double- and triple-spaced text (Wordstar .OJ ON). Only ì
  1505. paragraphs of single-spaced text can be formatted.
  1506.  
  1507. .3
  1508. Auto indention
  1509.  
  1510. .ID P_AUTOINDENTION
  1511. .it Auto Indention
  1512. .LM and .PM refer to the formatting process of WSformat. If you want to ì
  1513. indent your text in a uniform way without reformatting in the editor by using ì
  1514. '.TB' and Ctrl-B, you can use these two dot commands:
  1515.  
  1516. .LM6
  1517. left margin causes the text to begin in column 6; columns 1 through 5 will ì
  1518. be occupied by soft spaces.
  1519.  
  1520. .PM8
  1521. paragraph margin is like the .LM command, but affects only the first line ì
  1522. of each paragraph. In this case, the first line will be further indented.
  1523.  
  1524. To turn off automatic indention, set the default values .LM0 and .PM0.
  1525.  
  1526. .2
  1527. Page formatting commands
  1528.  
  1529. .ID P_PAGEFORMATTING
  1530. .3
  1531. New Page
  1532.  
  1533. .it New Page
  1534. .ID P_NEWPAGE
  1535. .PA
  1536. forces the following text to the beginning a new page.
  1537.  
  1538. .CP10
  1539. conditional page keeps the following 10 lines together. If there is ì
  1540. insufficient space on the page, a page break will be inserted at the location ì
  1541. of the .CP command.
  1542.  
  1543. .3
  1544. Page margins
  1545.  
  1546. .ID P_PAGEMARGINS
  1547. The following page margin commands are available. A table showing these dot ì
  1548. commands with their default values is available on WSformat Settings - ì
  1549. Settings notebook, page page.
  1550.  
  1551. .PL page length
  1552. .MT margin top
  1553. .MB margin bottom
  1554. .PO page offset (=left paper margin)
  1555. .RM right margin (=text width)
  1556.  
  1557. and, to define the separations between header/footer lines and text:
  1558.  
  1559. .FM footer margin
  1560. .HM header margin.
  1561.  
  1562. The european A4 page size is 8.25" x 11.666" and the US Letter standard is ì
  1563. 8.5" x 11". So .PL66 is the length of a US Letter page, while .PL70 is ì
  1564. the length of an european A4 page. See page templates on settings ì
  1565. notebook, page Layout.
  1566.  
  1567. .3
  1568. Header and Footer Lines, Page Numbering
  1569.  
  1570. .in Header line
  1571. .in Footer line
  1572. .ID P_HEADERLINES
  1573. To get a header line which repeats on each subsequent page, enter (for ì
  1574. example) :
  1575.  
  1576. .HE My document, 1st Edition
  1577.  
  1578. You can place similar text at the bottom of the page (footer line):
  1579.  
  1580. .FO My document, 1st Edition
  1581.  
  1582.  
  1583. ¡ You may then designate a font by combining the .HE Header and .SF Select ì
  1584. Font commands:
  1585.  
  1586. .sfE
  1587. .HE My document, 1st Edition
  1588.  
  1589. or
  1590.  
  1591. .HEsfE My document, 1st Edition
  1592.  
  1593. which has no effect on the font selection of lines which follow.
  1594.  
  1595. To center a header or footer line, use the printer command character ^PK. To ì
  1596. justify text right, use the WSedit ^PZ command (equivalent to Wordstar ^P@).
  1597.  
  1598. It is possible to define up to five Header or Footer lines:
  1599.  
  1600. .cp15
  1601. top of page
  1602. .H1
  1603. .H2
  1604. .H3
  1605. .H4
  1606. .H5 = .HE
  1607.  
  1608. (text area)
  1609.  
  1610. .F1 = .FO
  1611. .F2
  1612. .F3
  1613. .F4
  1614. .F5
  1615. end of page
  1616.  
  1617. Note that these lines can appear only if the .MT and .MB values (margin ì
  1618. top and margin bottom) have been assigned values which are high enough to ì
  1619. allocate the necessary space. Use Preview to test whether or not the header ì
  1620. and footer lines appear.
  1621.  
  1622.  
  1623. ¡ You can set the vertical pitch (line spacing) of the header and footer ì
  1624. lines, comparable to the .LH dot command.
  1625.  
  1626. .HH Header line Height
  1627. .FH Footer line Height
  1628.  
  1629. The default value of these commands is 8 (= default Typewriter linespacing of ì
  1630. 6 lines per inch).
  1631.  
  1632. Page numbering
  1633.  
  1634. By default the page number in the footer line is centered:
  1635.  
  1636. .FO ^PK #
  1637.  
  1638. # will be replaced by the current page number when the document is printed.
  1639.  
  1640. You can change this default setting by entering your own footer and header ì
  1641. commands.
  1642.  
  1643. .OP
  1644. To turn off printing of page numbers, use omit pages. This command let the ì
  1645. footer line get void.
  1646. .PG (or .PN)
  1647. turns printing page numbers on again.
  1648.  
  1649. .PC30
  1650. page column prints the page number at column 30 and is retained for Wordstar ì
  1651. compatibility, but will often produce unpredictable results when proportional ì
  1652. fonts are used.
  1653.  
  1654. .PN15
  1655. page number immediately advances the page counter to the value of 15. This ì
  1656. is no good practice, because it may result in the same page number occuring ì
  1657. twice in the same document.
  1658.  
  1659. .3
  1660. Odd and even pages
  1661.  
  1662. .it Odd and even pages
  1663. .ID P_ODDEVENPAGES
  1664. ¡ By default, the page number value has no effect to WSformat printing. If you ì
  1665. want to write a book, the left page is always even (2, 4, 6), and the right ì
  1666. page is odd (1, 3, 5). (If you don't believe it, take any book from your ì
  1667. bookcase and make a spot check!)
  1668.  
  1669. .LR
  1670. Left-right causes WSformat to print all header/footer lines of left (even ì
  1671. numbered) pages left-justified and all header/footer lines of right (odd ì
  1672. numbered) pages right-justified.
  1673.  
  1674. You can treat right and left headers or footers separately:
  1675.  
  1676. .HER My Header text on the right side
  1677. .HEL My Header text on the left side
  1678.  
  1679. This can be also combined with the footers and with several header/footer ì
  1680. lines:
  1681.  
  1682. .H4R My header text on the right side, line 1
  1683. .H5R My header text on the right side, line 2
  1684. .F1R My footer text on the right side, line 1
  1685. .F2RsfE My footer text on the right side, line 2, Font E
  1686.  
  1687. and so on.
  1688.  
  1689. To enter separate left margins for the odd and even pages, extend the ".PO ì
  1690. Page Offset" command in the following way:
  1691.  
  1692. .POL 13 (Page offset left)
  1693. .POR 7 (Page offset right)
  1694.  
  1695. .3
  1696. Paper orientation
  1697.  
  1698. .ID P_ORIENTATION
  1699. .LA (also '.PR or=l')
  1700.  
  1701. .in Paper orientation
  1702. .in Landscape
  1703. .in Portrait
  1704. turns the printer orientation to landscape; the paper width is set larger ì
  1705. than the paper height. The default setting is portrait. The dot commands ì
  1706. referring to the page format do not change automatically. You have to select ì
  1707. the suitable page template on the Layout page of the settings notebook ì
  1708. before formatting. The .LA command only refers to printing.
  1709.  
  1710. .if os2
  1711. WSformat for OS/2 does not support changing the paper orientation. Instead, an ì
  1712. error message box appears while printing if the printer is not set to ì
  1713. landscape. You have to use the settings notebook of the printer object instead ì
  1714. (File - Print Setup - Properties).
  1715. .end
  1716.  
  1717. .2
  1718. Paragraph enumeration
  1719.  
  1720. .ID P_PARAGRAPHENUMERATION
  1721. .in paragraph enumeration
  1722. To locate a text in an unformatted or formatted, both WSedit and WSformat do ì
  1723. enumerate paragraphs. Lines with dot commands and empty lines are not part of ì
  1724. the enumeration, only "real" paragraphs. In WSedit, the paragraph number is ì
  1725. shown in the titlebar ("Par" or german "Abs"). Error messages of WSformat also ì
  1726. refer to the "Par" enumeration. If WSformat is running, doubleclicking to a ì
  1727. paragraph of WSedit (unformatted) let you go into WSedit (formatted) and the ì
  1728. cursor goes to the same paragraph. Because the line and page breaks are not ì
  1729. apparent in the unformatted file, page and line enumeration does not exist ì
  1730. here. The paragraph enumeration is the only way to locate specific text both ì
  1731. in unformatted and formatted files.
  1732.  
  1733. But if you copy text into the formatted files, the formatted file contains ì
  1734. more paragraphs than the unformatted file: In this case, the paragraph ì
  1735. enumeration below the inserted text is no more identical to the paragraph ì
  1736. enumeration of the unformatted file. To avoid this, you have to enclose the ì
  1737. inserted text with two enumerate paragraph dot commands:
  1738.  
  1739. .EP OFF
  1740. (here I've copied text into the formatted file which shall not be ì
  1741. enumerated)
  1742. .EP ON
  1743.  
  1744. Normally, paragraph enumeration is turned on.
  1745.  
  1746. It can be also useful to use the .EP command together with conditional ì
  1747. defines (.if). In this case, text which is only part of the unformatted file ì
  1748. has to be marked.
  1749.  
  1750. If you generate a table of contents (Make - contents), WSformat does insert ì
  1751. .EP commands automatically.
  1752.  
  1753. .2
  1754. Embedding files
  1755.  
  1756. .ID P_EMBEDDINGFILES
  1757. .it Embedding files
  1758. Embedding files
  1759.  
  1760. .FI Filename
  1761. File is a very powerful command. The contents of the file Filename are ì
  1762. inserted at the position where the .FI command is located. This command is ì
  1763. interpreted while formatting but not while printing.
  1764.  
  1765. The file extension makes a great difference.
  1766.  
  1767. .FI Filename.ws
  1768. .FI Filename.fmt
  1769.  
  1770. If the file extension is WS, WSformat interprets the file as an unformatted ì
  1771. file and while formatting, full dot command interpretation and formatting are ì
  1772. used. If the file extension is not WS, the contents of the file are simply ì
  1773. copied to the formatted file.
  1774.  
  1775. Save and Remember current formatting values
  1776.  
  1777. .in save values
  1778. .in remember values
  1779. When using the .FI embed file command, it can be useful to save and ì
  1780. remember current values of dot command settings.
  1781.  
  1782. .S:FONTS
  1783. .R:FONTS
  1784. saves and remembers all current font data (normal, alternate, bold, ì
  1785. italic, bold-italic).
  1786.  
  1787. .S:LINEHEIGHT
  1788. .R:LINEHEIGHT
  1789. saves and remembers the current state of the .LH command.
  1790.  
  1791. .1
  1792. Extended text commands
  1793.  
  1794. The extended text commands provide extended word processing facilities; these ì
  1795. are implemented in a WSformat specific way. For Wordstar DOS users, the ì
  1796. information in this chapter will be completely new.
  1797.  
  1798. .2
  1799. Embedding graphics
  1800.  
  1801. .in Graphic
  1802. .in Bitmap
  1803. .in GIF
  1804. .in JPEG
  1805. .ID P_GRAPHICS
  1806. A provision for embedding graphics was lacking in Wordstar DOS. In a graphical ì
  1807. environment, it is no longer difficult to handle graphics; their support in ì
  1808. WSformat is fully compatible with Hypermake syntax.
  1809.  
  1810. The graphics commands only support Windows Bitmap (BMP) files. GIF and JPEG ì
  1811. support is planned for a future version.
  1812.  
  1813. WSformat offers two simple ways of embedding graphics.
  1814.  
  1815. To embed a graphic in your document, simply enter
  1816.  
  1817. .BM Filename.bmp
  1818.  
  1819. The files are searched in all directories which are listed on the Program ì
  1820. page of Settings - Settings notebook.
  1821.  
  1822. The .BM command is interpreted both while formatting and while printing. ì
  1823. While formatting, WSformat calculates the width and height of your graphic. ì
  1824. The default behavior of WSformat is that the graphics file is stretched ì
  1825. horizontally and vertically until the width matches the text width (depending ì
  1826. on the .RM command). The height of the graphic is calculated and WSformat ì
  1827. enters empty lines into the FMT file:
  1828.  
  1829. .cp13
  1830. ───────────────────────────────
  1831. (running text above the graphic)
  1832. .CP7
  1833.  
  1834.  
  1835.  
  1836.  
  1837.  
  1838.  
  1839. .BM Filename.bmp
  1840. (running text below the graphic)
  1841. ───────────────────────────────
  1842.  
  1843. When previewing or printing, the graphics file is shown.
  1844.  
  1845. If you want the width of the graphics width to be different from the text ì
  1846. width, you can modify the size of the graphic by entering
  1847.  
  1848. .BW 80
  1849.  
  1850. bitmap width before typing the .BM command. A value of 80 means that the ì
  1851. width is 80% of the text width. The graphic will be printed centered, with a ì
  1852. margin of 10% on the left and 10% on the right side. The default value of ì
  1853. .BW is 100. This command also influences formatting. The smaller this value, ì
  1854. the fewer empty lines WSformat will insert.
  1855.  
  1856.  
  1857. Bitmap text
  1858.  
  1859. The .BM command is not appropriate if you want to embed a graphic in running ì
  1860. text. Instead, use:
  1861.  
  1862. .BTX Filename.bmp
  1863.  
  1864. X represents a bitmap character, an arbitrary character which will not ì
  1865. otherwise appear in the text. This character will be replaced in your text by ì
  1866. the bitmap 'filename.' Note that bitmaps can be higher than characters, so you ì
  1867. should select one that will not cause overprinting of characters on the line ì
  1868. above. Block chars like █ (Alt-219), ▄ (Alt-220), ▀ (Alt-223) are useful ì
  1869. bitmap chars (DOS/IBM codepage).
  1870.  
  1871. Text Bitmaps are already interpretated while formatting. WSformat treats such ì
  1872. bitmaps as characters and calculates the width of the bitmap to let the right ì
  1873. margin justified.
  1874.  
  1875. The scale of the .BT graphics is 300 bits per inch, which means that a ì
  1876. graphics file with a 300 pixel width gets a 1 inch (2,54 cm) width on your ì
  1877. printout. You can change this value by entering:
  1878.  
  1879. .GS
  1880. graphics scale. Place this command above your .BT command.
  1881.  
  1882. You are allowed to define up to 20 bitmap chars simultaneously.
  1883.  
  1884. To deactivate a character-bitmap definition, enter:
  1885.  
  1886. .BTX
  1887.  
  1888. without specifying a filename. The actual character will then be printed, ì
  1889. rather than the bitmap.
  1890.  
  1891. .2
  1892. Line drawing
  1893.  
  1894. .in line characters
  1895. .in line drawing
  1896. .ID P_LINEDRAWING
  1897. The IBM codepage contains some characters which represent lines instead of ì
  1898. letters. You can use combinations of these characters to draw boxes.
  1899.  
  1900. WSformat does not send line characters to the printer directly. Instead, it ì
  1901. sends bitmap images of the characters to be printed. The main reason for doing ì
  1902. this are that line drawing characters must be printed only at the default line ì
  1903. height .LH8. To draw an unbroken vertical line, line drawing characters are ì
  1904. converted to commands like 'draw a line from coordinate X to coordinate Y.'
  1905.  
  1906. You are encouraged to use these line drawing characters in running text ─ e.g. ì
  1907. as a dash (Alt-196, narrow lines)
  1908. .tb4
  1909. ═ááor for lists (Alt-205, wide lines).
  1910.  
  1911. Characters which represent double lines are shown as wide lines in preview and ì
  1912. on printout. You can set the width of the narrow and wide lines in the ì
  1913. settings notebook, page Layout.
  1914.  
  1915. Block characters █ (Alt-219), ▄ (Alt-220), ▀ (Alt-223) and - only 437 codepage ì
  1916. - Alt-221 and Alt-222 are also sent as bitmap graphics. Here as an example is ì
  1917. a large exclamation mark
  1918.  
  1919. █
  1920. ▄ which is made by using such block characters (not visible on Winhelp which ì
  1921. uses ANSI Codepage).
  1922.  
  1923.  
  1924. Creating Boxes
  1925.  
  1926. As creating boxes is usually a tedious job, a dot command has been defined to ì
  1927. facilitate line drawing. The following example illustrates its use.
  1928.  
  1929. .sfM
  1930. .cp12
  1931.  .LIXY
  1932.  
  1933.       X                           X
  1934.  
  1935.             Operating systems
  1936.  
  1937.       Y                 Y                X            X
  1938.             Novell         IBM              Hardware
  1939.       Y       Y                          X            X
  1940.           DOS   Netware    OS/2
  1941.       X                           X
  1942.  .LI
  1943. .sf
  1944.  
  1945. The result will be: (view FMT file or make preview)
  1946.  
  1947. .LIXY
  1948. .cp12
  1949.  
  1950.       X                           X
  1951.  
  1952.             Operating systems
  1953.  
  1954.       Y                 Y                X            X
  1955.              Novell        IBM              Hardware
  1956.       Y       Y                          X            X
  1957.          DOS    Netware    OS/2
  1958.       X                           X
  1959. .LI
  1960.  
  1961. .afB
  1962. In the dot command .LIXYZ, X represents an arbitrary character marking the ì
  1963. corners of the box, Y a partition of the box. Z, placed in front of X or Y, ì
  1964. generates double lines (wide lines). A combination of single and double lines ì
  1965. requires the Codepage 437 selection (Page Layout in the settings ì
  1966. notebook).
  1967.  
  1968. The Z char in the .LIXYZ command for producing double lines has to be a ì
  1969. ^P-character like ^PE or ^PR. When using the ^OD toggle in Wordstar DOS, you ì
  1970. can make the ^P-characters invisible to check the correct orientation of the ì
  1971. box. (In WSedit 0.9, this functionality is missing yet, so after entering a ^P ì
  1972. character, the X chars are no more in the same column.)
  1973.  
  1974. WSformat supports proportional fonts in line drawings. The .TS tab stretch ì
  1975. command is very important in this case. You can specify the width of your ì
  1976. boxes with the .TS command. If this produces overlapping columns, enlarge ì
  1977. the .TS command value (default is 60).
  1978.  
  1979. .WA hori 30
  1980. .2
  1981. Chapters, headings, table of contents
  1982.  
  1983. .in heading
  1984. ..in contents
  1985. .in chapters
  1986. .it table of contents
  1987. .ID P_HEADINGS
  1988. WSedit, WSformat and Hypermake provide easy-to-use support for headings and ì
  1989. tables of contents.
  1990.  
  1991. .3
  1992. Heading commands in your source text
  1993.  
  1994. You can arrange your text with heading levels, as you would in a technical ì
  1995. document:
  1996.  
  1997. first heading
  1998.     first sub-heading
  1999.     second sub-heading
  2000.          first sub-sub-heading
  2001.          second sub-sub-heading
  2002.     third sub-heading
  2003. second heading
  2004.  
  2005. In the WSedit/WSformat/Hypermake format, the headings are designated in the ì
  2006. following manner:
  2007.  
  2008. .sfM
  2009.  .1
  2010.  first heading
  2011.  
  2012.  .2
  2013.  first sub-heading
  2014.  
  2015.  .2
  2016.  second sub-heading
  2017.  
  2018.  .3
  2019.  first sub sub-heading
  2020.  
  2021.  .3
  2022.  second sub sub-heading
  2023.  
  2024.  .2
  2025.  third sub-heading
  2026.  
  2027.  .1
  2028.  second heading
  2029. .sf
  2030.  
  2031. On the line immediately following the dot command for the heading level, you ì
  2032. enter the heading text. Heading text can be longer than one line, but must not ì
  2033. extend beyond a single paragraph: a Hard Return marks the end of the ì
  2034. heading.
  2035.  
  2036. In your printout, your document is structured like this:
  2037.  
  2038. 1. first heading
  2039.      1.1 first sub heading
  2040.      1.2 second sub heading
  2041.           1.2.1 first sub sub heading
  2042.           1.2.2 second sub sub heading
  2043.      1.3 third sub heading
  2044. 2. second heading
  2045.  
  2046. WSformat handles up to 9 heading levels, but Hypermake is limited to only 6 ì
  2047. heading levels. WSformat also supports other conventions for enumerations ì
  2048. (letters, roman numerals, as well as others).
  2049.  
  2050. .3
  2051. Headings and WSedit
  2052.  
  2053. WSedit provides support for headings and tables of contents, expressed in ì
  2054. WSformat / Hypermake syntax.
  2055.  
  2056. First, headings are highlighted in green, if the heading checkbox is checked ì
  2057. on the Highlt page of the WSedit settings notebook (press ^OO).
  2058.  
  2059. Second, to help navigating in your unformatted text, WSedit has a contents ì
  2060. window. ^OC opens the contents window. ^OI also opens the contents window and ì
  2061. then jumps to the chapter where the text cursor is currently located.
  2062.  
  2063. .3
  2064. Formatting a text with headings
  2065.  
  2066. .ID P_HEADINGFORMATTING
  2067. When formatting a source text which contains heading commands, these commands ì
  2068. are converted to commands for font selection, line spacing and page breaks. ì
  2069. Previewing and printing the file will display headings in their final correct ì
  2070. form.
  2071.  
  2072. The way these dot commands are to be converted to other commands is defined in ì
  2073. the headings template file. This file can be viewed by selecting settings - ì
  2074. headings template in the WSformat main window. This shows the file ì
  2075. HEADINGS.WS which is located in the directory where WSformat.exe resides. The ì
  2076. file is self-explanatory. Instead of the word 'heading,' WSformat subsitutes ì
  2077. the heading text you have specified.
  2078.  
  2079. You are at liberty to modify this file. If you want to use other heading ì
  2080. files, first make a copy of HEADINGS.WS and then modify the copy. Simply place ì
  2081. your HEADINGS.WS file in the directory where your document files are located, ì
  2082. or substitute another filename, e.g. MYHEADING.WS, and then include the dot ì
  2083. command
  2084.  
  2085. .HF MyHeading.ws
  2086.  
  2087. heading file before entering the first .1 command.
  2088.  
  2089. .CN 3.2.5
  2090. sets the current content numbering. You have to enter decimal notation here. ì
  2091. Use e.g. .CN5 at the beginning if you have got a separate document ì
  2092. containing chapter 5 and 6. The equivalent Wordstar command .P# is also ì
  2093. interpreted.
  2094.  
  2095. .3
  2096. Non-decimal classification
  2097.  
  2098. Some people prefer other ways of enumerating headings. Today, although decimal ì
  2099. classification is a standard, WSformat also supports other forms of ì
  2100. enumerations:
  2101.  
  2102. 1.1 Decimal classification without last dot
  2103. 1.1. Decimal classification with last dot
  2104.  
  2105. I. Roman nnumerals (up to 38 = XXXVIII)
  2106. A. Capital letters
  2107. 1. Customary (arabic) numerals
  2108. a. lowercase letters
  2109. aa. double lowercase letters
  2110. [alpha character]. Ancient greek characters (bu only those in codepage 437, ì
  2111. Alpha = Alt-224, etc.)
  2112.  
  2113. Instead of typing a dot behind the character, a right parenthesis ')'--is also ì
  2114. possible, thus: 1)
  2115.  
  2116. In the headings template file, you can define any or all of these styles of ì
  2117. enumeration.
  2118.  
  2119. .3
  2120. Writing out a table of contents file from your formatted file
  2121.  
  2122. .ID P_CONTENTS
  2123. After finishing your FMT formatted file and fixing all page breaks, WSformat ì
  2124. helps you prepare a properly numbered table of contents.
  2125.  
  2126. In the unformatted file enter, for example, something like:
  2127.  
  2128. .sfM
  2129.  .PA
  2130.  Contents of this document
  2131.  
  2132.  .ci7
  2133.  .. (later, place the table of contents file here)
  2134.  .PA
  2135.  .PA
  2136. .sf
  2137.  
  2138. There are two aspects to consider:
  2139.  
  2140. .in Contents Indention
  2141. .CI
  2142. contents indention sets the tab stop while formatting the table of contents ì
  2143. file, comparable to the Wordstar/WSedit .TB command. The value has to be the ì
  2144. maximum number of characters of your deepest heading enumeration plus 2. ì
  2145. E. g. if you have selected decimal classification and use headings up to level ì
  2146. 3, the width of the heading enumeration does not exceed 5:
  2147.  
  2148. .sfM
  2149. 123456789
  2150. 1.1.1 TextTextText
  2151. .sf
  2152.  
  2153. In this case, a .CI value of 7 or more fits your purpose.
  2154.  
  2155. The other aspect to consider is how many pages the table of contents will ì
  2156. occupy. Because the table is printed before the running text begins, the ì
  2157. length of the table influences the page numbering of your document. You will ì
  2158. therefore have to estimate the length of the table (in pages) and then enter ì
  2159. several .PA page break commands, so the first page of your running text ì
  2160. will get the final page number after inserting the contents. If your first ì
  2161. trial fails, edit the FMT file and enlarge or reduce the number of .PA ì
  2162. commands. Please remember that you have to enter at least one empty line ì
  2163. between two .PA commands.
  2164.  
  2165. After inserting the .CI command and .PA page breaks as described above, do ì
  2166. the following to embed a table of contents file in your formatted file:
  2167.  
  2168. ■ááSelect Make - Content in the WSformat main window. The extension of the ì
  2169. ááácontents file is TOC.
  2170. ■ááNow open the formatted file which has remained unchanged while executing ì
  2171. áááMake - Content.
  2172. ■ááRemember the page number of the first page of your running text.
  2173. ■ááDelete the .PA commands you have inserted previously.
  2174. ■ááCopy the contents of the TOC file to the location you previously ì
  2175. áááallocated.
  2176. ■ááLocate the first page of your running text again and see what page number ì
  2177. áááWSformat has assigned to it. If the number has changed, leave the formatted ì
  2178. áááfile without saving any changes, re-open it, delete or insert a .PA ì
  2179. ááácommand, and repeat the procedure.
  2180.  
  2181. From a technical point of view, the Make - Content function operates ì
  2182. independently of the headings function, explained above. It does only ì
  2183. interpret formatted files which no longer contain any heading commands. So you ì
  2184. can also use Make - Content if you have entered your headings manually. ì
  2185. WSformat takes a careful look to the beginning of each paragraph of your ì
  2186. formatted file and decides whether or not to copy this file into the table of ì
  2187. contents file. If there is any uncertainty, the line is nevertheless copied to ì
  2188. the table of contents file. It is always advisable to take a close look at the ì
  2189. table of contents file and delete any lines which are not headings.
  2190.  
  2191. The criteria are: after reading spaces and printer characters at the beginning ì
  2192. of a paragraph, the first acceptable characters have to be
  2193. ■ááone or two normal (arabic) digits or latin numberals up to XXXVIII, ì
  2194. áááfollowed by a dot or a close-parenthesis ')'
  2195. ■ááone or two upper- or lower-case letters, followed by a close-parenthesis ì
  2196. ááá')'
  2197. ■ááa single captial letter, followed by a dot.
  2198.  
  2199. .tb30
  2200. Unrecognized ááááááááááááááááRecognized
  2201. 123. áááááááááááááááááááááááá12.
  2202. 345) áááááááááááááááááááááááá34)
  2203. 7  áááááááááááááááááááááááááá7.
  2204. IL. áááááááááááááááááááááááááXXXVIII.
  2205. IV  áááááááááááááááááááááááááIV)
  2206. B   áááááááááááááááááááááááááB.
  2207. ab. áááááááááááááááááááááááááab)
  2208. aac) ááááááááááááááááááááááááac)
  2209. .tb4
  2210.  
  2211. Because a TAF file (text and footnotes) will usually contain many paragraphs ì
  2212. beginning with a number followed by ')' - the footnote paragraphs - all ì
  2213. lines in TAF files with a number and ')' are not copied to the Table of ì
  2214. Contents file.
  2215.  
  2216. In the settings notebook, page index, you can specify whether to write ì
  2217. page numbers or not, and whether or not to highlight main headings in ì
  2218. boldface. In any case, an empty line is inserted before writing a main ì
  2219. heading. The first heading type which occurs in the formatted file will be ì
  2220. considered the 'main heading.' This can differ from the .1 command in the ì
  2221. unformatted file.
  2222.  
  2223. .WA hori 30
  2224. .2
  2225. Footnotes, End Notes, Margin Notes
  2226.  
  2227. .in footnote
  2228. .in end note
  2229. .in margin note
  2230. .ID P_NOTESGENERAL
  2231. WSformat supports footnotes in an easy and uncomplicated way.
  2232.  
  2233. If you prepare a file using Wordstar DOS 5-7, load such a file with footnotes ì
  2234. or end notes into WSedit, and then save the file, these notes are converted to ì
  2235. WSformat and Hypermake format.
  2236.  
  2237. Because WSedit and WSformat does not support multi-column text, there is a ì
  2238. special implementation for creating margin notes. Margin notes are very ì
  2239. short text (e.g. 3 or 5 characters long) which appear in the left margin ì
  2240. area.
  2241.  
  2242. .3
  2243. Writing footnotes or end notes in your unformatted file
  2244.  
  2245. .in Footnote
  2246. .it footnote character
  2247. Generating Footnotes or end notes with Hypermake is very simple. For example, ì
  2248. footnote text can be quoted in brackets like [This will be the content of the ì
  2249. footnote] after entering the dot command footnote usage:
  2250.  
  2251. .sfM
  2252.  .FU[]
  2253. .sf
  2254.  
  2255. Other useful footnote bracket pairs are { }, < > or ▄ (Alt-220) ▀ (Alt-223).
  2256.  
  2257. In WSedit, you can highlight these specific characters (^OO settings notebook, ì
  2258. hightlt page, entryfield spec. chars).
  2259.  
  2260. You can add a font selection to the footnote dot command:
  2261.  
  2262. .sfM
  2263.  .FU[]sfB
  2264. .sf
  2265.  
  2266. This will select font B for your footnotes or end notes.
  2267.  
  2268. To select a line height for your footnotes or end notes, add LH followed by ì
  2269. your preferred value:
  2270.  
  2271. .sfM
  2272.  .FU[]sfXlh7
  2273. .sf
  2274.  
  2275. The order of SF and LH makes no difference.
  2276.  
  2277. While formatting, WSformat creates
  2278.  
  2279. ■ an FMT file where the notes text has disappeared and instead a footnote link ì
  2280. appears
  2281. ■ an FUN file (.FU Notes file) which contains the text for all notes.
  2282.  
  2283. You can modify the appearance of your footnote links in the settings ì
  2284. notebook, page notes.
  2285.  
  2286. .3
  2287. Handling end notes
  2288.  
  2289. To embed the .FU notes file at the end of your document, you can manually ì
  2290. copy the FUN file to the end of the FMT file, or you leave this job to ì
  2291. WSformat:
  2292.  
  2293. .FI *.FUN
  2294.  
  2295. Place this command exactly as it appears above (type the '*' sign, not the ì
  2296. filename) at the end of your unformatted file. This will cause the ì
  2297. contents of the FUN file to appear in the FMT file. You cannot enter ì
  2298. additional notes text in your running text after typing this .FI command.
  2299.  
  2300. .3
  2301. Getting real footnotes
  2302.  
  2303. Up to yet, you have only a separate file containing the text of your ì
  2304. footnotes.
  2305.  
  2306. Make - Text and Footnote merges an FMT (formatted text) with an FUN file ì
  2307. (notes text) file. The result is a TAF file which combines Text and ì
  2308. Footnotes.
  2309.  
  2310. When merging text and footnotes together, WSformat has to make page breaks by ì
  2311. itself. There is no way anymore to optimize the page break by hand in the ì
  2312. formatted file.
  2313.  
  2314. In the notes page of the settings notebook, you can define that e.g. the 2 ì
  2315. first and the 2 last lines of a paragraph are always hold together. This omits ì
  2316. a result where the first or the last line of a paragraphs rests alone on a ì
  2317. page.
  2318.  
  2319. However, this function is not adequate to produce proper page breaks. You ì
  2320. frequently have to use the .PA page break and especially .CP ì
  2321. conditional page break. All tables, enumerations and so on have to be ì
  2322. prefixed by .CP commands to omit page breaks. The more .CP commands you ì
  2323. use in your unformatted file, the fewer formatting runs you need to produce a ì
  2324. satisfactory final TAF file.
  2325.  
  2326. WSformat inserts the page breaks in the TAF file one line ahead of where they ì
  2327. are necessary. You are therefore both permitted and encouraged to make minor ì
  2328. changes in your TAF file by moving the last line on a page of your running ì
  2329. text (Wordstar DOS and WSedit ^Y and ^U) to the beginning of the next page, or ì
  2330. to do the converse.
  2331.  
  2332. .3
  2333. Margin Notes
  2334.  
  2335. Margin notes are short notes which occur in the indented left margin of the ì
  2336. formatted file. When insertion of margin notes is activated, all formatted ì
  2337. text will be indented. The usage is similar to the footnote / end note command ì
  2338. of WSformat.
  2339.  
  2340. Instead of .FU, you enter .MN margin notes (or .BV German ì
  2341. "Blattverweise").
  2342.  
  2343. .MN<>3
  2344. Here is an example of a margin note, as it would occur in the indented left ì
  2345. margin of your text. To insert such a note, you would mark<007> this line.
  2346.  
  2347. To see what the result would be, take a look at the FMT file!
  2348.  
  2349. .MN<>3
  2350. This is a sample for a margin note. Margin notes occur in the left indention ì
  2351. area of your text. Now I mark<007> this line.
  2352. .MN
  2353.  
  2354. The characters < and > bracket the text of a margin note. '5' sets the ì
  2355. maximum length of margin notes (in number of characters) to 3. That means ì
  2356. that the space allocated for the margin is sufficient to accommodate when ì
  2357. printing margin notes with a length of 3 characters: the first character of ì
  2358. the paragraph appears in column 5, and the number of soft spaces which are ì
  2359. inserted is 4.
  2360.  
  2361. In the settings notebook, page Notes you can set a default value for the ì
  2362. length of margin notes. A numeric value in the .MN command overrides this ì
  2363. default value.
  2364.  
  2365. When using margin notes, the text width is increased, while the right margin ì
  2366. gets less.
  2367.  
  2368. If you want to specify a font attribute (bold, italic) for your margin notes, ì
  2369. you can extend the .MN command by entering ^P, followed by the appropriate ì
  2370. Printer command character:
  2371.  
  2372. .MN<>3^Y^Y
  2373. sets the margin notes' font attribute to italic.
  2374.  
  2375. .MN
  2376. without parameters turns off the margin notes function.
  2377.  
  2378. Margin notes and error messages
  2379.  
  2380. It is not possible to print two margin notes on one line. Another limitation ì
  2381. is that the length of the margin notes may not exceed the numeric value ì
  2382. entered in the .MN command, because the space in the margin would be ì
  2383. insufficient to accommodate it.
  2384.  
  2385. .WA verti 25
  2386. .2
  2387. Index
  2388.  
  2389. .in Index
  2390. .ID P_INDEXGENERAL
  2391. .3
  2392. Introduction
  2393.  
  2394. Both WSformat and Hypermake can prepare indexes; the commands in the source ì
  2395. text are nearly identical. However, the results differ. WSformat creates a ì
  2396. file INDEX_1.WS where the format of the index is the following:
  2397.  
  2398. Computer Networks 27
  2399.  
  2400. Workgroup
  2401. -, administration 53
  2402. -, computing 57
  2403.  
  2404. The INDEX_1.WS shows the index entries in alphabetic order.
  2405.  
  2406. To generate an index, mark the index entries in the unformatted WS file by ì
  2407. using dot commands and special characters. Then format the text. After the ì
  2408. page breaks of the FMT file are adjusted, the last task is to select the menu ì
  2409. item Make - Index. WSformat reads the FMT file, writes all index entries ì
  2410. into the temporary Wordstar file Projectname.IX1, merges the information of ì
  2411. all *.IX1 files (even of different WS projects, see Volumes) together and ì
  2412. writes a file INDEX_1.WS, which contains the generated index. You can then ì
  2413. copy this file by hand into your FMT file. (You may then delete the *.IX1 ì
  2414. files; they are not deleted by WSformat.)
  2415.  
  2416. There are some special features beyond those available in Hypermake:
  2417.  
  2418. ■ emphasised index entries, where the page numbers appear in bold face
  2419. ■ several indexes INDEX_2.WS, INDEX_3.WS, for example, one only for locations, ì
  2420. another only for persons.
  2421. ■ one index for several WS project files which represent different volumes.
  2422.  
  2423. The index commands in your source text are identical to the Hypermake syntax. ì
  2424. The .IN and .IT commands in this document refer to this function, but it ì
  2425. is also possible to mark words or expressions in running text (not used in ì
  2426. this document).
  2427.  
  2428. Hypermake knows only one index and does not support emphasized entries. ì
  2429. Instead, it creates links from all other occurrences of the expression to the ì
  2430. marked occurrence.
  2431.  
  2432. .3
  2433. Index char, Marking a single word
  2434.  
  2435. Enabling index function; selecting the Index Character
  2436.  
  2437. In the WS file, the dot command
  2438.  
  2439. .IC#  (.ST#)
  2440.  
  2441. index character let you specify an index character. # represents an ì
  2442. arbitrary character which is not otherwise used in your text. This setting is ì
  2443. valid up to the end of your document.
  2444.  
  2445. .it index character
  2446. Marking a single word
  2447.  
  2448. You can mark a single word for indexing with the index char.
  2449.  
  2450. .sfM
  2451. A #workgroup is a group of people...
  2452. .sf
  2453.  
  2454. The index char is visible both in the WS and the FMT file, but is neither ì
  2455. printed nor shown in the Preview window.
  2456.  
  2457. .3
  2458. Marking a phrase of several words
  2459.  
  2460. When using the index char, only one word will be marked. A word ends with the ì
  2461. first character which is not a letter or '-'.
  2462.  
  2463. To mark a phrase, you have to use colons ':' as brackets:
  2464.  
  2465. .sfM
  2466. Today, the #:security of computers: is...
  2467.  ...
  2468. Nevertheless, the #:security of mainframes: can be...
  2469.  ...
  2470. But the #:usability of computers; has to...
  2471. .sf
  2472.  
  2473. In the index, it will appear as:
  2474.  
  2475. .sfM
  2476. computers, usability of 37
  2477. security
  2478. -, of computers 37
  2479. -, of mainframes 37
  2480. .sf
  2481.  
  2482. .in leading word
  2483. Note the difference between the first and second examples and the third: A ì
  2484. `#:XXXX:' with a colon at the end will use the first word of the phrase as the ì
  2485. leading word; a `#:XXXX;' with a semicolon after the last word. The leading ì
  2486. word is the word which determines the alphabetic order in the index.
  2487. You can use the `colon brackets' to crop endings:
  2488.  
  2489. .sfM
  2490. The importance of #:computer:s is growing...
  2491. .sf
  2492.  
  2493. In the index `computer' will appear without the `s'.
  2494.  
  2495. .3
  2496. Marking outside the running text
  2497.  
  2498. .ID P_linkingdotc
  2499. With the dot command INdex
  2500.  
  2501. .in security of computers
  2502.  
  2503. you can place a word or a phrase in the index. Because it is a dot command, ì
  2504. `phrase' will not be printed. You can use this command when the phrase you ì
  2505. want to place in the index does not appear explicitly in the running text.
  2506.  
  2507. For Wordstar compatibility, .IX with all specific Wordstar syntax is also ì
  2508. supported.
  2509.  
  2510. .in index turned
  2511. Normally, the first word of the phrase will be the leading word. If you want ì
  2512. instead to make the last word the leading word, such as using the brackets ì
  2513. colon-semicolon in running text, you can use the dot command index turned.
  2514.  
  2515. .it usability of computers
  2516.  
  2517. has the same effect as
  2518.  
  2519. .in computers usability of
  2520.  
  2521. Because Hypermake treats these two lines different, it is useful to use the ì
  2522. .in index turned notation in WSformat, and it is more legible in the WS ì
  2523. file.
  2524.  
  2525. .3
  2526. Emphasized Index entries
  2527.  
  2528. `Emphasized index entries' receive a bold-case page number in the index. To ì
  2529. emphasize an index entry, type the index char twice
  2530.  
  2531. .sfM
  2532. A ##workgroup is a group of people...
  2533. Today, the ##:security of computers: is...
  2534. .sf
  2535.  
  2536. or use the dot commands .IN or .IT in upper-case letters:
  2537.  
  2538. .IT usability of computers
  2539.  
  2540. instead of
  2541.  
  2542. .it usability of computers
  2543.  
  2544. .3
  2545. Several Indexes
  2546.  
  2547. WSformat supports more than one index; Hypermake does not.
  2548.  
  2549. To produce several indexes, you must use the .IC command several times, e. ì
  2550. g.:
  2551.  
  2552. .IC# (default index)
  2553. .IC& (location index)
  2554. .IC% (person index)
  2555.  
  2556. (But Hypermake allows only one index. In Hypermake, you can change the index ì
  2557. character when using .IC a second time.)
  2558.  
  2559. You can now use three index characters in the running text. It is possible to ì
  2560. mark an expression for several indexes:
  2561.  
  2562. .sfM
  2563. A #&%workgroup is a group of people...
  2564. .sf
  2565.  
  2566. You also have access to the additional indexes by using the dot commands:
  2567.  
  2568. .IN& New York
  2569. .IN#&% Workgroup
  2570.  
  2571. .IN with no index character refers to the first index.
  2572.  
  2573. When using Make - Index, the indexes are written to the files INDEX_1.WS, ì
  2574. INDEX_2.WS, INDEX_3.WS.
  2575.  
  2576.  
  2577. .3
  2578. Managing Project Volumes
  2579.  
  2580. .in Volumes
  2581. While running Make - Index, the current FMT file is read and information ì
  2582. about index entries is stored in the Wordstar file Projectname.IX1. You can ì
  2583. produce one or more such volumes. The only thing required is to write a number ì
  2584. between the name of the file and the file extension ".WS":
  2585.  
  2586. .sfM
  2587. MyProject1.WS
  2588. MyProject2.WS
  2589. MyProject3.WS
  2590. .sf
  2591.  
  2592. and then to run Make - Index on all these projects. Because the temporary ì
  2593. file MyProject1.IX1 remains available when running Make - Index on ì
  2594. MyProject2, you get several *.IX1 files. The merging function always ì
  2595. refers to all *.IX1 files and merges all Projects (Volumes) together. To ì
  2596. distinguish Page 30 of MyProject1 from Page 30 of MyProject2, the page ì
  2597. numbers are also shown as roman numerals for the different volumes:
  2598.  
  2599. security
  2600. -, of computers I-30
  2601. -, of mainframes II-30
  2602.  
  2603. WSformat can generate roman numerals up to 38.
  2604.  
  2605. .2
  2606. Conditional statements
  2607.  
  2608. .in if condition
  2609. .in conditional statement
  2610. .ID P_IFCONDITION
  2611. With conditional statements, you can create slightly different variations of ì
  2612. the FMT files, derived from the same source text. If you insert these commands ì
  2613. in the FMT file manually, these commands will not be interpreted during ì
  2614. previewing and printing, because only the format function recognizes these ì
  2615. commands.
  2616.  
  2617. There are three dot commands:
  2618.  
  2619. .sfM
  2620.  .IF CONDITION
  2621.  .ELSE
  2622.  .END
  2623. .sf
  2624.  
  2625. The condition statements are not case-sensitive. Note that The ELSE command ì
  2626. need not be included.
  2627.  
  2628. This means text between these commands is interpreted only if the condition is ì
  2629. set (is true). They are set in the WSformat main window, if entry field. You ì
  2630. may enter more than one condition, which must be separated by spaces.
  2631.  
  2632. The condition WSFORMAT is always set. Use this condition to distinguish text ì
  2633. designated for Hypermake or for WSformat. The OS/2 version of WSformat also ì
  2634. sets the condition OS2.
  2635.  
  2636. WSformat also supports the following expressions:
  2637.  
  2638. .sfM
  2639.  .IF NOT COND
  2640.  .IF COND1 AND COND2
  2641.  .IF COND1 OR COND2
  2642. .sf
  2643.  
  2644. I regret that more sophisticated if-conditions grouped with parentheses are ì
  2645. not supported.
  2646.  
  2647. The Wordstar command .EI end if can be used instead of the .END ì
  2648. command.
  2649.  
  2650. .1
  2651. FAQ
  2652.  
  2653. .in FAQ
  2654. I will place questions I get from you here.
  2655.  
  2656. .WA verti 25
  2657. .1
  2658. About
  2659.  
  2660. .in WSformat
  2661. .ID P_ABOUT
  2662. .2
  2663. Registration
  2664.  
  2665. .ID P_REGISTRATION
  2666. .in Registration
  2667. .in price
  2668. .in fee
  2669. WSformat is Shareware, but this refers only to the formatting function. If ì
  2670. you format documents often, you are asked to register. You are allowed to send ì
  2671. WSformat to friends or to a publishing house for printing your formatted ì
  2672. document. The registration key rests on your computer. WSedit is Freeware.
  2673.  
  2674. The normal registration fee is 120 Dollar or 100 EUR. The student ì
  2675. registration fee is only 30$ or 25 EUR.
  2676.  
  2677. The key is valid for all 1.X versions and for all supported operating ì
  2678. systems.
  2679.  
  2680. When ordering more than one licenses, you will get a 40% discount for every ì
  2681. additional license (non-student licenses).
  2682.  
  2683. .URL http://www.bmtmicro.com
  2684. .in BMT Micro
  2685. .LOCAL
  2686. You can register this software via BMT Micro. If you want to get the student ì
  2687. price, please send a copy of your Student ID to BMT Micro. Please visit
  2688. http://www.writeandset.com/english/register.html
  2689. to get a BMT Micro order form.
  2690.  
  2691. If you contact BMT Micro, I will get informed by E-Mail. Then I send you the ì
  2692. registration key. This process takes 1-2 days.
  2693.  
  2694. If you have got a bank account in an Euro country, you can transfer the money ì
  2695. to my bank account in Germany Dresdner Bank Ottobrunn, german bank code 700 ì
  2696. 800 00, account Nr. 075 64 62 400. In this case send me your Student ID via ì
  2697. postal mail or fia FAX to Germany (I'll send you my FAX number via E-Mail.)
  2698.  
  2699. .2
  2700. Disclaimer
  2701.  
  2702. WSformat is provided as is and comes with no warranty of any kind, either ì
  2703. expressed or implied. In no event will the author be liable for any damages ì
  2704. resulting from the use of this software.
  2705.  
  2706. .2
  2707. Author
  2708.  
  2709. .bw 20
  2710. .bm center
  2711. .bm Martin.bmp
  2712.  
  2713. .in Author
  2714. Dr. Martin Vieregg, 37. I've studied economics. My main job is working in my ì
  2715. own consulting company. Our special subject is public transport, especially ì
  2716. railways and airports. The title of my doctoral (PhD) thesis was 'increasing ì
  2717. efficiency of railway long-distance passenger traffic'.
  2718.  
  2719. .in Contacting the author
  2720. .in E-Mail
  2721. E-Mail address: Martin@hypermake.de
  2722.  
  2723. Homepage of my Freeware- and Shareware programs:
  2724.  
  2725. http://www.hypermake.com
  2726.  
  2727.  
  2728. Postal Address:
  2729.  
  2730. Dr. Martin Vieregg
  2731. Emdenstr. 11
  2732. D-81735 Munich
  2733. (Germany)
  2734.  
  2735.  
  2736. .2
  2737. Versions and future plans
  2738.  
  2739. .in program versions
  2740. WSformat 0.81
  2741.  
  2742. The first published version of WSformat. 0.8X are alpha versions.
  2743.  
  2744. If you have bug reports and ideas for new functionality, please E-Mail me!
  2745.  
  2746. WSformat 0.82
  2747.  
  2748. is only a bugfix of 0.81.
  2749.  
  2750. WSformat 0.83
  2751.  
  2752. contains the index functionality. The index is also described in the docu ì
  2753. (chapter extended text formatting). A handful minor bugfixes.
  2754.  
  2755. WSformat 0.84
  2756.  
  2757. has got a "format info and error message window" where error and info messages ì
  2758. appear concerning formatting: E.g. an error message occurs here if a dot ì
  2759. command is used in a wrong way.
  2760. Then 0.84 fixes some redraw problems of the preview window.
  2761.  
  2762. WSformat 0.85
  2763.  
  2764. points the focus to communication between WSformat and WSedit. The archive ì
  2765. file also contains a new WSedit program.
  2766.  
  2767. The new functions concerning both programs are:
  2768. -ááDoubleclick to a message in the error message window opens WSedit with the ì
  2769. ááácursor in the paragraph refering to the error message
  2770. -ááRunning "format" automatically saves the WS file, running "preview" or ì
  2771. ááá"print" automatically saves the formatted file (see settings notebook, ì
  2772. ááápage Program, checkbox auto save).
  2773.  
  2774. The .FM formatting on/off command has been replaced by .BD .BE (enable/disable ì
  2775. formatting) because .FM is already allocated by "foot margin".
  2776.  
  2777. WSformat 0.92, 0.93
  2778.  
  2779. the first beta version, a lot of bugs fixed. Bubble help file dothelpe.txt ì
  2780. explains the WSformat commands in the WSedit editor window.
  2781.  
  2782. WSformat 0.94
  2783.  
  2784. A really important bugfix, dozens of smaller bugs now fixed. New Name ì
  2785. "Write&Set" for WSedit+WSformat. A "insert dot command" window (click to the ì
  2786. "command" menu item in WSformat main menu) is programmed new and let you ì
  2787. insert dot commands per mouse click.
  2788.  
  2789. Future versions
  2790.  
  2791. There are a lot of things to to in the next month.
  2792.  
  2793. Jobs I plan for the next time:
  2794.  
  2795. ■áátranslating WSformat to german (WSedit is already translated)
  2796. ■ááfaster preview on big documents when browsing a document back
  2797. ■áámore graphics file formats (GIF and JPG)
  2798. ■áámulti-colum support for preview and printing
  2799. ■áájump from Preview back to FMT or WS file and search the same location
  2800.  
  2801. Perhaps I will publish a smaller Freeware EXE version with print functionality ì
  2802. only (WSview).
  2803.  
  2804. After publishing Write&Set 1.0, I want to publish a Linux version and to ì
  2805. translate Write&Set into German. To translate Write&Set to other languages, I ì
  2806. need help from native speakers. Please contact me if you are interested in ì
  2807. such an effort - you will receive a donation for your work.
  2808.  
  2809. Last but not least, I'm thinking about a substitute format for the WS file ì
  2810. format. Hypermake already interpretes ANSI text with dot commands, and for ì
  2811. WSedit and WSformat I plan this, too. But the concrete format definition has ì
  2812. to be considered very well. Perhaps I only implement this option for ì
  2813. unformatted files, and not for formatted files.
  2814.  
  2815. .2
  2816. History
  2817.  
  2818. .in History
  2819. In the late 80's, I published a Worstar DOS extension program 'StarExtender' ì
  2820. in german language which had hyphenation, footnote, Line drawing, index and ì
  2821. proportional printing support. WSformat is based on this program which is ì
  2822. very-well tested for a lot of years. This is the reason that the basic format ì
  2823. functionality works very well even WSformat is beta state software. Because ì
  2824. the formatting and printing kernel is optimized for old computers from the ì
  2825. 80's, today WSformat is extremely fast.
  2826.  
  2827. .2
  2828. Bug report
  2829.  
  2830. .in bugs
  2831. Fixed Bugs
  2832.  
  2833. 0.81.01: (Win95-98-ME) Registering printer fonts fails, program hangs
  2834. 0.81.02: (all) WSformat.dta user settings were not written
  2835.  
  2836. 0.82.01: malfunction using .PM and .LM
  2837. 0.82.02: malfunction when creating Fonts.ini if a large number of fonts is ì
  2838. installed
  2839.  
  2840. 0.83 fixes also a handful other minor bugs, not worth to mention.
  2841.  
  2842. 0.84.01: redraw problems of the preview window
  2843.  
  2844. 0.85.01: Preview in Landscape format was not programmed yet
  2845. 0.85.02: running WSedit from WSformat with long filenames containing spaces ì
  2846. did not work
  2847. 0.85.03: Underlining several words in running text was not continous
  2848.  
  2849. 0.92, 0.93: smaller bugfixes
  2850.  
  2851. 0.94.01: several Preview window redraw problems fixed
  2852. 0.94.02: Fonts names with " characters, e.g. .SFA" did not work
  2853. 0.94.03: wrong page break when using comment lines
  2854. 0.94.04: WSformat crashes while closing when the "registering fonts" window ì
  2855. was active
  2856.  
  2857. 0.94 and 0.95 fixes also a lot of smaller bugs, not worth all to mention. In ì
  2858. 0.94, communication between WSformat, WSedit and reverse was buggy, especially ì
  2859. in the Windows version. So features which were already programmed have not ì
  2860. worked.
  2861.  
  2862. Known Bugs, not fixed yet
  2863.  
  2864. none yet
  2865.  
  2866. .2
  2867. Download Location
  2868.  
  2869. http://www.WriteAndSet.com
  2870.  
  2871. Filenames:
  2872. OS/2-eCS version: wset-os2.zip
  2873. Win95/98/ME/NT/Win2000/XP version: wset-win.zip
  2874.  
  2875. Archive file names with version number (e.g. wset100.zip) are usually the ì
  2876. Windows version.
  2877.  
  2878. .2
  2879. Trademarks
  2880.  
  2881. IBM and OS/2 is a registered trademark of International Business Machines ì
  2882. Corp.
  2883. WordStar is a trademark of The Learning Company.
  2884. Windows is a trademark of Microsoft.
  2885.  
  2886. .2
  2887. Other progs
  2888.  
  2889. Other programs I have written, both Windows 95/98/ME/NT/2000/XP and OS/2 ì
  2890. (Linux versions for some programs are planned)
  2891.  
  2892. .in Hypermake
  2893. Hypermake:
  2894. A Hypertext compiler which creates HTML files, Winhelp MS HTML-Help and OS/2 ì
  2895. Help from WSformat source files. The WSformat help file is created from this ì
  2896. docu by Hypermake. Automatic linking, window arrangement, helptables, ì
  2897. footnotes, tables and other features. Shareware if source file > 20 kB.
  2898.  
  2899. .in WSedit
  2900. WSedit:
  2901. Wordstar (DOS)-compatible editor: Reading and writing Wordstar (DOS) files, ì
  2902. ASCII IBM and ISO codepage. Supports Wordstar Ctrl key commands and CUA ì
  2903. commands. Syntax-highlightning, Translation, spell checking, function key ì
  2904. macro recorder and a lot of other features. WSedit handles very large ASCII ì
  2905. files. Freeware.
  2906.  
  2907. pmCalc: a "pocket" calculator automatic clipboard functionality, programmers ì
  2908. and scientific functions, Regression. There's a separate input and output ì
  2909. field, the formula you type rests in the input field. (Shareware)
  2910.  
  2911. TinyAlarm:
  2912. A simple countdown with a slider from 1 to 60, an alarm by entering alarm time ì
  2913. and a chime. System shutdown. Freeware.
  2914.  
  2915. cd-shortcut:
  2916. instead of whole directory names you enter only substrings. Searching through ì
  2917. several drives and opening OS/2 WPS folders. Freeware.
  2918.  
  2919. Simple Zipshell:
  2920. Packing and unpacking ZIP files by using the graphical desktop. Freeware.
  2921.  
  2922. Clear:
  2923. (only OS/2) Uses also Info-Zip and let you backup your data e.g. on floppies. ì
  2924. You can enter filenames like *.BAK which are not copied, directories which are ì
  2925. skipped. Then you can enter filenames with a specific age which are deleted. ì
  2926. Freeware.
  2927.  
  2928. For more information, screenshots and downloads, visit my Homepage
  2929.  
  2930. http://www.hypermake.com
  2931.  
  2932. end of document