Jump to content

Recommended Posts

Thank you for your great work with regular expressions. It met my expectations and works well with Polish conjunctions.
On the screenshots, you can see how regular expressions correct conjunctions at the end of the line.

"Search and replace", where we enter the following expressions:

Search for a regular expression:
(\s[iuawzoIUAWZO])(\s)
- for individual characters

(\s(Do|W|We|Z|Za|Ze|I|O|U|A|do|w|we|z|za|ze|i|o|u|a))(\s)
or 
(\s\b.{1,2}\b)\s
- for longer words

Tekst zastępujący:
\1[Non Breaking Space - from the pop-up menu]

The rules come from: https://swiatczytnikow.pl/jak-pozbyc-sie-wiszacych-spojnikow-w-calibre/

It would be useful to be able to save the rule in the Publisher. Maybe it exists and I did not find it?

PS. Sorry for my English - Google translate 

01-before.png

02-after.png

03-before.png

04-after.png

Link to post
Share on other sites
  • Moderators

Thanks, that's interesting.

Is this a request for "save search", or have you found any problems using this search?

Patrick Connor
Serif Europe Ltd

There is nothing noble in being superior to your fellow man. True nobility lies in being superior to your previous self."  W. L. Sheldon

 

Link to post
Share on other sites
  • Moderators

Thanks, I've moved it to a more suitable forum for others to see and join the discussion

Patrick Connor
Serif Europe Ltd

There is nothing noble in being superior to your fellow man. True nobility lies in being superior to your previous self."  W. L. Sheldon

 

Link to post
Share on other sites
  • 9 months later...
39 minutes ago, mokry said:

There is indeed a problem with this function in Publisher. Having another button in 'Find and Replace' panel labelled 'Save as a Rule' would be nice!

1.8 (currently in beta) keeps a recently-used list of find and of replace expressions.

-- Walt

Windows 10 Home, version 20H2 (19042.685),
   Desktop: 16GB memory, Intel Core i7-6700K @ 4.00GHz, GeForce GTX 970
   Laptop (2021-04-06):  32GB memory, Intel Core i7-10750H @ 2.60GHz
, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU
Affinity Photo 1.9.2.1035 and 1.9.4.1065 Beta   / Affinity Designer 1.9.2.1035 and 1.9.4.1065 Beta  / Affinity Publisher 1.9.2.1035 and 1.9.2.1024 Beta

Link to post
Share on other sites
16 hours ago, walt.farrell said:

1.8 (currently in beta) keeps a recently-used list of find and of replace expressions.

I find the recently-used list to be nearly useless in that I frequently make mistakes and have to retype the thing and then correct the correction(s) so the list quickly becomes populated with my mistakes.

It is better than nothing but a saved set could be very nice for for complex items. I use this feature in BBEdit and will copy from that on occasion.

MacBook Pro (13-inch, Mid 2012) Mac OS 10.12.6 || Mac Pro (Late 2013) Mac OS 10.14.6

Affinity Designer 1.9.3 | Affinity Photo 1.9.3 | Affinity Publisher 1.9.3 | Beta versions as they appear.

Link to post
Share on other sites
5 minutes ago, Old Bruce said:

I find the recently-used list to be nearly useless in that I frequently make mistakes and have to retype the thing and then correct the correction(s) so the list quickly becomes populated with my mistakes.

It is better than nothing but a saved set could be very nice for for complex items. I use this feature in BBEdit and will copy from that on occasion.

That would be a reasonable feedback comment for the Publisher Beta forum, if you haven't mentioned it there already.

-- Walt

Windows 10 Home, version 20H2 (19042.685),
   Desktop: 16GB memory, Intel Core i7-6700K @ 4.00GHz, GeForce GTX 970
   Laptop (2021-04-06):  32GB memory, Intel Core i7-10750H @ 2.60GHz
, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU
Affinity Photo 1.9.2.1035 and 1.9.4.1065 Beta   / Affinity Designer 1.9.2.1035 and 1.9.4.1065 Beta  / Affinity Publisher 1.9.2.1035 and 1.9.2.1024 Beta

Link to post
Share on other sites
  • 5 months later...
  • 7 months later...
22 minutes ago, Zbigg said:

Can we also add regex to paragraph style?

No, it's only available as a manual Find/Replace operation.

-- Walt

Windows 10 Home, version 20H2 (19042.685),
   Desktop: 16GB memory, Intel Core i7-6700K @ 4.00GHz, GeForce GTX 970
   Laptop (2021-04-06):  32GB memory, Intel Core i7-10750H @ 2.60GHz
, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU
Affinity Photo 1.9.2.1035 and 1.9.4.1065 Beta   / Affinity Designer 1.9.2.1035 and 1.9.4.1065 Beta  / Affinity Publisher 1.9.2.1035 and 1.9.2.1024 Beta

Link to post
Share on other sites
5 minutes ago, walt.farrell said:

No, it's only available as a manual Find/Replace operation.

OK....but can be expected /soon/ ? ;)

cheers,

AF Photo+Designer+Publisher and their betas on Win10 x64/Gtx760+AmdFX+24GB RAM

 

Link to post
Share on other sites
15 minutes ago, Zbigg said:

OK....but can be expected /soon/ ? ;)

There's no way to know if Serif plans to provide that function, nor when they might do so.

-- Walt

Windows 10 Home, version 20H2 (19042.685),
   Desktop: 16GB memory, Intel Core i7-6700K @ 4.00GHz, GeForce GTX 970
   Laptop (2021-04-06):  32GB memory, Intel Core i7-10750H @ 2.60GHz
, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU
Affinity Photo 1.9.2.1035 and 1.9.4.1065 Beta   / Affinity Designer 1.9.2.1035 and 1.9.4.1065 Beta  / Affinity Publisher 1.9.2.1035 and 1.9.2.1024 Beta

Link to post
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

Please note there is currently a delay in replying to some post. See pinned thread in the Questions forum. These are the Terms of Use you will be asked to agree to if you join the forum. | 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.