Sfairadora

  • Reference Guide

Rich Text Editor

.
This control is used for entering and editing formatted text (that is, a text where you can select font type, switch to italics, etc.). Data edited by a rich text editor is usually of the formatted text (Rich_text) type. The formatted text consists of a sequence of paragraphs, of which each paragraph has its own format (indentation, alignment, line spacing, etc.). Every paragraph consists of a sequence of characters, of which, again, each character has its own format (font type, font size, italic type, etc.). Texts may contain text tables in addition to paragraphs. Again, every cell consists of one or more paragraphs. Besides characters, also pictures may be inserted into paragraphs.
The rich text editor can be in two modes. Either it is simply active – that means it is selected, but its content is not being edited; in this case its background has a different color. Or it is being edited – in this case a blinking cursor is displayed in the text. You can also preset the rich text editor to switch immediately to the editing mode (the cursor is displayed) when active so that it never occurs in the simple active mode. Opening directly into the editing mode is the default setting for the rich text editor. Editing the content of an active rich text editor is launched by one of the following options:
Key
Function
Enter, F2
Places the cursor at the end of existing text.
Delete
Deletes existing text and places the cursor in the empty rich text editor
typing any character
Preserves the content of the editor and inserts the character at the end.
mouse click
Starts editing and places the cursor to the click position.

Editing

The following keys are available in the editing mode of the rich text editor:
Key
Function
→
Cursor jumps to the next character.
←
Cursor jumps to the previous character.
↑
Cursor jumps one line above.
↓
Cursor jumps one line below.
Ctrl + →
Cursor jumps to the beginning of the next word.
Ctrl + ←
Cursor jumps to the beginning of the previous word.
End
Cursor jumps to the end of the text.
Home
Cursor jumps to the beginning of the text.
Delete
The character next to the cursor or the selected part of the text is deleted.
Backspace (←)
The character in front of the cursor or the selected part of the text is deleted.
Ctrl+T
Characters from the cursor position to the end of the word are deleted.
Ctrl+Z
Reverts one change. This way, changes can be rolled back up to the start of editing. The history of changes made during editing is deleted when editing ends, so changes cannot be reverted afterwards. An equivalent to the Edit|Undo menu command.
Ctrl+Y
Performs again the change reverted before by the Ctrl+Z key or by the Edit|Undo menu command. An equivalent to the Edit|Redo menu command.
Insert
Switches between the overtyping and inserting mode. The overtyping mode is indicated by a rectangular cursor covering the entire character.
Enter
Splits the paragraph where the cursor is located.
Tab
Inserts a tab character. If the cursor is in a table, nothing is inserted, and the cursor jumps to the next cell. If there already is some text in the cell, the text is selected so that it can be easily deleted or overwritten if required. If the cursor is in the last cell of the last row of the table, a new row is inserted at the bottom of the table. This way, tables can be comfortably populated and rows can be added as required.
Shift+Tab
If the cursor is in a table, it jumps to the previous cell. If there already is some text in the cell, the text is selected.
Ctrl+Tab
Inserts a tab character regardless of whether the cursor is in a table or not. (This combination of keys is therefore used to insert tab characters inside table cells because the simple Tab key, which serves that purpose elsewhere, only moves the cursor between cells when used inside a table.)
Shift →, Shift ←, Shift+Home, Shift+End, etc.
Keys for moving the cursor pressed together with the Shift key: cursor jumps in the required direction, and at the same time the range of text in between is selected.
Ctrl+A
Selects the entire text.
Ctrl+Shift+spacebar
Inserts a hard space (a space that does not separate words).
Ctrl+num –
(minus on the numeric keypad on the right)
Inserts an en dash.
Ctrl+Alt+num –
Inserts an em dash.
Ctrl+_ (Ctrl+Shift)
Inserts a hard hyphen (a hyphen that does not separate words).

Character Formatting

Character format can be changed by the tool bar, character format window, or keyboard shortcuts listed below. All of the mentioned formatting techniques apply either to the word where the cursor is located or to the selected part of the text. All formatting options are summarized and explained in the chapter on the character format window.
Key
Function
Ctrl+I
Toggles italics on/off.
Ctrl+B
Toggles bold font on/off.
Ctrl+U
Toggles underlining on/off.
Ctrl+H
Toggles hidden text on/off. Hidden text is used in output templates for Enkidu language commands.
Ctrl+spacebar
Removes all text formatting.

