Home

Text Selection Techniques

 

Introduction

Text selection consists of isolating part of the text of a document, for any reason that is necessary. Why you select text and what you do with the selected text are two completely different issues. This means that text can be selected for any reason. The effect produced while selecting text is also different depending on the application. Also, as always, some applications may provide a feature that is not available in some others.

Text indicates that it is selected when it appears with a different background color than the other characters. It is also said that the text is highlighted. When text is selected, it appears inside of a black or blue background. Actually, the color of the background depends; it is usually the same as the text but it gets the opposite color. For example, when a word in black is selected, it gets white but it gets drawn in a black background.

Here is an example of the letter "a" selected inside of the word "quartiers":

Here is an example of the word "quartiers" selected in a paragraph:

Here is an example of a paragraph selected in a document:

Text is primarily selected using the mouse but you can also use a keyboard or a combination of both.

Text Selection Using the Mouse

Using the mouse:

  • To select one character, click to the left (or to the right) of that character, hold your mouse down, drag to the right (or to the left), when the character is highlighted, then release the mouse.
  • To select one word, click to the left (or to the right) of that word, hold your mouse down, drag to the right (or to the left), when the word is highlighted, then release the mouse.
    To select a word, you can also double-click it.
  • To select a group of words, click to the left (or to the right) of that group, hold your mouse down, drag to the right (or to the left), when the group of words is highlighted, then release the mouse. 

In some applications (Microsoft Word, WordPad, Microsoft Works Word Processor, Microsoft FrontPage, etc), to select a line of text, position the mouse to the left of the line. The cursor would point to North-East:

Then click.

In some application (Microsoft Word, WordPad), to select a whole paragraph, triple-click any word in the paragraph.

Practical Learning: Selecting Text Using the Mouse

  1. Start WordPad and type the following:
     
    Leaving Sydney
    When we decided to leave, we knew we were making a hard decision. We had spent so much time this had become our new home. A few weeks or months earlier, we wanted to make Sydney our newly found settlement, a permanent place we could proudly call ours. It appeared that, unpredictably, fate had decided otherwise.

    As the time to leave approached, we gathered what were left as our belongings. We managed to meet, for the last time, our neighbors and every one we had been accustomed to. Everybody wished us all the best.

    Aurhor: Arthur D. Pale
    Titles: Stories of my Life
  2. To select one word in a sentence, in the paragraph that starts with "As the time", click and hold the mouse between d of "gathered" and w of what
  3. Drag in the left direction. When the word gathered is highlighted completely, then release the mouse
     
  4. In the second line, double-click "decision". That selects it
  5. In the first line of the paragraph that starts with "When we decided", position the mouse to the left of much
  6. Click and hold the mouse down
  7. Drag right and down to the right side of the word "found". then release the mouse
     
  8. Press Ctrl + Home

Text Selection Using the Keyboard

You can also select text using the keyboard:

  • To select one character, position the caret to the left (or to the right) of the character. Press and hold Shift. Then press the right (or the left) arrow key and release Shift
  • To select one word, position the caret to the left (or to the right) of the word. Press and hold Ctrl and Shift. Then press the right (or the left) arrow key and release Ctrl and Shift
  • To select a group of words, position the caret to the left of the most left word (or to the right of the most right) of the group. Press and hold Ctrl and Shift. Then press the right (or the left) arrow key continuously until all the desired words are highlighted. Then release Ctrl and Shift.
  • To select a line of text, first get the caret to the beginning of the line. Press and hold Shift. Press the down arrow key. Release Shift.

In word processors (not in text editors like Notepad):

  • To select text from the current position of the caret to the end of the paragraph, press and hold Ctrl and Shift, then press the down arrow key
  • To select text from the current position of the caret to the beginning of the paragraph, press and hold Ctrl and Shift, then press the up arrow key
  • To select text from the current position of the caret to the end of the current page, press and hold Ctrl and Shift, then press Page Down
  • To select text from the current position of the caret to the beginning of the current page, press and hold Ctrl and Shift, then press Page Up

To select the whole content of the document, press Ctrl + A (normally, Ctrl + A is a universal shortcut and can be used to select almost any thing that is part of a window, regardless of what those things are).

