Help:Manual Textframes: Difference between revisions
No edit summary |
m (moved Help Manual Textframes to Help:Manual Textframes) |
(No difference)
|
Revision as of 05:48, 27 April 2011
Working with Text
Unlike using a wordprocessor, Scribus uses a frames environment. Therefore, you cannot simply enter text on a document page. See Working with Frames to learn about frame creation and manipulation. Once you have a text frame, your task now is to put some text into it.
You may place text into a text frame in the following ways:
- Using Story Editor.
- Directly into the frame on the main screen.
- Importing text from a plain text file.
- Importing from selected formatted files, such as ODT, HTML, CSV. There are other file formats such as DOC files which can import only the text without any formatting.
- You can also set up custom tags in text files to act as a filter for formatting on import.
Using Story Editor
This is listed first because it is the recommended way to enter text manually from the keyboard. Bring up the Story Editor (SE) from the Context menu or with Ctrl+T. Because SE is very versatile, it will be covered in detail in its own section. Its main disadvantage is that you will not see the final appearance of the text until you update the frame, with or without exiting SE. SE is also a convenient way to create, edit, and apply Paragraph and Character Styles.
On the Main Screen
A selected frame can enter Edit Contents mode by clicking the Edit Contents icon on the toolbar or double-clicking on the frame (keyboard: E). The advantage of this is that you can see immediately the appearance of your additions or edits. It is a bit slower, since screen refreshes are involved. You can use Properties to change the font, style, and other characteristics such as linespacing. For small edits and frames which only contain a small amount of text, Edit Contents can serve your needs well.
Inline Graphics
You may also insert any graphics in a line of text. Simply copy the item (Ctrl+C, for example), then paste into the line of text while in Edit Contents mode. This will not work in Story Editor.
Importing Text From a File
We'll collapse our above list a bit, so that we consider all these unformatted, formatted, and tagged files close together.
Plain Text
Clicking Get Text will bring up a file dialog and by default look for files ending in .csv, .html, .htm, .odt, .pdb, .sxw, and .txt, so if you save a plain text file, try to save as *.txt. You can also import .doc files in Linux if you have installed antiword – on Windows versions of Scribus this is already present. If the frame has content that you want to add to, use Append Text instead. While appending text works in both Select Item and Edit Contents modes, they both will append text at the end.
If you really do want to insert a file somewhere in the middle, append, then select the text in Edit Contents mode, cut, then paste at the point you wish it to go, while in Edit Contents mode or in Story Editor.
Plain text into an empty frame will use the default font settings for your text frames, which you can change in File > Preferences > Tools.
CSV, HTML, and ODT files
- CSV files (comma-separated values) are typically generated by spreadsheet or database programs, but they are simple enough that they could be created with a text editor. The data will be arranged so that a comma or some other character tells Scribus when the next field is coming, and a newline tells when the next row comes in the file. On importation, you have an opportunity to declare the separator, and also declare a value separator, typically quotation marks. The value separator is optional, and would be used to allow the inclusion of a comma inside the field. If you check that the first row is a header, those values will be made bold. When Scribus pulls in the data, it will use tabs between the fields. For the header row, these will be center-type and for the rest left-type.
- Considering the wide variety of HTML tags, it shouldn't be surprising that there are limitations to what Scribus can interpret from an HTML file. It will interpret text only between the <body> and </body> tags and mainly focus on recognizing headers, paragraph and line breaks, and text styles, though the styles available may depend on the fonts on the system. You can expect at least some extraneous text in a complex HTML file. Scribus will assign styles to variously formatted text.
- ODT files (from OpenOffice.org) are the recommended format when you want to automatically assign Scribus styles to text you import into a frame. Generally a very good to excellent result can be expected for recognizing and assigning styles, provided that you use styles in oowriter. This can also be a workaround for DOC or other files, by importing into oowriter and then saving as an ODT file. You cannot expect good results importing tables in this fashion, even in an ODT file.
Tagged Files
The idea of putting some kind of text indicator, or tag, at intervals in a text file in order to trigger some action when the file is read is elegant and has survived since the early days of computing. The purpose in Scribus would be to automatically cause the application of some edit to the text, most commonly a paragraph style. These tags can be anything you want, but should be a combination of easy to type, easy to find visually as you scan the file, and unique. This is why the suggestions you see on the wiki and the printed manual use 2-3 letter combinations, beginning with a backslash (\). On the textfile end of things you want to put these tags, let's say \h1 and \h2, at the beginning of a paragraph which is to receive some style. Once you have saved the file, you then import it, initially no different than a plain text file, by using Get Text. You likely did not see it, but please now note the button labeled Automatic in the dialog. Clicking this shows a drop-down list, where you can find Text Filters as a choice. | ![]() |
ALT="Automatic text filtering" | |
On choosing Text Filters, and then selecting your file and pressing Ok, you now have a bit of work to do, since unless you have already created the specific actions based on your tags, you must do so now. For each tag you have a choice of Remove, Replace, or Apply as the action, and of course here we want to apply a style, but as you can imagine, we might also use this to remove or replace some text on import without altering the file itself. In this small example, we have set up a filter that we have named thesis by choosing to Apply a paragraph style, named header1 for paragraphs starting with our tag, \h1, and we will remove match (the \h1). Had we previously set up thesis, it could be chosen from the drop-down button in the upper right corner of the dialog. Similarly, if we have already created these styles, they could be chosen from a list where you see header1 and header2. We could delete an action by clicking on the '–' button, and add another with the '+' button. | ALT="Automatic text filtering 3" |
Context Menu
Right-click on a frame to show its context menu, seen to the right. We will not cover all the features of the text frame context menu, but here is the particular list of choices available for text frames.
| <img src="images/context_text135.png" ALT="Text frame Context menu"> |
Linking Text Frames
Any multipage document is likely to need to link text from one page to the next. An automatic way of setting this up is when a new document is created. This graphic is from the lower right corner of the New Document dialog. We have set the Options for 4 pages initially, with 2-column frames (which will fill to the margins), and an 11-point gap between columns. Show Document Settings After Creation will bring up the Document Settings dialog after OK is clicked. You may freely edit the individual frames on pages afterward without losing your text linkage. Furthermore, if you add more pages to your document, they will also have these same linked frames. If you unlink somewhere in the middle, you will need to re-establish your linking pattern. | <img src="images/text_linking.png" ALT="Options in New Document Dialog"> |
Linking Existing Text Frames
A selected but unlinked text frame will show the toolbar icon to the left (green arrow) active. Click the link icon, then click the next frame that your selected frame is to link to. If you have more frames you wish to link to, continue clicking on them in order. When your linking is finished, remember to click the link icon to deactivate it.
< Unlinking is a similar process. The icon will only be active if you have selected a linked frame. Select the frame where you want the linking to stop, click the unlink icon, then click the next frame in the linkage. You will need to re-establish a linking pattern if you simply want to skip over a particular frame.
Properties: Text
<a name="10">What About the Baseline Grid?</a>
Color & Effects
Style Settings
Here in the Properties palette, we can only set an already created style. An explanation on creating and editing styles is found in <a href="WwStyles.html">Working with Styles</a>.
First Line Offset
Columns and Text Distances
Tabulators
Optical Margins
Advanced Settings
Word Tracking and Glyph Extension
You might consider these a more advanced or intelligent kerning and character width adjustment, where we can, by setting the Minimum and Normal, or Minimum and Maximum parameters, allow for adjustments in spacing in a selective fashion, yet frame-wide. As you adjust these, you will see only some words, some lines adjusting. The idea is to adjust for more pleasing, even layout of the words in the frame, trying to avoid or eliminate problems like white space rivers.