home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / jsage / znode3 / uploads / just13.lbr / FORMAT.IZF / FORMAT.INF
Encoding:
Text File  |  1991-09-02  |  33.4 KB  |  699 lines

  1.  
  2.  
  3.                     COMMENTS ON TEXT FORMAT PROGRAMS
  4.  
  5.                                 Irv Hoff
  6.                              22 March 1988
  7.  
  8.  
  9. This is a review  of  a  several  word  format programs including ROFF4,
  10. RNF13, ALPHATXT and WordStar.  It gives examples of how they insert fill
  11. blanks to justify to even margins and how (or if)  they  reformat munged
  12. text.  It shows how they handle punctuation ending a sentence.  Examples
  13. of the  new  JUSTIFY.COM  program  are  included.  Good  information for
  14. anybody interested in word processing.  114 records, 15k.
  15.  
  16.  
  17.                               INTRODUCTION
  18.  
  19.  
  20. There are at least three  public domain (free) text formatting programs:
  21.      ALPHATXT
  22.      RNF13
  23.      ROFF4
  24.  
  25. They all have quite a bit in common, using "dot" commands.  They all can
  26. reformat, by "filling lines" as close as possible to your requested line
  27. width.  They can quit at that  point,  or  also justify to even margins.
  28.  
  29. Note: There is one additional program written by  Irv  Hoff  that merely
  30. justifies to even margins.  It makes no effort to reformat.  It needs no
  31. "dot commands".  It  is  named "JUSTIFY.COM".  It can be used with ASCII
  32. files produced by any normal text editor.
  33.  
  34. JUSTIFYING:  This is illustrated  in  the  examples  at  the end of this
  35. review.  Results of these various programs are included:
  36.  
  37.      ALPHATXT       - Rich Abbot's p. d. program, Turbo PASCAL
  38.      JUSTIFY        - Irv Hoff's program, assembly language
  39.      RNF13          - C. B. Falconer's program, special PASCAL
  40.      ROFF4          - Ernest Bergmann's program in "C"
  41.      WordStar 3.3   - Sold by MicroPro
  42.      WordStar 4.0   - Sold by MicroPro
  43.  
  44.  
  45.                          SUMMARY OF EACH SYSTEM
  46.  
  47.  
  48. WORDSTAR 4.0 -- This is (by  some margin) the least suitable of all.  If
  49. the line needs only one fill blank it ALWAYS goes between  the  last two
  50. words.  If two  fill  blanks  are  needed,  the  second  one always goes
  51. between the first two words.  If  three  are  needed the third is always
  52. included at the right side.  If the line had ended  with  something like
  53. this:
  54.  
  55.      xxxxxxxxxat the right side.  If
  56.                                 ^^
  57.                       2 blanks after a period
  58.  
  59. and you needed at  least  three  fill  blanks, WordStar 4.0 would always
  60. wind up with this:
  61.  
  62.      xxxxxxxxxat the right side.    If
  63.                                 ^^^^
  64.                         2 extra blanks added
  65.  
  66. Thus WordStar 4.0  always  starts  at  the  right  side, then alternates
  67. blanks from right side, left side, right side  left  side,  etc.  It can
  68. (and often  does)  leave outlandish gaping holes at the end of sentences
  69. that correctly terminate with two spaces following the punctuation.
  70.  
  71. WORDSTAR 3.3 -- Marginally better  than WordStar 4.0.  If only one blank
  72. fill is needed, it alternates between the last two words  and  the first
  73. two.  If two  blanks are needed, it comes out identical to WordStar 4.0.
  74. If three are needed, the first line would have two at the right side and
  75. one at the left side, the  second  line  would have two at the left side
  76. and one at the right side.
  77.  
  78. Thus WordStar 3.3 is  identical  to  WordStar  4.0  if there are an even
  79. number of fill characters needed, putting an equal  number  on  both the
  80. left side  and  right side of the line.  With an odd number, the greater
  81. number will alternate from right side to left side.
  82.  
  83. RNF13 and ROFF4 --  These  are  a  noticeable improvement over WordStar.
  84. However, if only one blank is needed, both do it just like WordStar 3.3.
  85. (First line puts the blank between the last two words, second  line puts
  86. the blank between the first two words.)
  87.  
  88. With two or more blanks, the first line puts them all on the right side,
  89. the second  line  puts  them  all  on  the  left  side,  etc.  Not  very
  90. imaginative, but does look substantially better than WordStar, which can
  91. have some  "holes"  on  every  line on both sides, assuming for now that
  92. each line would require at least two blanks.
  93.  
  94. Like WordStar, both of these programs can easily put two extra blanks in
  95. an area that already has two blanks:
  96.  
  97.      xxxxxxxxxat the right side.    If
  98.                                 ^^^^
  99.                         2 extra blanks added
  100.  
  101. ALPHATXT -- Very imaginative.  Appears  to  use  a random system that is
  102. difficult to predict, to insert blanks in the line.  It  is  very likely
  103. the best  of all such justification programs with the possible exception
  104. of Irv Hoff's  JUSTIFY.  I  say  "possible  exception"  as ALPHATXT also
  105. suffers from the same weakness  all  those  already  mentioned  have, of
  106. putting extra  fill  characters  where  two  might already exist, easily
  107. making up to four at those locations:
  108.  
  109.      xxxxxxxxxat the right side.    If
  110.                                 ^^^^
  111.                         2 extra blanks added
  112.  
  113. NOTE:  When formatting, WordStar  and  ALPHATXT  leave  the text as they
  114. found it, but attempt to fill  the  line  as  closely  to  the requested
  115. length as  they can.  Generally this works just fine but if reformatting
  116. files  that  have  "fill   blanks"   already   in   them  from  a  prior
  117. justification, they do a very poor job.  Not only are those retained but
  118. additional ones added to make the present line  the  correct width.  The
  119. result can  be  rather  grotesque, although it is fair to say few people
  120. would have  any  incentive  to  reformat  such  an existing file.  Other
  121. programs such as ROFF4, for example, make this quite easy to do.
  122.  
  123. JUSTIFY -- This program has  several features that are somewhat unusual.
  124. Instead of only using the right end, then the left end, it also uses the
  125. middle.  In addition, it never puts any fill  blanks  between  the first
  126. two words or the last two (uness they are the only locations left) as do
  127. all the  other  programs  with  the exception of the random fill routine
  128. used by ALPHATXT.
  129.  
  130. With one fill character,  JUSTIFY  puts  it  in  the middle of the first
  131. line, to the right side of the second line (but indented  one  word from
  132. the last  two)  and to the left side of the third line (but indented one
  133. word from the first two.)
  134.  
  135. This keeps the  extreme  ends  looking  normal  especially  by using the
  136. center for every third line.
  137.  
  138. This program also NEVER puts  ANY  additional  fill blanks if two blanks
  139. already exist at that location.  JUSTIFY is the  only  program  known to
  140. have such a feature.
  141.  
  142. It also has  an  additional  unique  feature  where  a  line that ends a
  143. paragraph (and normally would  thus  not  be  justified)  will  still be
  144. justified IF  it  needs only 3 or fewer additional fill characters.  The
  145. author of this program  always  thought  it  looked pretty silly to have
  146. nice even margins, but then see a line that was one or  two  columns shy
  147. of the others.
  148.  
  149. Thus JUSTIFY has several features  that  minimize the "empty" areas most
  150. of the other programs often have:
  151.  
  152.      1. Instead of alternating from  extreme  left and right ends of the
  153.      line JUSTIFY alterates  between  middle,  right  (indented  1 extra
  154.      word) left (indented 1 extra word.)
  155.  
  156.           a. With this  scheme,  the  extreme  ends  always look normal,
  157.           quite different from WordStar.
  158.  
  159.      2. Unlike all the others  JUSTIFY never puts additional fill blanks
  160.      in a location where two blanks already exist.  All  the  rest could
  161.      have up to four blanks in such locations, three being very common--
  162.      even though  many  other areas on the same line only have one blank
  163.      and could have been used for better appearance.
  164.  
  165.      3. JUSTIFY is the only such program that fills out lines at the end
  166.      of a paragraph that are within 3-4 columns of normal length.
  167.  
  168. NOTE: Perhaps  a  comment  should  be  added  that  MicroPro  (owner  of
  169. WordStar) claims  everybody  using justification for even margins likely
  170. has a printer with  microjustificaiton  anyway,  so "who cares" what the
  171. CRT display looks like?
  172.  
  173. Well they are wrong.  Not  everybody  makes  a  printed  copy of all the
  174. files they look at, in  addition  to  which  a  lot  of non-professional
  175. computer owners do not have printers with microjustification.
  176.  
  177. Consequently, having a program that  can  justify to even margins in the
  178. least obvious manner is of immediate interest to at least  a  portion of
  179. computer users.
  180.  
  181. To this end, the JUSTIFY program  likely succeeds better than pehaps any
  182. other mentioned in this review.
  183.  
  184. It might be fair to  mention  at  this  time that NO method of obtaining
  185. even margins by merely adding extra "fill  blanks"  here  and  there can
  186. really give  comparable  results  to  the  type  of  results  you see in
  187. magazines or newspapers.
  188.  
  189. Section 1, above, discussed the results obtained from the examples which
  190. are included at  the  end  of  this  review.  It had additional comments
  191. regarding handling areas where two blanks already exist, for punctuation
  192. after end of sentences.
  193.  
  194. Section 2,  here,  will  discuss  some  of  the  various  advantages and
  195. disadvantages of the format programs.  These comments will  only involve
  196. the topics  the  author  has observed--many features of the programs not
  197. having been evaluated  at  this  time.  (Such as underlining, footnotes,
  198. subscripts, etc.)
  199.  
  200. Section 3,  below,  has  examples  of  the  way  various word processors
  201. justify ASCII text.  Each program was run for  1,  2,  and  then  3 fill
  202. characters.
  203.  
  204. ALPHATXT -- by Rich Abbott.  Sometimes called ALPHAT20.  Easy program to
  205. use, but needs a lot  of  "hand-holding".  Requires a new dot command at
  206. the completion of each paragraph, even for a blank line.  This does give
  207. the author complete control of the program.
  208.  
  209. Defaults to column 5 for  the  left  margin  and column 75.  There is no
  210. convenient method of permanently  changing  the  default parameters.  In
  211. this day and age, where you can easily set the margins on the printer to
  212. anything you  like,  "nobody" wants a permanent default to some indented
  213. column.
  214.  
  215. When reformatting,  it  leaves  all  blanks  as  they original appeared,
  216. making the program totally worthless for reformatting a WordStar file to
  217. a different line length, for example.
  218.  
  219. It never heard of two  blanks  after  punctuation to end a sentence.  As
  220. previously mentioned, when reformatting it does not change  any existing
  221. text, so  if  there  was  one  blank after a period, it retains that one
  222. blank.  If it had four blanks from  a previous format, it would keep the
  223. four blanks.  This makes  the  program  essentially  worthless  (to this
  224. reviewer) for re-format purposes.
  225.  
  226. It has a serious, major flaw in  that it cannot recognize lines that are
  227. already the correct length.  It thinks such  lines  are  one  column too
  228. long and  reformats them.  Thus every line it processes winds up with at
  229. least one fill character.  (ROFF4  has  a comparable problem, also, when
  230. using the justify mode on lines already the desired length.)
  231.  
  232. Rich Abbot, the author,  assures  me  this  was  fixed in the commercial
  233. version sold by Cranberry Software Tools for $35.  (That includes a text
  234. editor and a large spelling dictionary.  The  package  is  available for
  235. either CP/M or for MS-DOS.)
  236.  
  237. It also leaves a  trailing  blank  at  the  end  of  all text lines, ala
  238. WordStar and RNF13.
  239.  
  240. There are  two  DOC  files  included  in  the  ALPHAT20.LBR.  One is the
  241. "before", showing all the "dot" commands and the other shows the "after"
  242. and is ready for printing.  This tutorial and the DOC file are excellent
  243. and are perhaps the best features of the program.  Other  word processor
  244. programs should  include similar "how to do it" files of the "before and
  245. after" variety.
  246.  
  247. RNF13 --  by  Charles  Falconer,  professor  of  computer  science, Yale
  248. University.  This is a very interesting program.  VERY slow.  It took 42
  249. minutes to process a 140k file that  took  ROFF4  9-1/2  minutes.  It is
  250. written in  Professor  Falconer's own special version of PASCAL.  (ROFF4
  251. was written in "C".) "RNF" likely  is another name for the UNIX "RUNOFF"
  252. format program from which it was adapted.
  253.  
  254. It is easily  the  most  sophisticated  of  the various format programs,
  255. offering all sorts of "dot" commands, many of which the typical user may
  256. never attempt to incorporate.  It has an excellent  "progress" reporting
  257. system showing  the  current  page and line number it is working on.  It
  258. has perhaps the finest error-reporting system of any program I have ever
  259. used.
  260.  
  261. Most such programs only look  in  the  first column for a "dot" command.
  262. RNF13 seems to look ANYWHERE,  which  seems  quite  unfortunate.  On the
  263. lengthy program  that  took  42  minutes, some 250 errors were posted, a
  264. vast majority because things like  "  .COM  file"  or " .LBR file", etc.
  265. appeared quite often in the body of the text.  The errors are printed in
  266. a most impressive manner, showing the page, line number, actual  line of
  267. text, an  arrow  pointing  to the exact character that caused the error,
  268. and then a description of the  error.  However,  it is a nuisance not to
  269. be able to use "(space).COM", etc.
  270.  
  271. This program even barfed with things like:
  272.  
  273.      INDEX ................ pg 22
  274.  
  275. as it thought the (space)....  was some sort of "dot" command.  One does
  276. not expect to see errors for this sort of text.
  277.  
  278. RNF13 does an outstanding  job  of  re-formatting programs.  It puts two
  279. spaces after punctuation  to  end  a  sentence.  something  ALPHATXT and
  280. WordStar never  heard of.  If for some reason you don't WANT to do this,
  281. there is a "dot" command you can  use wherever you like, in the text, to
  282. preserve a location  where  just  one  blank  after  a  period  might be
  283. preferred, such  as:  Mr.  Alfred Jones, etc.  Offering this dot command
  284. does present a  tremendous  amount  of  versatility  in  an area neither
  285. ALPHATXT nor WordStar would even know what you were talking about...
  286.  
  287. This program  does  an  excellent  job  of  reformatting  text  that  is
  288. indented.  Some people indent paragraphs--it will reformat those to non-
  289. indented.  Some text  has sections that are indentend.  It will reformat
  290. those to the left margin unless you include a "dot" command to leave the
  291. indent area intact.
  292.  
  293. The program does leave  a  trailing  space  on  all  text lines, a minor
  294. nuisance.  Unlike ROFF4 and ALPHATXT, it  recognizes  lines  already the
  295. proper length,  so  results  are  what  you  expect  - other than a line
  296. justified to 72 columns is really 73  columns long, as each line has the
  297. unwanted trailing space that is not observed, but  present.  Thus asking
  298. for justified  text  79  columns  long  could  give double line feeds on
  299. normal 80 column displays with auto line-wrap.
  300.  
  301. The program is by  far  the  most  awkward  to  use, since it requires a
  302. special runtime program in addition.  It  is  a  nuisance  insuring both
  303. programs are  present and makes it difficult to use "flow control" while
  304. on a different drive/user.  The following method has to be used, intact,
  305. else the system might lock up,  requiring a cold boot to regain control:
  306.      B>RUNPCD RNF (HELLO.TXT, HELLO.DOC)
  307.  
  308. The actual justification scheme seems identical with that of ROFF4 other
  309. than RNF13 can recognize a  line  already the correct length while ROFF4
  310. (and ALPHATXT) cannot.
  311.  
  312. Once underway, there is no method  (known  to this reviewer) to halt the
  313. program other than to cold reboot  the  computer.  (Then  manually erase
  314. the  partially  completed  output  file.)  This  is  considered  a  most
  315. important oversight.
  316.  
  317. ROFF4 -- by Ernest Bergmann in  1983.  Written in "C", it is much faster
  318. than either RNF13 or ALPHATXT.
  319.  
  320. The program has some very  convenient  features as well as some annoying
  321. things.  The "C" source code is included, although it is  difficult even
  322. for a good "C" programmer to follow the progression of the program.  For
  323. instance, it  puts  out CR,CR,CR,LF at the end of nearly all text lines.
  324. So far, none of the the  people  I  have  talked to have any idea how to
  325. eliminate this unusual feature.  When reformatting, it  puts  two spaces
  326. after exclamation  marks,  question  marks, colons, and even semicolons.
  327. It handles periods at the end of a sentence in a most perplexing manner-
  328. -if you used one blank after  a  period, it retains just that one blank.
  329. If you used two blanks, it  will  keep  a  maximum  of  two blanks.  (If
  330. reformatting WordStar  files which might have three and even four blanks
  331. after an occasional period, it will use a maximum of two.)
  332.  
  333. NOTE:  We have a special version of  ROFF4 now which puts only one blank
  334. after a semicolon and which puts two blanks after any period that ends a
  335. sentence.  It  also  defaults  to  format  72  actual  columns, matching
  336. JUSTIFY.COM.
  337.  
  338. ROFF4 is the easiest format program to use, by some wide margin.  If the
  339. line is indented, it  leaves  the  line  indented  with no special "dot"
  340. command.  (On the other hand it cannot reformat text all of which may be
  341. indented  in  a  given  area,  RNF13,  etc.  would  be  needed  for this
  342. purpose.)
  343.  
  344. It cannot  recognize  a  line  already  the  correct  width.  If used to
  345. reformat without justification, it is off one column on the right margin
  346. counter.  For instance you want lines of up  to  72  characters,  but no
  347. more.  You must  set  the  right  margin  command  to  73  in this case.
  348. However, if you want to reformat and justify both, then you would set it
  349. to 72, but now each line will  be basically 72 with one fill blank added
  350. somewhere to make it 72.  Nuisance.  This is similar to ALPHATXT.
  351.  
  352. ROFF4 does not leave  trailing  spaces  at  the  end of text lines, like
  353. RNF13, ALPHATXT, and WordStar, though.
  354.  
  355. It can normally be aborted with a Control-C.
  356.  
  357. It is easy to use.  If paragraphs are indented, the reformat will retain
  358. the original indentation without any  special paragraph commands such as
  359. the ".pp" required by all  the  other  programs.  You  can intentionally
  360. indent paragraphs  that  were  not  originally  indented,  with an ".in"
  361. command.
  362.  
  363. Centering a group of lines  is ridiculously simple.  If you have 8-10-15
  364. lines to center  you  needn't  bother  with  counting  them  or  using a
  365. separate centering  command  for  each line.  Just use: ".ce 100" on the
  366. line ahead of the first line to  be centered, then move all the lines to
  367. start in the first column.  After the last one,  type:  ".ce  0"  and it
  368. will stop centering.  This makes centering a group of lines so simple to
  369. accomplish, you  may  indeed  use  this  feature  more than you normally
  370. otherwise might.  (ALPHATXT requires a  separate  ".ce ;(text)" for each
  371. line that is to centered.)
  372.  
  373. It is very easy to run.  Say you have a program which is named HELLO.TXT
  374. and you want to format to HELLO.DOC:
  375.      B>ROFF4 HELLO.TXT >HELLO.DOC
  376. The ">" tells the program to generate  a new disk file of that name.  If
  377. you merely want to look at the results on the CRT, just use:
  378.      B>ROFF4 HELLO.TXT
  379. or if you wish to see the results  on  the CRT while it is making a disk
  380. file:
  381.      B>ROFF4 HELLO.TXT +>HELLO.DOC
  382. You can also send the output  to  the  printer, in addition to either of
  383. the other possibilities.
  384.  
  385. SUMMARY -- ROFF4,  with  the  special  version,  is  by  some margin the
  386. easiest of the format programs to use.  That is,  it  requires  far less
  387. "dot" commands  than  any  other  comparable  program.  It still has the
  388. problem of not recognizing lines  already  of  the proper length, but if
  389. you are planning to only use it  for  reformatting  existing  text files
  390. (without justification),  it's  likely  the  most  convenient of all the
  391. programs to use, by some margin.
  392.  
  393. The special  version  (developed  by  Norman  Beeler  at this reviewer's
  394. request) makes this program very simple to use.  It defaults to:
  395.  
  396.      .nf       - does not justify
  397.      .fi       - does fill lines to maximum length
  398.      .rm 73    - right margin to  72  columns (counter is off one column
  399.                  when filling)
  400.      .ow 73    - fills headers, etc., to same length
  401.  
  402.  
  403.                                CONCLUSION
  404.  
  405.  
  406. These comments do not  represent  any  sort  of exhaustive comparison or
  407. analysis of the programs.  They only represent  intial  impressions this
  408. reviewer wanted  to  jot  down  while  fresh  in  mind.  As  soon as the
  409. programs were used  the  first  time,  they  all  seemed to have glaring
  410. deficiencies in the methods used to add fill blanks to justify  for even
  411. margins.  Therefore the  reviewer  plans  to  use  them just to reformat
  412. existing ASCII text files  and  will  use  the JUSTIFY program to obtain
  413. even margins.
  414.  
  415. It took JUSTIFY 46 seconds  to  add  fill characters to justify the 144k
  416. program that it took RNF13 42 minutes to reformat.
  417.  
  418. The next step might be to  write  "dot" command into JUSTIFY so it could
  419. become a self-standing format program.  This is quite  unlikely  to ever
  420. happen, since  nearly  all  printers (regardless of cost) will soon have
  421. microjustification and  since  we  have  only  discussed  CP/M programs.
  422. Fewer people each year are even using CP/M.  Most of those who  do, have
  423. expressed minimal  interest  in  a separate format program from WordStar
  424. which they have been using since getting on CP/M.
  425.  
  426. Thus JUSTIFY and perhaps even  ROFF4, etc., are such speciality programs
  427. only a nominal few readers will be interested enough  in  this  topic to
  428. even read  these  notes.  This is perhaps proven by the difficulty I had
  429. in even obtaining a copy of  the RNF13 program.  Even after I found such
  430. a program existed, it was some time before I  found  somebody  near Yale
  431. University that  was able to find a copy of the free program.  Obviously
  432. only a few RCPM systems in the country even carry ROFF4, ALPHAT20 and/or
  433. RNF13.  I do not anticipate JUSTIFY will receive widespread distribution
  434. or interest, when released.  However as  an available utility program it
  435. does serve a worthwhile purpose for those who do not care for the method
  436. WordStar uses for justification of ASCII text files.
  437.  
  438.      - Irv Hoff
  439.        (415) 948-2166 voice
  440.        (415) 948-2512 PRACSA RCPM
  441.  
  442.  
  443.                              FORMAT SAMPLES
  444.  
  445.  
  446. Samples of various  format  programs,  showing  the  method  they use to
  447. justify consecutive, identical lines, when pulling such lines to 1, 2 or
  448. 3 extra columns.  Note only Irv's program fills the last line out to the
  449. requested length, the others assume  the  last  line  is  the  end  of a
  450. paragraph and  leave it whatever it was, originally.  Irv's program does
  451. that also, if the  line  is  not  within  3-4  columns of normal length,
  452. otherwise it is also left alone.
  453.  
  454. Irv's program is the only  one  that  uses  the  center area on a normal
  455. rotation basis.
  456.  
  457. You can readily see that WordStar 3.3  does a poor job, but WordStar 4.0
  458. does a just plain lousy job of justification.  On even  number  of fills
  459. needed, both are identical.
  460.  
  461. Note:  All these programs  are  free,  except  for WordStar.  All can be
  462. found on the PRACSA RCPM.  (415) 948-2513.
  463.  
  464.  
  465. Irv's program, +1
  466. -----------------
  467. hello hello hello hello hello  hello hello hello hello hello hello
  468. hello hello hello hello hello hello hello hello hello  hello hello
  469. hello hello  hello hello hello hello hello hello hello hello hello
  470. hello hello hello hello hello  hello hello hello hello hello hello
  471. hello hello hello hello hello hello hello hello hello  hello hello
  472. hello hello  hello hello hello hello hello hello hello hello hello
  473.  
  474. Irv's program, +2
  475. -----------------
  476. hello hello hello hello hello  hello  hello hello hello hello hello
  477. hello hello hello hello hello hello hello hello  hello  hello hello
  478. hello hello  hello  hello hello hello hello hello hello hello hello
  479. hello hello hello hello hello  hello  hello hello hello hello hello
  480. hello hello hello hello hello hello hello hello  hello  hello hello
  481. hello hello  hello  hello hello hello hello hello hello hello hello
  482.  
  483. Irv's program, +3
  484. -----------------
  485. hello hello hello hello  hello  hello  hello hello hello hello hello
  486. hello hello hello hello hello hello hello  hello  hello  hello hello
  487. hello hello  hello  hello  hello hello hello hello hello hello hello
  488. hello hello hello hello  hello  hello  hello hello hello hello hello
  489. hello hello hello hello hello hello hello  hello  hello  hello hello
  490. hello hello  hello  hello  hello hello hello hello hello hello hello
  491.  
  492.  
  493. ALPHATXT, +1
  494. ------------
  495. hello hello hello  hello hello hello hello hello hello hello hello
  496. hello hello hello hello hello hello hello hello hello  hello hello
  497. hello hello hello hello hello hello  hello hello hello hello hello
  498. hello hello hello hello  hello hello hello hello hello hello hello
  499. hello hello hello hello hello hello hello hello hello hello  hello
  500. hello hello hello hello hello hello hello hello hello hello hello
  501.  
  502. ALPHATXT, +2
  503. ------------
  504. hello hello hello  hello hello hello hello hello hello  hello hello
  505. hello hello hello hello  hello hello  hello hello hello hello hello
  506. hello hello hello hello hello hello hello hello  hello hello  hello
  507. hello  hello hello hello hello  hello hello hello hello hello hello
  508. hello hello  hello hello hello hello hello  hello hello hello hello
  509. hello hello hello hello hello hello hello hello hello hello hello
  510.  
  511. ALPHATXT, +3
  512. ------------
  513. hello hello hello  hello hello hello  hello hello hello  hello hello
  514. hello hello hello hello  hello hello hello hello  hello hello  hello
  515. hello  hello hello hello hello  hello hello  hello hello hello hello
  516. hello hello  hello  hello hello hello hello hello hello  hello hello
  517. hello hello hello hello  hello hello  hello hello hello hello  hello
  518. hello hello hello hello hello hello hello hello hello hello hello
  519.  
  520.  
  521. RNF13, +1
  522. ---------
  523. hello hello hello hello hello hello hello hello hello hello  hello
  524. hello  hello hello hello hello hello hello hello hello hello hello
  525. hello hello hello hello hello hello hello hello hello hello  hello
  526. hello  hello hello hello hello hello hello hello hello hello hello
  527. hello hello hello hello hello hello hello hello hello hello  hello
  528. hello hello hello hello hello hello hello hello hello hello hello
  529.  
  530. RNF13, +2
  531. ---------
  532. hello hello hello hello hello hello hello hello hello  hello  hello
  533. hello  hello  hello hello hello hello hello hello hello hello hello
  534. hello hello hello hello hello hello hello hello hello  hello  hello
  535. hello  hello  hello hello hello hello hello hello hello hello hello
  536. hello hello hello hello hello hello hello hello hello  hello  hello
  537. hello hello hello hello hello hello hello hello hello hello hello
  538.  
  539. RNF13, +3
  540. ---------
  541. hello hello hello hello hello hello hello hello  hello  hello  hello
  542. hello  hello  hello  hello hello hello hello hello hello hello hello
  543. hello hello hello hello hello hello hello hello  hello  hello  hello
  544. hello  hello  hello  hello hello hello hello hello hello hello hello
  545. hello hello hello hello hello hello hello hello  hello  hello  hello
  546. hello hello hello hello hello hello hello hello hello hello hello
  547.  
  548.  
  549. ROFF4, +1
  550. ---------
  551. hello  hello hello hello hello hello hello hello hello hello hello
  552. hello hello hello hello hello hello hello hello hello hello  hello
  553. hello  hello hello hello hello hello hello hello hello hello hello
  554. hello hello hello hello hello hello hello hello hello hello  hello
  555. hello  hello hello hello hello hello hello hello hello hello hello
  556. hello hello hello hello hello hello hello hello hello hello hello
  557.  
  558. ROFF4, +2
  559. ---------
  560. hello  hello  hello hello hello hello hello hello hello hello hello
  561. hello hello hello hello hello hello hello hello hello  hello  hello
  562. hello  hello  hello hello hello hello hello hello hello hello hello
  563. hello hello hello hello hello hello hello hello hello  hello  hello
  564. hello  hello  hello hello hello hello hello hello hello hello hello
  565. hello hello hello hello hello hello hello hello hello hello hello
  566.  
  567. ROFF4, +3
  568. ---------
  569. hello  hello  hello  hello hello hello hello hello hello hello hello
  570. hello hello hello hello hello hello hello hello  hello  hello  hello
  571. hello  hello  hello  hello hello hello hello hello hello hello hello
  572. hello hello hello hello hello hello hello hello  hello  hello  hello
  573. hello  hello  hello  hello hello hello hello hello hello hello hello
  574. hello hello hello hello hello hello hello hello hello hello hello
  575.  
  576.  
  577. WordStar 3.3, +1
  578. ----------------
  579. hello hello hello hello hello hello hello hello hello hello  hello
  580. hello  hello hello hello hello hello hello hello hello hello hello
  581. hello hello hello hello hello hello hello hello hello hello  hello
  582. hello  hello hello hello hello hello hello hello hello hello hello
  583. hello hello hello hello hello hello hello hello hello hello  hello
  584. hello hello hello hello hello hello hello hello hello hello hello
  585.  
  586. WordStar 3.3, +2
  587. ----------------
  588. hello  hello hello hello hello hello hello hello hello hello  hello
  589. hello  hello hello hello hello hello hello hello hello hello  hello
  590. hello  hello hello hello hello hello hello hello hello hello  hello
  591. hello  hello hello hello hello hello hello hello hello hello  hello
  592. hello  hello hello hello hello hello hello hello hello hello  hello
  593. hello hello hello hello hello hello hello hello hello hello hello
  594.  
  595. WordStar 3.3, +3
  596. ----------------
  597. hello  hello hello hello hello hello hello hello hello  hello  hello
  598. hello  hello  hello hello hello hello hello hello hello hello  hello
  599. hello  hello hello hello hello hello hello hello hello  hello  hello
  600. hello  hello  hello hello hello hello hello hello hello hello  hello
  601. hello  hello hello hello hello hello hello hello hello  hello  hello
  602. hello hello hello hello hello hello hello hello hello hello hello
  603.  
  604.  
  605. WordStar 4.0, +1
  606. ----------------
  607. hello hello hello hello hello hello hello hello hello hello  hello
  608. hello hello hello hello hello hello hello hello hello hello  hello
  609. hello hello hello hello hello hello hello hello hello hello  hello
  610. hello hello hello hello hello hello hello hello hello hello  hello
  611. hello hello hello hello hello hello hello hello hello hello  hello
  612. hello hello hello hello hello hello hello hello hello hello hello
  613.  
  614. WordStar 4.0, +2
  615. ----------------
  616. hello  hello hello hello hello hello hello hello hello hello  hello
  617. hello  hello hello hello hello hello hello hello hello hello  hello
  618. hello  hello hello hello hello hello hello hello hello hello  hello
  619. hello  hello hello hello hello hello hello hello hello hello  hello
  620. hello  hello hello hello hello hello hello hello hello hello  hello
  621. hello hello hello hello hello hello hello hello hello hello hello
  622.  
  623. WordStar 4.0, +3
  624. ----------------
  625. hello  hello hello hello hello hello hello hello hello  hello  hello
  626. hello  hello hello hello hello hello hello hello hello  hello  hello
  627. hello  hello hello hello hello hello hello hello hello  hello  hello
  628. hello  hello hello hello hello hello hello hello hello  hello  hello
  629. hello  hello hello hello hello hello hello hello hello  hello  hello
  630. hello hello hello hello hello hello hello hello hello hello hello
  631.  
  632.  
  633. This example was used for each  of the four format programs.  It clearly
  634. shows how the various programs handle text with 1 space after the end of
  635. a sentence and how they handle 2 or more.  RNF13 and the special version
  636. of ROFF4 do an ideal job in this regard.  Both ALPHATXT and WordStar use
  637. whatever the text already had.  They are basically worthless with regard
  638. to reformatting existing text that may already be justified, i.e., which
  639. has fill characters that would need to be removed.
  640.  
  641. Sample Format Test
  642. ------------------
  643. This    is a   small format  test. Do you
  644. think it   will work? Just checking  to
  645. see
  646. how   it may handle punctuation! Some  of
  647. these have
  648. one space;  some have two. A good     format
  649. program   should   put   two  spaces  after
  650. a period
  651. to   end  a sentence.     We'll put the   other
  652. programs to work shortly, ok?     Should tell
  653. us what; we want to know.          Bye for
  654. now. Roger and out.
  655.  
  656. ALPHATXT
  657. --------
  658. This    is a   small format  test Do you think it   will work? Just
  659. checking  to see how   it may handle punctuation! Some  of these have
  660. one space;  some have two. A good     format program   should   put
  661. two  spaces  after a period to   end  a sentence.     We'll put the
  662. other programs to work shortly, ok?     Should tell us what; we want to
  663. know.          Bye for now. Roger and out.
  664.  
  665. RNF13
  666. -----
  667. This is a small format test.  Do you think it will work?  Just checking
  668. to see how it may handle punctuation!  Some of these have one space;
  669. some have two.  A good format program should put two spaces after a
  670. period to end a sentence.  We'll put the other programs to work shortly,
  671. ok?  Should tell us what; we want to know.  Bye for now.  Roger and out.
  672.  
  673. ROFF4
  674. -----
  675. This is a small format test.  Do you think it will work?  Just checking
  676. to see how it may handle punctuation!  Some of these have one space;
  677. some have two.  A good format program should put two spaces after a
  678. period to end a sentence.  We'll put the other programs to work shortly,
  679. ok?  Should tell us what; we want to know.  Bye for now.  Roger and
  680. out.
  681.  
  682. WORDSTAR 4.0
  683. ------------
  684. This    is a   small format  test. Do you think it   will work? Just
  685. checking  to see how   it may handle punctuation! Some  of these have
  686. one space;  some have two. A good     format program   should   put
  687. two  spaces  after a period to   end  a sentence.     We'll put the
  688. other programs to work shortly, ok?     Should tell us what; we want to
  689. know.          Bye for now. Roger and out.
  690.  
  691.  
  692. NOTE:  Before WordStar could  be  used  on  the  sample  text, we had to
  693. convert the "hard carriage return" characters to "soft  carriage return"
  694. by changing them to 8Dh.  When the program was then run through WordStar
  695. it had:
  696.      72 high bits set
  697.       9 trailing spaces
  698.       5 soft carriage returns
  699.