HP 3000 Manuals

Downshift Word [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation


HP EDIT Reference Manual

Downshift Word 

Purpose 

Converts the alphabetic characters in one or more words to lowercase.

Default Syntax 

[n] CTRL v

where n is a count that represents the number of words to convert to
lowercase.  The default value of n is 1.

Description 

This command converts any uppercase alphabetic characters in one or more
words on the cursor line to lowercase.  Non-uppercase alphabetic
characters remain unchanged.

When you execute the command, HP EDIT converts the number of words
specified, converts all uppercase alphabetic characters to lowercase, and
moves the cursor to the first character of the next word.  If the cursor
is not positioned on the first character of a word, HP EDIT does not
downshift characters to the left of the cursor.

If you specify a greater number of words for conversion than words
remaining on the cursor line, HP EDIT converts the remaining words on the
line and moves the cursor to the last character of the line.

Word Definition 

HP EDIT enables you to specify the type of characters that constitute an
HP EDIT word.  There are four possible word definitions.  You can specify
a definition other than the default value by changing the value of the
Word Category parameter from the Set Options screen.

The following word definition options are available:

[a-zA-Z0-9_'-]        Words consist of upper and lowercase letters,
                      digits, underscores, apostrophes, and hyphens.
                      Words are separated by spaces and any
                      non-alphanumeric characters besides the underscore,
                      apostrophe, or hyphen.  This is the default
                      definition.

[a-zA-Z0-9_]          Words consist of upper and lowercase letters,
                      digits and underscores.  Words are separated by
                      spaces and any non-alphanumeric characters besides
                      the underscore.

[a-zA-Z0-9]           Words consists of upper and lowercase letters as
                      well as digits.  Words are separated by spaces and
                      any non-alphanumeric characters.

[~ ]                  Words consist of any non-space characters separated
                      by spaces.

Procedures 

To convert one uppercase word to lowercase: 

   1.  Move the cursor to the first character of the word you want to
       convert.

   2.  Press and hold CTRL, then press the v key.  HP EDIT converts the
       word and moves the cursor to the first character of the next word.

To convert more than one uppercase word to lowercase: 

   1.  Move the cursor to the first character of the group of words you
       want to convert.

   2.  Type a count, or use the Set Mark (`) and Set Distance To Mark (#)
       commands to set the count.  This value represents the number of
       words you want to convert.

   3.  Press and hold CTRL, then press the v key.  HP EDIT converts the
       number of words specified and moves the cursor under the first
       character of the next word following the converted words.

Example 

To convert the following word to lowercase: 

            This WORD will be lowercase.

   1.  Move the cursor to the position shown above.

   2.  Press and hold CTRL, then press the v key.  HP EDIT converts the
       word and moves the cursor to the next word as shown:

            This word will be lowercase.

Related Commands 

       Downshift Character
       Downshift Line
       Upshift Character
       Upshift Line
       Upshift Word



MPE/iX 5.0 Documentation