Pep and Nom

home | documentation | examples | translators | download | blog | all blog posts

the ℕ𝕠𝕞 "upper" command

The upper command makes the text in the workspace buffer all upper case .

make all words "capital case" using upper and lower


    read; 
    [:space:] { while [:space:]; print; clear; }  
    ![:space:].!"" { 
      upper; print; clear;
      whilenot [:space:]; lower; print; clear;
    }
  

see also

The nom language only has a limited set of functions to manipulate the text in the workspace buffer (much more limited that the functions available AWK or SED ) .

These functions are lower upper clip clop clear replace cap add

notes about unicode

This command should be “unicode aware” but since the pep interpreter is written in plain c, (with normal c char byte character type), scripts run through the interpreter will not be unicode aware. This can be solved by running the script through one of the nom translation scripts.