Navigation: More Advanced Procedures > Replacing Formatting and Styles Font attributes - unstyled text |
Scroll Prev Top Next More |
The instructions below explain how to use Replace Styles to apply formatting to text that does not have any Help+Manual styles applied to it. See the topic on styled text for information on how to reformat text that already has Help+Manual styles applied to it.
Before you try to follow these instructions, please study the Introduction to style replacement for an explanation of how the Replace Styles function works. This will make it much easier for you to use this feature.
Unstyled text is text that does not have any Help+Manual style applied to it. This is visible in the style selector in the Write > Font section of the Ribbon – when it is blank instead of displaying a style the text at the current cursor position is unstyled. ![]() The style selector looks like this when the cursor is on unstyled text Basically you proceed exactly as you would for performing an exact or fuzzy search for styled text. When you click in unstyled text before selecting the Replace Styles function the Font Style Name field in the left column of the Replace Styles dialog automatically displays (Unstyled text only). All the other settings and procedures are exactly the same. This is because the only difference between styled and unstyled text is that styled text has a style name assigned to it. Remember: the style name is just one attribute among many. For more details see the example in Styling imported text. |
Frequently you will format certain texts in a different way to highlight them or make them easier to identify. For example, you might format the names of menu items using a different font and italics. The objective here is to apply named styles to these texts, so that you can later change the formatting of all of them just by changing the style definition. You will most frequently need to do this with imported formatted text – for example from RTF, CHM or HTML files – where all the formatting is always imported as manual formatting. This is a two-step process: First you need to create a style on the basis of the manual formatting, then you need to use Replace Styles to apply this style to all the examples of that formatting in your project. After you do this you can then change the formatting of all these texts just by editing the style definition. Step 1: Create a new style on the basis of the formatting1.Select an example of the text you want to use as the model for the style (click in the text or select it). 2.Select Styles > Create Style from Selection in the Write tab and create a new text style on the basis of the formatting. This example creates a text style because it is assumed you are applying style to text within paragraphs. You can also use the same approach for creating paragraph styles, but then you must also apply the paragraph format to the text as well in a second operation. Step 2: Apply the style to all the texts with matching formattingClick on the individual steps below to display more detailed instructions. 1.Select multiple topics if you want to replace only in some topics
2.Click in the formatted text in the editor, then select Replace Styles and Font mode
3.Select (Any text) for the Font Style Name
4.Select the name of the style you created in the right column
5.Click on Replace Styles to execute
|
Sometimes you may just want to quickly replace one kind of formatting in your document with another kind of formatting, without using styles at all. You do this by switching off the style names in the search and target fields and then replacing the formatting. Click on the individual steps below to display more detailed instructions. 1.Select multiple topics if you want to replace only in some topics
2.Click in the formatted text in the editor, then select Replace Styles and Font mode
3.Change the Font Style Name: setting in the left column to (Any text)
4.Select the target style name setting
5.Select Custom Settings: in the right column
6.Click on Replace Styles to execute
|
This is just a variation on reformatting manually-formatted text without using styles. Basically all you need to do is follow the instructions for reformatting manually formatted text (see above) with the following two changes: 1.Select the name of the style you want to remove in the left column. 2.Select (Remove style name) in the right column. |