text

>> << Ndx Usr Pri Phr Dic Rel Voc !: wd Help User

# 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
Name | Type | Description
capitalize | verb | capitalize text
cutpara | verb | cut text into boxed list of paragraphs
cuttext | verb | cut text into boxed list of texts
foldpara | verb | fold single paragraph
foldtext | verb | fold text to given width
topara | verb | convert text to paragraphs
capitalize
    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
    cut text into boxed list of paragraphs
    form: cutpara text
cuttext
    cut text into boxed list of texts
    form: cuttext text
foldpara
    fold single paragraph
    syntax:   {width} fold data
    data is character vector
foldtext
    fold text to given width
    form: width foldtext text
topara
    convert text to paragraphs
    form: topara text
    replaces single LFs not followed by blanks by spaces,
    except for LF's at the beginning
>> << Ndx Usr Pri Phr Dic Rel Voc !: wd Help User