OOo Off the Wall: Building Characters
Character styles are a set of formatting options applied to selected text. They are a basic tool in most word processors, and OpenOffice.org's use of character styles is more or less typical. If you have used character styles in other word processors, then you probably can grasp the basics of using them in OpenOffice.org with few difficulties.
If you are a newcomer to styles, imagine that you decide to put the title of a book in italics. You could enter an override by selecting the italics icon on the Function bar. However, you can work more efficiently if you create a character style for italics or book titles, and apply the style instead. That way, if you decide that all the book titles in your document should use a bold regular weight instead of italics, you can update them simultaneously by modifying the style.
As with other word processors' character styles, OpenOffice.org's work closely with paragraph styles. That is, the basic font of a character style usually is chosen to match or contrast with a particular paragraph style's font. Often, too, the character style differs from the paragraph style only in the font effect, position or background it uses. In fact, you can think of character styles as a style-based override of a paragraph. But no matter how you think about them, character and paragraph styles are a matched pair, by far the most widely used styles in OpenOffice.org.
What is less obvious and more unusual is that many character styles play important roles in the automatic functions of OpenOffice.org Writer, as well as in the export to other formats. Without these character styles working in the background, much of the convenience of Writer would be lost.
How do character styles work in Writer? How can you get the most out of them? When you know the answers to these questions, you'll start to understand the power of using styles to format your work.
Character styles in OpenOffice.org have several characteristics that you should be aware of when using them:
Character styles do not have a Next Style field on the Organizer tab. Character styles generally are applied to selected text in paragraphs otherwise formatted with a paragraph style. Under this circumstance, specifying the next style makes no sense.
Unlike paragraph styles, character styles have a limited number of views available from the drop-down list in the stylist: All, Applied Styles, Custom and Hierarchical.
Character styles in OpenOffice.org are not cumulative, as they are in some word processors. In other words, you cannot apply the Emphasis character style followed by the Internet Link character style to get a format that combines the features of both. If you try, all you do is change the format of the selected text from Emphasis to Internet Link. Instead, you need to create a third character style that combines the characters of both. The quickest way to do this would be to create a new character style based on one of the styles and then modify it to use the features you want from the second style.
Every now and then, people on the OpenOffice.org users' list asks why so many styles are pre-defined. They would rather define their own styles, they say, and grow peevish when they find that they can't delete the pre-defined ones. However, set the Stylist to the All View and select the Character Style button, and you'll soon understand why the pre-defined styles exist and are undeletable.
To start with, many character styles are used automatically by OpenOffice.org, even though you might not be aware of the fact. For example, the Bullet style is used for unordered lists and the Numbering Symbol style for ordered lists. Similarly, Line Number is used whenever you select Tools -> Line Numbering, and Page Number is used when you select Insert -> Fields > Page Number. And, when URL Recognition is chosen from Tools -> AutoCorrect/AutoFormat -> Options, Writer automatically uses the Internet and Visited Internet Link character styles when appropriate. You don't need much reflection to realize that if such character styles were deletable, an anal-retentive user could cripple Writer in the name of tidiness.
Less obviously, many pre-defined character styles also are mapped to HTML, XHTML and/or XML tags. For example, the Emphasis character style maps to the em tag and the Strong Emphasis style to the strong tag. Other tags mapped to markup languages include Definition (dfn), Example (sample), Quotation (cite) and Source Text (code). You could export to a markup language without these styles, but the code would be dependent on a style sheet and considerably less clean.
Customizing the pre-defined styles, of course, is another matter. Because they are used automatically, you can format them and forget about them. What if you prefer not to look at them at all? Make your own character styles, and select the Custom Styles view in the Stylist. The predefined styles continue to be applied in the background and are updated by any changes made to your default paragraph fonts.
-- Bruce Byfield (nanday)
|Happy Birthday Linux||Aug 25, 2016|
|ContainerCon Vendors Offer Flexible Solutions for Managing All Your New Micro-VMs||Aug 24, 2016|
|Updates from LinuxCon and ContainerCon, Toronto, August 2016||Aug 23, 2016|
|NVMe over Fabrics Support Coming to the Linux 4.8 Kernel||Aug 22, 2016|
|What I Wish I’d Known When I Was an Embedded Linux Newbie||Aug 18, 2016|
|Pandas||Aug 17, 2016|
- Happy Birthday Linux
- Download "Linux Management with Red Hat Satellite: Measuring Business Impact and ROI"
- ContainerCon Vendors Offer Flexible Solutions for Managing All Your New Micro-VMs
- Updates from LinuxCon and ContainerCon, Toronto, August 2016
- What I Wish I’d Known When I Was an Embedded Linux Newbie
- NVMe over Fabrics Support Coming to the Linux 4.8 Kernel
- New Version of GParted
- Tor 0.2.8.6 Is Released
- All about printf
With all the industry talk about the benefits of Linux on Power and all the performance advantages offered by its open architecture, you may be considering a move in that direction. If you are thinking about analytics, big data and cloud computing, you would be right to evaluate Power. The idea of using commodity x86 hardware and replacing it every three years is an outdated cost model. It doesn’t consider the total cost of ownership, and it doesn’t consider the advantage of real processing power, high-availability and multithreading like a demon.
This ebook takes a look at some of the practical applications of the Linux on Power platform and ways you might bring all the performance power of this open architecture to bear for your organization. There are no smoke and mirrors here—just hard, cold, empirical evidence provided by independent sources. I also consider some innovative ways Linux on Power will be used in the future.Get the Guide