[Solved] Apply paragraph styles with font search

Discuss the word processor
Post Reply
BasePlayer
Posts: 103
Joined: Mon Dec 03, 2012 1:23 am

[Solved] Apply paragraph styles with font search

Post by BasePlayer »

Hi everyone.

I have to put my hand up right away and admit to being a messy writer, so I don't use paragraph styles from the word go, and I know I should. Problem is (I'm only human) things start of as drafts, and then develop, and then get to the stage where you say, okay, this needs to be cleaned up.

What I'm working on has some paragraphs in TimesNewRoman, and some in Bookman Old Style. This might be because I have been importing sections that were written on a different device. I thought all I had to do was to identify the Style Name which had Bookman as the font, and then change the font in that style to Times. That's when I discovered that both paragraphs have the style name "Predeterminado" - which I think is "Default" (I'm working with a Spanish language version of Writer.)

It doesn't help that both fonts appear the same on screen.

So then I thought I could do a global search for characters in Bookman font, and manually change each the font in each paragraph where this occurs, only to discover that Bookman is not one of the font options in the attributes of text to search on.

I've been criticised on this forum before for not having done my homework, and I found this excellent tutorial.
https://openoffice-uni.org/openoffice-uni-en.pdf
Trouble is, it includes an exercise text file, and my computer won't let me download it. (I get: Unconfirmed 746182.crdownload)

Is there something simple I'm missing?

I'm attaching the two paragraphs in question.

Thanks,

K
Attachments
Sample.odt
(11.9 KiB) Downloaded 15 times
Last edited by MrProgrammer on Sat Aug 30, 2025 2:19 pm, edited 2 times in total.
Reason: Tagged ✓ [Solved]
Keith
(Open Office Ver 4.1.11 on Windows 10)
JeJe
Volunteer
Posts: 3089
Joined: Wed Mar 09, 2016 2:40 pm

Re: Apply paragraph styles

Post by JeJe »

You can use the search replace dialog. It doesn't matter that Bookman Old Style isn't in the list of fonts - you can type it in yourself and search for it anyway.
search.jpg
search.jpg (46.04 KiB) Viewed 1175 times
text format.jpg
text format.jpg (31.97 KiB) Viewed 1175 times
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
JeJe
Volunteer
Posts: 3089
Joined: Wed Mar 09, 2016 2:40 pm

Re: Apply paragraph styles

Post by JeJe »

PS the Bookman Old Style is direct formatting applied to the text of the whole paragraph. The paragraph font is default style/Times New Roman, but the direct formatting of Bookman Old Style overrides it.
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
User avatar
MrProgrammer
Moderator
Posts: 5322
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA

Re: Apply paragraph styles

Post by MrProgrammer »

BasePlayer wrote: Fri Aug 22, 2025 10:23 pm Problem is (I'm only human) things start of as drafts, and then develop, and then get to the stage where you say, okay, this needs to be cleaned up.
Eventually you may learn that in the long run it takes less time to use styles right away, creating them as you need them. Cleanup of documents with a lot of direct formatting is often very difficult. In fact, I have seen many topics where the advice is to just clear all direct formatting and start afresh. Perhaps that is the case here too.

BasePlayer wrote: Fri Aug 22, 2025 10:23 pm Trouble is, it includes an exercise text file, and my computer won't let me download it.
Downloading is something you do with your web browser. The method varies depending on which web browser you use. I can download the exercise text file with Safari:
• I open openoffice­-uni.org        Be sure to include the hyphen
• I right-click TXT and select Download linked file
This saves to my Downloads folder. If you use a different web browser your procedure may be different. Perhaps your anti-virus software is responsible for the trouble you're having.
202508221758.gif
202508221758.gif (34.37 KiB) Viewed 1165 times

If you can't get your web browser to do the download from openoffice­-uni.org, I've attached the download from my computer.
prax-en.txt
(81.88 KiB) Downloaded 15 times

BasePlayer wrote: Fri Aug 22, 2025 10:23 pm What I'm working on has some paragraphs in TimesNewRoman, and some in Bookman Old Style. … It doesn't help that both fonts appear the same on screen. … Bookman is not one of the font options in the attributes of text to search on.
If Bookman Old Style isn't shown in the dialog, this suggests that this font isn't installed on your computer. It is impossible for OpenOffice to display text in a font which isn't installed. Instead it substitutes a different font which is installed. I don't know how OpenOffice chooses the replacement font. It it chooses Times New Roman, of course all the font appears to be the same.

If you really want to display Bookman Old Style you will have to install it. That is an operating system task. Use a web search to find a source for the font. Consult the documentation for your operating system to find the procedures for installing fonts. After you install the font, close and re-open OpenOffice so it can find the font.

BasePlayer wrote: Fri Aug 22, 2025 10:23 pm Then I thought I could do a global search for characters in Bookman font, and manually change each the font in each paragraph where this occurs.
If you mean changing the font using Format → Character, no!! Stop using damned direct formatting. First create a style which uses the font you want. Use Edit → Find & Replace to ask the dialog to search for the text with the Bookman Old Style font. Use the Find All button to select that text. Then open Format → Styles and Formatting and double-click your style to apply it to everything that Find All has highlighted.. This replaces Bookman Old Style with the font from the style.
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7.6, iMac Intel.   The locale for any menus or Calc formulas in my posts is English (USA).
BasePlayer
Posts: 103
Joined: Mon Dec 03, 2012 1:23 am

Re: Apply paragraph styles

Post by BasePlayer »

Many thanks, guys and especially for sending me download. I mean to go through that carefully, because I don't find the use of styles at all intuitive.
Keith
(Open Office Ver 4.1.11 on Windows 10)
User avatar
robleyd
Moderator
Posts: 5429
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: Apply paragraph styles

Post by robleyd »

You might find useful some of the documentation for styles.

Introduction to Styles
Working with Styles
Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 25.8.1.1; SlackBuild for 25.8.1 by Eric Hameleers
---------------------
Roses are Red, Violets are Blue]
Unexpected '{' on line 32
.
BasePlayer
Posts: 103
Joined: Mon Dec 03, 2012 1:23 am

Re: Apply paragraph styles

Post by BasePlayer »

This is very helpful. Thank you so much.
Keith
(Open Office Ver 4.1.11 on Windows 10)
Post Reply