big smile Posted May 22, 2020 Share Posted May 22, 2020 I am using Find and Replace to apply Paragraph text styles. When I do this, the applied text styles have extra overriden attributes added to them. Because my document has hundreds of pages, I don’t want to click on each one and cancel the overrides. How can I apply the text styles via Find and Replace without having these overriden attributes added to them? Quote Link to comment Share on other sites More sharing options...
Old Bruce Posted May 22, 2020 Share Posted May 22, 2020 Are you applying the style (Normal) to text with (say) italic on some words and you want the italic removed after application (Normal)? big smile 1 Quote Mac Pro (Late 2013) Mac OS 12.7.4 Affinity Designer 2.4.1 | Affinity Photo 2.4.1 | Affinity Publisher 2.4.1 | Beta versions as they appear. I have never mastered color management, period, so I cannot help with that. Link to comment Share on other sites More sharing options...
big smile Posted May 22, 2020 Author Share Posted May 22, 2020 3 hours ago, Old Bruce said: Are you applying the style (Normal) to text with (say) italic on some words and you want the italic removed after application (Normal)? Original text: Helvetica 18pt (no italics or bold). I am applying a style called Heading. After doing Find and Replace, Heading gets applied. But then values like leading, space after are added as overrides instead of using the values in Heading. Quote Link to comment Share on other sites More sharing options...
walt.farrell Posted May 22, 2020 Share Posted May 22, 2020 40 minutes ago, big smile said: Original text: Helvetica 18pt (no italics or bold). I am applying a style called Heading. After doing Find and Replace, Heading gets applied. But then values like leading, space after are added as overrides instead of using the values in Heading. Did the original text have those attributes applied before you did the Replace? big smile 1 Quote -- Walt Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases PC: Desktop: Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 Laptop: Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU. iPad: iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1 Link to comment Share on other sites More sharing options...
big smile Posted May 23, 2020 Author Share Posted May 23, 2020 15 hours ago, walt.farrell said: Did the original text have those attributes applied before you did the Replace? Nope. Quote Link to comment Share on other sites More sharing options...
Wosven Posted May 23, 2020 Share Posted May 23, 2020 Hi, Perhaps the problem come with the Header style. Which style in on your text? Does it come from the same parent-style (like Base) than the one for Header? Did you import your text, apply "no style" for paragraph and character styles, and apply on this your Body text style (or another one), before searching and replacing with Header? Quote Link to comment Share on other sites More sharing options...
big smile Posted May 24, 2020 Author Share Posted May 24, 2020 15 hours ago, Wosven said: Hi, Perhaps the problem come with the Header style. Which style in on your text? Does it come from the same parent-style (like Base) than the one for Header? Did you import your text, apply "no style" for paragraph and character styles, and apply on this your Body text style (or another one), before searching and replacing with Header? The text was imported, but it has no style applied to it. The header style I am applying is a base style. Quote Link to comment Share on other sites More sharing options...
Wosven Posted May 24, 2020 Share Posted May 24, 2020 If your Header style don't have specific choices about colours, normal (=/= italic), size, etc. and the underlaying text use colours, italic, etc., the style won't override them. But your text shouldn't have local formatting. For this, select all your text, cut it, and paste it again without formatting (Menu Edit). Another way to do this: to have a basic text style with specific like font Arial, font normal, 9 pts, black, leading 12 pts, and set all your text in this simple style, before applying other styles. This way, searching for text using this style, you'll know which paragraphes you didn't apply styles to (but this text shouldn't have overrides too). What I call a "base style" is more a Paragraph style group" that will be parent of other styles, and containing the information about the font, for example. Like the Base_title in this file. You can easily modify the font of this group style, and all children that don't override this font for another, will use the new font too. Base_styles.afpub Quote Link to comment Share on other sites More sharing options...
big smile Posted May 25, 2020 Author Share Posted May 25, 2020 19 hours ago, Wosven said: But your text shouldn't have local formatting. For this, select all your text, cut it, and paste it again without formatting (Menu Edit). My text doesn't have any local formatting. It's just Helvetica 18pt (no italics or bold). Is this something Affinity has changed? In the past, I could use Find and Replace to apply styles and I wouldn't get any overrides. Quote Link to comment Share on other sites More sharing options...
Wosven Posted May 25, 2020 Share Posted May 25, 2020 Can you provide a sample? It's difficult to find the solution without looking at a file. Quote Link to comment Share on other sites More sharing options...
big smile Posted May 26, 2020 Author Share Posted May 26, 2020 On 5/25/2020 at 12:16 PM, Wosven said: Can you provide a sample? It's difficult to find the solution without looking at a file. Unfortunately, I can't provide a sample as it has work that I am not allowed to share. However, I tried making a 'redacted sample' that has only one line of text. When I did this, the Find and Replace worked properly, so I am guessing there must be something in the file that is creating the problem. I noticed that Affinity has an option called "reapply text styles" which can be used to clear overrides. So I set a keyboard shortcut to that command and then used Keyboard Maestro to go through all the text and clear the overrides. I guess this a screwy bug! If I find a way to reproduce it, I will post it in the bugs sections. Thanks to everyone who helped. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.