Thursday, January 29, 2009

Text Editing and Processing

The Clipboard
Introduction
The Clipboard is an area of the computer that behaves like a short (human) memory with its strengths and weaknesses.
Advantages
1- Compared to human memory, the clipboard can be given information, it keeps it, and doesn't forget
2- 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
3- Any (type of) application, by default, can use and access the clipboard
Disadvantages
4- 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

5- 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.functionx.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 DormantHenry 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.functionx.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.functionx.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 DormantHenry 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.

No comments:

Post a Comment