File Functions

The screen shot at right shows Simredo's File menu. These functions work the same way in all editors, but I'll briefly describe them: New starts a new document; Open is used to select and open an existing document; Save saves the current document's changes to disk; 'Save as' is used to change the name and/or format of the current document, then save it to disk; Print prints the document; and Exit terminates the program. Opening and saving will be described in more detail below.

At the bottom of the menu is a list of up to sixteen recently edited files. If a file you want to edit is listed, you can open it quickly by selecting it from the list.

Some of the file functions can be activated with control key sequences. For example, to save the current document to disk, type the 's' key while holding down the Control key (Ctrl‑s). Similarly, use Ctrl‑o to open files and Ctrl‑p to print.

Also, Simredo has three icon buttons in the toolbar for activating file functions. The first button, which represents a blank sheet of paper, activates the New function; the second button, an opening folder, activates Open; and the third, which represents a memory stick, activates the Save function.

In order to use Simredo effectively, it's important to understand terms such as Unicode, UTF‑8, 'double-byte', etc. If you are not familiar with these terms, please read the following article before continuing:

Character Encoding Standards and Unicode

Opening Files

When you activate the Open function, an Open File dialogue similar to the one shown below will appear. Select a folder and file, then click the OK button.

After you select a file, the Format Conversion dialogue shown at right may appear. The purpose of this dialogue is to indicated to Simredo the format (encoding) of the file, so that Simredo can convert it to its internal format. (Internally, Simredo encodes characters as double-byte Unicode.)

Note: If, after opening a file, your text looks corrupted, ie., there are rectangles in place of letters, check the font. It may be that the file was loaded correctly, but the current font does not contains the necessary characters. If this is the case, highlight the entire text (Ctrl‑a), and choose a more suitable font.

Some file formats, specifically RTF, UTF‑16, and encrypted files, can be identified by their contents. If Simredo can determine a file's format, it will open the file without showing the Format Conversion dialogue.

When Simredo cannot identify a file format, it will display the Format Conversion dialogue with UTF‑8 pre-selected. You can click on 'OK' if you agree, or select another format. For languages written with a Latin-based alphabet, UTF‑8 is recommended.

Simredo displays name and original format of an opened file at the top of the program frame. In the example at right, the file 'ofteco' in the folder '/root/perl/' was opened as a UTF‑8 file.

Saving Files

When you activate the Save function, Simredo writes the current document to the file named at the top of the frame, in the original format. In the example shown above, it will write to '/root/perl/ofteco', in UTF‑8 format.

Newly created documents do not yet have a file name or format. When you activate Save for a new document, Simredo first displays a Format Conversion dialogue. This dialogue, shown at right, is a little different that the one which appears when files are opened; it displays an open list, instead of a drop-down menu.

Choose a file format, and click on 'OK'. (Or click on 'Cancel', to cancel saving the document.)

After clicking on OK, a Save File dialogue (similar to the Open File dialogue) will appear, which will allow you to select a folder and enter a file name.

The Format Conversion dialogue lists over 100 choices. If you are not sure about which one you should choose, here are a couple points to keep in mind.

Converting File Formats

By using the Open and 'Save as' functions, you can convert files between many different formats. For example, to convert a Japanese text from Shift‑JIS to EUC‑JP, simply open the file, selecting Shift‑JIS in the Format Conversion dialogue, then use 'Save as' to change the format to EUC‑JP.

Please remember that some conversions can cause data corruption. You can save a Japanese text as Shift‑JIS or EUC‑JP without problems, but if you save it as Latin‑1, you will destroy the Japanese characters, because Latin‑1 is a single-byte encoding standard which does not define Japanese characters.