TEXT

text utilities

conventions:
  the delimiter used is LF
  "paragraph" is a character string terminated by a LF
              paragraphs would normally be reformatted for display
  "text"      is a character string with possibly several LFs.
                   
main verbs:
  capitalize   capitalize text
  cutpara      cut character string into boxed list of paragraphs
  cuttext      cut character string into boxed list of texts
  foldtext     fold character string to given width

utilities:
  foldpara     fold single paragraph to given width
  topara       convert character string into paragraphs

Defined items
NameClassDescription
capitalizeVerbcapitalize text
cutparaVerbcut text into boxed list of paragraphs
cuttextVerbcut text into boxed list of texts
foldtextVerbfold text to given width
foldparaVerbfold single paragraph
toparaVerbconvert text to paragraphs

capitalize.......... (v) capitalize text

capitalize text (vector delimited by LF, or matrix)

all first letters are capitalized, otherwise:
x.=0  capitalize first letter following a fullstop followed by
      a blank or LF or LF,LF  (sentence capitalization=default)
   1  capitalize any letter preceded by a blank
   2  capitalize first letter in any alphabetic string

cutpara............. (v) cut text into boxed list of paragraphs

form: cutpara text

cuttext............. (v) cut text into boxed list of texts

form: cuttext text

foldtext............ (v) fold text to given width

form: width foldtext text

foldpara............ (v) fold single paragraph

syntax:   {width} fold data
data is character vector

topara.............. (v) convert text to paragraphs

form: topara text
replaces single LFs not followed by blanks by spaces,
except for LF's at the beginning

system\main\text.ijsRelease: 4.02/1998-11-13/12:26