Jump to content
You must now use your email address to sign in [click for more info] ×

PBREAK in Find and Replace


MikeTO

Recommended Posts

This is trivial, but the page break control code is inconsistent with the other breaks. We only see this in Find and Replace but any searching for a heading 1 or 2 in a complex book that uses breaks will reveal this.

Screenshot2023-08-27at2_43_26PM.png.291f7afa1ecad3fda569a483a3744bfd.png

Download a free manual for Publisher 2.3 from this forum - expanded 260-page PDF

Affinity 2.3.1 for macOS Sonoma 14.3, MacBook Pro 14" (M1 Pro)

 

Link to comment
Share on other sites

  • Staff

Hi @MikeTO,

Couple of things, Does this also apply to the Release build?  Just from my understanding, the Scope drop-down for Find and Replace is only in the beta of Publisher.   If you could also give me some more information on 'Page break control code' as its not something I've had experience of dealing with and has a couple of us in Tech Support wondering what it is.  It would also help greatly if you could attach the afpub file you are using, so I can try replicating this again, as so far I've failed but i suspect I'm missing a step somewhere :) 

 

Link to comment
Share on other sites

45 minutes ago, stokerg said:

If you could also give me some more information on 'Page break control code' as its not something I've had experience of dealing with and has a couple of us in Tech Support wondering what it is

Probably Text > Insert > Breaks > Page Break would give you one. But given what Mike showed, he's probably using the Flow options in the Text Styles for headings, which give you the options for starting on the next page, next odd page, next even page, etc.

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

Link to comment
Share on other sites

2 hours ago, stokerg said:

Couple of things, Does this also apply to the Release build?  Just from my understanding, the Scope drop-down for Find and Replace is only in the beta of Publisher.   If you could also give me some more information on 'Page break control code' as its not something I've had experience of dealing with and has a couple of us in Tech Support wondering what it is.  It would also help greatly if you could attach the afpub file you are using, so I can try replicating this again, as so far I've failed but i suspect I'm missing a step somewhere :) 

Sorry, I should have been more clear. Yes, this is also in the release build, I just took the screenshot from the beta.

You may have another term for this but I used control codes because that's what I'm used to. It's just what is when in search results for fields and some special characters that aren't easily shown as plain text. If I search for text that is preceded by a break then the break control code appears in the results, just like it would for a special character like non-breaking space <NBSP>.

All of the breaks were spelled out except for paragraph break which is <PBREAK>. This is so incredibly minor, I just thought it wasn't consistent.

Here's a 2.1.1 test document that shows this, just search for Heading 1. Probably more important than paragraph break which at least shows something is that Zero Width Non Joiner is the only item in the Insert menu that doesn't show anything in the search results. It would be great if that could show <ZWNJ> for consistency.

fields.afpub

image.png.dd14d2f5c9e1187d112e28f6413de098.png

Download a free manual for Publisher 2.3 from this forum - expanded 260-page PDF

Affinity 2.3.1 for macOS Sonoma 14.3, MacBook Pro 14" (M1 Pro)

 

Link to comment
Share on other sites

Here's another sample document, @stokerg, from 2.1.1, and a somewhat related set of possible bugs.

1. Using a regular expression search, the . regular expression term will not match line breaks or page breaks unless the regular expression option ". matches paragraph break" is turned on. As line and page breaks are not paragraph breaks, they should not be affected by that option.

With the option turned on:

image.png.4942ef9869fdcfc5676faa92d740fa00.png

With it turned off:

image.png.ad18c001a901023c1e2304b478801f85.png

2. When using Text > Insert > Breaks > Column Break, if there is only a single column in the text frame, the insertion point is put outside the frame, instead of in the next frame. Please see page 1, and where the second "b" ended up.  Sorry; user error there, as explained below by @Hangman.

breaks.afpub

Edited by walt.farrell
User error on #2.

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

Link to comment
Share on other sites

1 hour ago, walt.farrell said:

iI there is only a single column in the text frame, the insertion point is put outside the frame, instead of in the next frame. Please see page 1, and where the second "b" ended up.

Is that not to be expected when the frame on page 1 isn't linked to the frame on page 2?

Affinity Designer 2.3.1.2217 | Affinity Photo 2.3.1.2217 | Affinity Publisher 2.3.1.2217
Affinity Designer Beta 2.4.0.2256 | Affinity Photo Beta 2.4.0.2256 | Affinity Publisher Beta 2.4.0.2256

Affinity Designer 1.7.3 | Affinity Photo 1.7.3 | Affinity Publisher 1.10.8
MacBook Pro 16GB, macOS Monterey 12.6.8

Link to comment
Share on other sites

3 hours ago, walt.farrell said:

As line and page breaks are not paragraph breaks, they should not be affected by that option.

I don't know whether or not they should be affected, but in Publisher all breaks are actually paragraph breaks. This is different than MS Word were a break does not terminate the paragraph.

In Word, setting the text before the break to Heading 1 changes the text after the break to Heading 1. In Publisher, it has no effect because a break also ends the paragraph. I prefer the way Publisher does it.

Download a free manual for Publisher 2.3 from this forum - expanded 260-page PDF

Affinity 2.3.1 for macOS Sonoma 14.3, MacBook Pro 14" (M1 Pro)

 

Link to comment
Share on other sites

2 hours ago, Hangman said:

Is that not to be expected when the frame on page 1 isn't linked to the frame on page 2?

Thanks. I thought I had them linked, but clearly was wrong.

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

Link to comment
Share on other sites

  • Staff
18 hours ago, MikeTO said:

You may have another term for this but I used control codes because that's what I'm used to. It's just what is when in search results for fields and some special characters that aren't easily shown as plain text. If I search for text that is preceded by a break then the break control code appears in the results, just like it would for a special character like non-breaking space <NBSP>.

 

Thanks for that Mike, I've just always called them breaks, so wanted to make sure I wasn't missing something :) 

I've replicated the issue and i'm just getting this logged with the Developers.  I'll get one logged for the Zero Width Non Joiner as well :) 

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.