Paragraph Formatting

Paragraph format can be changed by the tool bar or paragraph format window. A change of paragraph format performed by any of the mentioned techniques applies either to the paragraph where the cursor is located or to all paragraphs where at least part of the text is selected.
A ruler located by the top of the editor can be used for quick and easy adjustment of the main attributes of a paragraph. The ruler reflects the attributes of either the paragraph where the cursor is located or all paragraphs in which some part of the text is selected. The ruler shows the left and right margins of the paragraph, the indentation of the first line, tab stops for the paragraph, and, if the cursor is in a table, also the positions of the borders between table columns. You can also use the ruler to modify these attributes:
Paragraph Attribute
Setting
First line indent
The marker (triangle) at the top left end of the ruler.
Left indent
The marker (triangle) at the bottom left end of the ruler. Use the small box under the left indent triangle to simultaneously move the first line indentation of the paragraph and the left indentation of the paragraph.
Right indent
The marker (triangle) at the bottom right end of the ruler.
Tab stops
Tab stops are set by a mouse click on the desired position on the ruler. The tab stop type is selected by clicking the little square with the tab stop symbol at the left end of the ruler. The meaning of the tab stop types is explained in the Paragraph Format chapter.
To move a tab stop, simply drag it with the mouse to the desired position. To remove it, drag it away from the ruler area.
Normally, the ruler will let you set the indent markers and tab stops only at certain increments (e.g. 1/8 inch). This behavior facilitates alignment of different margins to exactly the same position. If you need finer precision, hold down the Alt key while dragging the marker or tab stop along the ruler. The exact position of the marker or tab stop is displayed during dragging.

Formatting Styles

In order to maintain uniform appearance of a longer text and to make formatting quicker, you can create styles comprising the formatting used for a particular type of paragraph or characters. A separate chapter is devoted to the creation and modification of styles. A defined style can be applied to the target paragraph or characters by the tool bar or by the paragraph format or character format window respectively.

Text Tables

You can insert a table into a text by the Insert|Insert Table to Text menu command. An initial table with 2×2 cells is inserted. You can add or delete rows and columns using the Table menu (the text table menu version). Column widths can be adjusted either by dragging the column positions on the editor ruler or directly by mouse-grabbing and dragging the vertical line between columns. Dragging affects the column width in all rows. If you need to change the column width only in some rows, you must select them first (by the Shift + arrows keys).
Column widths, cell frames, cell background color, and alignment of the cell content can be adjusted in the Table format window.
Drawing of table frames can be also turned off completely. After that the table can be used to arrange text on the page.

Pictures

You can insert a picture into a text by the Insert|Picture menu command. This command allows you to browse for the file containing the picture you wish to insert. Another option is to copy the picture from an image processing application through the clipboard (using the copy and paste commands). The inserted picture behaves as one character and can be handled in this way. Therefore, if you wish to place a picture in the center of the page, insert it into a separate paragraph aligned to the center. Similarly, if you wish to have a picture indented, adjust the indentation of the paragraph. You can also use a table to arrange pictures on the page.
When you click a picture or select it (by the Shift + arrows keys), little squares appear in the corners of the picture and in the middle of its borders. You can use them to change the size of the picture. Grabbing and dragging the right border changes the width while grabbing and dragging the bottom border changes the height. Grabbing and dragging the bottom right corner changes the height and width simultaneously so that the aspect ratio is preserved, which is usually desirable. Adjustment of picture size does not, of course, change its resolution, but only its size displayed in the text.
You can modify the appearance of an active picture also in the Picture format window invoked by the Format|Picture Format menu command.

Context Menu

