Jump to content

Recommended Posts

Hi,

I would like to replace a paragraph style with a different one.

The Find and Replace panel does allow for specifying text styles, but then one seems to have to enter a regular expression to find all the text. I tried with different regex strings, with no success.

How would you do?

Paolo

 

Link to comment
Share on other sites

1 hour ago, PaoloT said:

but then one seems to have to enter a regular expression to find all the text

You do not need to enter a Find expression, or a Replace expression.

Simply specifying the format to find, and the format to replace with, will work.

-- 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.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1

Link to comment
Share on other sites

1 minute ago, walt.farrell said:

You do not need to enter a Find expression, or a Replace expression.

Simply specifying the format to find, and the format to replace with, will work.

Perhaps I'm on your ignore list but isn't that what I showed in my video here above?




 

Link to comment
Share on other sites

18 minutes ago, Return said:

Perhaps I'm on your ignore list but isn't that what I showed in my video here above?

Perhaps it is what you showed. It was unclear to me.

But words also help, and are often simpler to understand than having to watch a video and figure out what the video is trying to show.

-- 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.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1

Link to comment
Share on other sites

Thank you for your answers. It was what I was doing, but it didn't work.

But I finally understand what I was doing wrong. I was hoping to see the Replace All button enabled immediately after having entered the search/replacement criteria.

It doesn't work this way. You have to first click Find once, and then Replace and Replace All appear.

I'm not sure it is the most intuitive way of working, and I would probably prefer Replace All to appear immediately. But it's not a major issue.

Paolo

 

Link to comment
Share on other sites

2 hours ago, PaoloT said:

You have to first click Find once, and then Replace and Replace All appear.

Until you click the Find button, the app has no way of knowing if you are through entering text in the Find field. Otherwise, it would have to begin looking for matches beginning with the first character you typed into that field. So imagine how much processing power it would take if you just typed for instance "th" in a document that had tens of thousands of words in it.

All 3 1.10.8, & all 3 V2.5.5 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
A
ll 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

3 minutes ago, R C-R said:

Until you click the Find button, the app has no way of knowing if you are through entering text in the Find field. Otherwise, it would have to begin looking for matches beginning with the first character you typed into that field. So imagine how much processing power it would take if you just typed for instance "th" in a document that had tens of thousands of words in it.

That what Microsoft Word does, it updates the results in the Find pane as you type into the Find field. It's an awesome feature and has set the bar rather high for other apps.

Link to comment
Share on other sites

4 minutes ago, MikeTO said:

That what Microsoft Word does, it updates the results in the Find pane as you type into the Find field. It's an awesome feature and has set the bar rather high for other apps.

Does it start doing that with the first character typed? So if say I just typed "t" in a document with 150,000 words in it, how quickly would it list every word with a 't" in it?

All 3 1.10.8, & all 3 V2.5.5 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
A
ll 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

Just tested(not with 150.000 words though) but it was instantly.
I think Serif tries, with its approach, to avoid this resource overhead because it isn't a wordprocessor and there could be multi vector and raster items with (live)filters in the same document which could possibly grind your system to a halt.




 

Link to comment
Share on other sites

Posted (edited)
15 minutes ago, R C-R said:

Does it start doing that with the first character typed? So if say I just typed "t" in a document with 150,000 words in it, how quickly would it list every word with a 't" in it?

Word shows results in the sidebar only when there are <101 results, at least on macOS. If there are more than 100 results it doesn't list them but just takes you to the first one.

In a document with 150,000 words (my history book happens to be about that long and I have a backup in Word), it shows the 100 or fewer results within a fraction of a second after pausing typing. It doesn't update the results as I type at regular speed but only if there is a pause longer than a certain number of milliseconds.

Edited by MikeTO
corrected typo
Link to comment
Share on other sites

55 minutes ago, MikeTO said:

It doesn't update the results as I type at regular speed but only if there is a pause longer than a certain number of milliseconds.

Thanks for checking. Personally, I think it could be a little distracting for it to update after each pause but maybe that's just me.

Anyway, once users understand how it works in Affinity it should be easy enough to remember that a click on Find is what shows the found items.

All 3 1.10.8, & all 3 V2.5.5 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
A
ll 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.