Practical Learning: Selecting Text Using the Keyboard

  1. The caret should be at the beginning of the document
    Press and hold Shift. Press the right arrow key once. As you see, it selects one letter to the right
  2. While still holding Shift, press the right arrow key twice
  3. Release Shift
  4. Press the Down arrow key and press Home. That positions the cursor to the beginning of the second line
  5. Press and hold Ctrl + Shift, press the Right arrow key once. It selects one word
  6. While still holding Ctrl + Shift, press the right arrow key twice. As you see, this time, pressing the right arrow key selects one word after another
  7. Release Ctrl and Shift
  8. Press the Left arrow key. That positions the caret to the beginning of the paragraph
  9. Press and hold Shift, press the down arrow key, and release all keys. Now the action selects one line of text
  10. Press Ctrl + Home

Text Selection Combining the Mouse and the Keyboard

You can also combine the mouse and the keyboard to select text:

  • To select one character, click to the left (or to the right) of that character. Press and hold Shift. Then click to the right (or to the left) of that character and release Shift.
  • To select one word, click anywhere in that word. Press and hold Shift. Then click the word again and release Shift (this doesn't work everywhere). 
  • To select a group of words, click anywhere in the first (or the last) word of the desired group. Press and hold Shift. Then click anywhere in the last (or the first) word of the group and release Shift.
  • To select a group of words from one part or section of the document to another section of the document, click the word at the beginning (or the end) of the desired group. Press and hold Shift. Then click the last (or the first) word of the desired group. Release Shift.

Practical Learning: Selecting Text 

  1. In the paragraph that starts with "When we decided", click the word "knew"

  2. Press and hold Shift

  3. Click "decision" on the same line and release Shift

The Clipboard

 

Introduction

The Clipboard is an area of the computer that behaves like a short (human) memory with its strengths and weaknesses.

Advantages

  • Compared to human memory, the clipboard can be given information, it keeps it, and doesn't forget
  • The clipboard memory is very huge, so much that it can contain almost anything from one character to a whole book, from a simple piece of text to a highly rich picture of millions of colors
  • Any (type of) application, by default, can use and access the clipboard

Disadvantages

  • The regular clipboard of Microsoft Windows can hold only one unit of information. For example, it can hold only one picture at a time, or only one character, or only one paragraph of text. If you change its information, it looses the previous information and replaces it with the new one
  • The clipboard looses the information it holds when the computer is turned off

Like the human memory, you don't see the computer clipboard: You just know that it is there. There are two main ways you use the clipboard: to put information in it or to retrieve the information it holds.

Practical Learning: Introducing the Clipboard

  1. Start Notepad
  2. Type the following:
     
    Le C

Clipboard Operations: Copy

The primary means of using the clipboard consists of putting information in it. One of the ways you do this is to copy information from a source. To do this, you must first select that information and this depends on what you are using. The document from which you are copying an item is referred to as source.

To get text from a text-based application, first select it. To copy it, most applications have a menu called Copy under Edit.

 

Practical Learning: Copying an Item to the Clipboard

  1. Log on to http://www.Yevol.com/html/articles/specialchars.htm then find the œ character and select it
  2. Press Ctrl + C to copy it to the clipboard
  3. Return to Notepad

Clipboard Operations: Paste

As mentioned above, copying consists of putting information into the clipboard. To use that information, you must retrieve it from the clipboard and put it where you want. This operation is referred to as pasting. The document into which you are pasting an item is referred to as destination.

Before pasting something, you should first make sure that the clipboard is not empty and, most of the time, you should know what is in the clipboard. Remember that when the computer starts, the clipboard is empty. Also, you have no way of visually checking the contents of the clipboard. You would just need to remember what you had previously put in the clipboard.

We mentioned that the clipboard could contain just about anything: a character, a picture, a book, a group of pictures, a whole library, a paragraph of text, an icon. Notice that these are disparate items that may not share anything at all, except that they are retrieved from the computer. To distinguish these items, the computer (the operating system) categorized using a technique referred to as format. Because of the differences among these items, each uses a specific format. Based on this, some items are categorized as text. Some items are categorized as images (bitmap), and so on.

To paste the content of the clipboard, most applications have a Paste item under their Edit menu. In most applications also, you can right-click the area or section where you want to paste. The context menu would have a Paste item. In both cases (using the main menu or the context menu), if you click Paste, the contents of the clipboard would be added to that section.

As mentioned already, not all items use the same format. For this reason, not just anything can be pasted in just anywhere. A text-based item such as a letter, a symbol, a word, a sentence, a paragraph, a book (as text) can be pasted in a document that can receive it. On the other hand, a picture cannot be pasted in a text-based application like Notepad because the format is not compatible. Some other applications (OLE-based, don't ask) can be pasted almost anything, even a whole object from an application that has nothing to do with the destination.

 

Practical Learning: Pasting an Item From the Clipboard

  1. Click the right side of C to position the caret there.
    On the main menu of Notepad, click Edit -> Paste
  2. Continue typing as follows:
     
    Le Cœur Dormant
    Henry de Mesquieux is a young French movie director who, once more, has produced a masterpiece of cinematography. A few years ago, his commendable ability to carry an audience started with “La Fille Cr
  3. Return to http://www.Yevol.com/html/articles/specialchars.htm then find the é character and select it
  4. Press Ctrl + C to copy it to the clipboard
  5. Return to Notepad and press Ctrl + V to paste the character
  6. Type ole aux Yeux Per
  7. Return to http://www.Yevol.com/html/articles/specialchars.htm then find the ç character and select it
  8. Press Ctrl + C to copy it to the clipboard
  9. Return to Notepad and press Ctrl + V to paste the character
  10. Continue as follows:
     
    Le Cœur Dormant
    Henry de Mesquieux is a young French movie director who, once more, has produced a masterpiece of cinematography. A few years ago, his commendable ability to carry an audience started with “La Fille Créole aux Yeux Perçants”. This movie had put its own reference in the world of wonderful pictures and won various awards, including the Marsouni Critique Consortium.

 

Clipboard Operations: Cut

We mentioned that you could copy an item and put it in the clipboard. When you do this, the item is only copied; in other words, a copy of the item stays in the source and a copy is made in the clipboard. If you want to remove an item from a source and have it only in the destination, you can Cut it. When this is done, the item is deleted from the source.

To cut an item, most applications have a Cut item under the Edit category of their main menu. They may also have a Cut item in their context menu that appears when you right-click. Different applications handle cutting differently. In most applications, once you click Cut, the character, word, sentence, paragraph, the whole text, the picture, the group of pictures, etc, is immediately deleted and put into the clipboard. With some other applications, the item that was cut becomes dimmed or disabled but not completely deleted.

After cutting an item and pasting, it becomes available in the destination. As stated already, if the destination is not equipped to received the contents of the clipboard because of a different format, the contents would not be pasted and nothing would happen. You would not even receive a message stating that the pasting operation failed.

Practical Learning: Cutting and Pasting From the Clipboard

  1. On the main menu of Notepad, click Edit -> Select All
  2. Again on the main menu of Notepad, click Edit -> Cut and notice that the whole text has been erased
  3. Start WordPad and press Enter to move the caret to the second line
  4. On the main menu of WordPad, click Edit -> Paste
  5. Log on to http://www.Yevol.com/windows/images/cover1.gif
  6. Right-click the picture and click Copy
  7. Return to WordPad and press Ctrl + Home to move the caret to the beginning
  8. On the main menu, click Edit -> Paste to paste the picture
     
 

Text Processing

 

Introduction

Text processing consists of adding characters, inserting characters, moving characters, removing characters, adding empty spaces, inserting empty spaces, removing empty spaces, adding words, inserting words, moving words, removing words, adding paragraphs, inserting paragraphs, or removing paragraphs. Advanced text processing can also consist of adding pages, inserting pages, moving pages, or removing pages.

There are two broad types of text you will work on when performing the operations related to text processing. Simple, or also referred to as ASCII, text is a category that includes basic types of characters recognized by the alphabet. The other category is referred to as rich text. This involves fancy techniques of presenting text. Such text can have different colors, the characters can have different sizes, and the paragraphs can have different alignments.

Although there are various applications you can use to perform text processing, they share many characteristics. Therefore, here we will learn techniques that can be applied on almost any document, regardless of the application.

Text Processing and Characters

Character addition usually consists of adding a character at the end of a word. Normally, this means that you would type a new character to the right side of an existing word. Character inserting consists of entering a new character anywhere inside of a word. Character deletion consists of removing an existing character from text.

Text Processing and Words

Word addition consists of adding a word at the end of a paragraph but before the last period. Word insertion consists of adding a new word somewhere inside of a paragraph.

Text Processing and Paragraphs

Paragraph addition consists of adding a new paragraph at the end of the document. Paragraph insertion consists of creating a new paragraph somewhere inside of the document. The new paragraph can be made of text or you may be asked to create an empty space between two paragraphs.

 

Previous Copyright © 2007, Yevol Next