antons Posted April 23, 2023 Posted April 23, 2023 Are you using the latest release version? yes, 2.0.4 Can you reproduce it? Create a new design Add text with text style 'Heading 1' Add other text on a new line with text style 'Body' 'Find' with regex expressions on Change in 'Find/Settings/Format/Character/' the 'Font weight' to Bold Search for `.*` : it works Search for `.*$` (end $): it works Search for `^.*` (start ^): it crashes Does it happen for a new document? Yes If you cannot provide a sample document then please give an accurate description of the problem for example it should include most of the following: I tried switching hardware performance on and off - it still crashes In the meantime: are there other workarounds to find bold text ONLY if it is in the beginning of a line/paragraph? publisher_crash.mov Quote
Old Bruce Posted April 23, 2023 Posted April 23, 2023 I would use ^.+ for the search string instead of your ^.* This means I would look for ^ The start of a line . anything + one or more instances of the "anything" instead of your ^ The start of a line . anything * zero or more instances of the "anything" Quote Mac Pro (Late 2013) Mac OS 12.7.6 Affinity Designer 2.6.0 | Affinity Photo 2.6.0 | Affinity Publisher 2.6.0 | Beta versions as they appear. I have never mastered color management, period, so I cannot help with that.
antons Posted April 23, 2023 Author Posted April 23, 2023 Thanks Old Bruce, that's a very good point! My real use case is more complex than .*, but using + in place of * where appropriate fixes the crashes It creates another issue though: I'm searching for bold text in a particular paragraph style (Body), if the bold text is 'alone' in the line: My Bold Text everything works as expected, if the bold text precedes normal text: My Bold Text: Other non bold text It appears in the 'Find' results, but I can't click the result / clicking doesn't do anything - it doesn't jump to it in the file; clicking 'Replace' also doesn't do anything Quote
Seneca Posted April 23, 2023 Posted April 23, 2023 6 minutes ago, antons said: but using + in place of * where appropriate fixes the crashes A regular expression, whether well-formed or malformed should not bring the program down. So I would submit this as a possible bug for the development team to look at. Old Bruce 1 Quote 2017 27” iMac 4.2 GHz Quad-Core Intel Core i7 • Radeon Pr 580 8GB • 64GB • Ventura 13.6.4. iPad Pro (10.5-inch) • 256GB • Version 16.4
walt.farrell Posted April 23, 2023 Posted April 23, 2023 You may not need the regular expression at all for that, if I understand what you're trying to do. Just leave the find field blank, and search for the font weight. But I would need more details on what you want to do with the text you find to say for sure. Quote -- Walt Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases PC: Desktop: Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 Laptop: Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU. Laptop 2: Windows 11 Pro 24H2, 16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU iPad: iPad Pro M1, 12.9": iPadOS 18.3.1, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1
Dan C Posted April 24, 2023 Posted April 24, 2023 Hi @antons, Welcome to the Affinity Forums & thanks for your in-depth report! 20 hours ago, antons said: Create a new design Add text with text style 'Heading 1' Add other text on a new line with text style 'Body' 'Find' with regex expressions on Change in 'Find/Settings/Format/Character/' the 'Font weight' to Bold Search for `.*` : it works Search for `.*$` (end $): it works Search for `^.*` (start ^): it crashes 19 hours ago, antons said: It creates another issue though: I'm searching for bold text in a particular paragraph style (Body), if the bold text is 'alone' in the line: My Bold Text everything works as expected, if the bold text precedes normal text: My Bold Text: Other non bold text It appears in the 'Find' results, but I can't click the result / clicking doesn't do anything - it doesn't jump to it in the file; clicking 'Replace' also doesn't do anything I can confirm that I have been able to replicate both of these issues and I have logged these with our developers for you now. I hope this helps antons 1 Quote
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.