Menu Item
Description
Character Format
Opens the Character format window.
Paragraph Format
Opens the Paragraph format window.
Picture Format
Opens the Picture format window.
Print…
Displays the standard Windows printing dialog that allows you to choose the printer used to print the text and change the printer settings.
Save Text…
Allows the user to save the entire contents of the editor either as a new item to the Data section or to a new text document. A dialog appears before saving, where you can choose whether the text should be saved to a new document or to the Data section. If the latter is the case, you can also assign a name to the new item. If you save the text to a new document, an RTF file is created when saved to disc.
Note: You can save any part of a text to the Data section by selecting the part and copying it to that section.
Text Table
Table Format
Displays the Table format window.
Insert Row Above
Inserts a table row above the row where the cursor is located or above the selected part of the table. The inserted row has the same format (frames, background color …) as the row where the cursor is located.
If multiple rows are selected, the number of inserted rows is the same as the number of selected rows. Newly inserted rows have the same format as the selected ones.
Insert Row Below
Like the Insert Row Above command, but the new row(s) is/are inserted below the active row(s).
Insert Column Left
Inserts a column to the left of the column where the cursor is located. The inserted column has the same format as the column where the cursor is located.
If multiple cells in multiple columns are selected, the number of inserted cells is the same as the number of selected cells. If only several rows are selected instead of an entire column, new cells are inserted only in the selected rows.
Insert Column Right
Like the Insert Column Left command, but the new cells are inserted to the right.
Divide Table
Divides a table into two tables above the row where the cursor is located. Two tables get merged by deleting all paragraphs that keep them apart.
Delete Row
Deletes the table row in which the cursor is located.
Delete Column
Deletes the table column in which the cursor is located.
Delete Cell
Deletes the table cell in which the cursor is located. The respective row will be one cell shorter – the table will be jagged.

Status Line

During editing using the rich text editor, little boxes showing the numbers of the current paragraph and character of the cursor position are displayed in the bottom right corner in the status line. You can modify these values by a mouse click to move quickly within longer texts.

Best Practices of Text Formatting

In addition to spelling rules, it is highly advisable to adhere to certain typographic and other conventions that are no less important for cultivated typewriting. Here are the fundamental ones:
♦ Punctuation marks, that is . (period) , (comma) ; (semicolon) : (colon) ! (exclamation mark), ? (question mark), should be followed – not preceded – by a space.
♦ The opening bracket should be preceded – not followed – by a space. For the closing bracket it holds vice versa.
♦ Make sure that there is exactly one space between words because otherwise the text looks unbalanced, especially when it is aligned to both margins since spaces tend to be wider there.
♦ Make sure to distinguish between a hyphen and a dash. A hyphen connects two words (e.g. ice-cream-flavored candy) and is typed as a short horizontal line (the one that is normally available on the keyboard). A dash divides two sentences in a similar way as a comma (e.g. Sfairadora – among other advantages – provides an easy way of typing a dash). It is represented by a longer horizontal line and in Sfairadora it is typed by the Ctrl+num – (minus on the numeric keypad on the right) keys.
♦ The “” (minus) mathematical symbol is also typed as a dash.
♦ If you type numbers where thousands are separated by a space, use a hard space (Ctrl+Shift+spacebar keys), which prevents line breaks inside the number and also preserves uniform widths of the spaces even if the paragraph is aligned to both margins.
♦ Use italics to emphasize a word in the text and bold font for even stronger emphasis. Underlining should be avoided, as it is a relic from the typewriter era, which had no other means of emphasizing a piece of text.
♦ Use the ruler for the first line indentation as described above. Avoid using the Tab and especially a sequence of spaces.
♦ Use either tabs (set the tab stops on the ruler) or tables (switch off the display of frames) to align texts below each other. Do not align anything by typing a series of spaces – first because the alignment is not precise and second because the width of the spaces may change if font is changed, and consequently the alignment gets disarranged. Furthermore, do not use a series of Tabs – make sure to put the tab stops where you need them.
♦ Determine the space between paragraphs using the “Space before paragraph” and “Space after paragraph” attributes (see the paragraph format window). Do not create spaces between paragraphs by inserting several empty paragraphs (by pressing the Enter key several times), because you may get undesirable results when the page is broken in the middle of a series of empty paragraphs.
♦ To determine the paragraph position on a page, use the “Paragraph at new page”, “Keep paragraph together” and “Keep with next paragraph” options (see the Pages tab in the paragraph format window).

End of Editing

The process of entering and editing text in a rich text editor can be ended by the following operations:
Key
Function
Shift+Enter
Saves changes and activates the next control in the window.
activation of any other control
Changes are saved before you switch from the rich text editor to another control. You can switch to another control by a mouse click or by any of the keys for moving within a window. Changes can thus be saved and the editing ended, for example, by pressing the ↓ key on the last line of the text or the ↑ key on the first line of the text (simply by moving the cursor out of the editor).