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

How do I search for a period?


Recommended Posts

My document contains many instances of periods without spaces after them. I'm trying to search for these to correct them, but I am having no luck. Publisher does not seem to be able to find a period. When I type a . into the search box, Publisher returns every single character in the entire document. How do I get it to find a period?

Addendum to this question: I believe I figured out how to search for a period. I needed to select "normal" in the settings menu.

Now I have a new problem. Many of my periods have abnormally short spaces after them, much shorter than the spaces between words in the same lines. How do I fix this?

Link to comment
Share on other sites

14 hours ago, MarioM said:

Many of my periods have abnormally short spaces after them, much shorter than the spaces between words in the same lines. How do I fix this?

Screenshot? (with menu Text/Show Special Characters)
Replace?
Example file?

Edited by Pšenda

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Link to comment
Share on other sites

6 hours ago, MarioM said:

Now I have a new problem. Many of my periods have abnormally short spaces after them, much shorter than the spaces between words in the same lines. How do I fix this?

Depends on how those short spaces were created

e.g. Are they smaller as they use a different font size?

A sample piece of some affected text showing the problem and uploaded to the forum may help eliminate a lot of guesses

To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.

Link to comment
Share on other sites

Yes, it would help to have a short sample .afpub document that we can examine.

By the way, rather than doing a "normal" search, you could stay with a "regular expression" search but use \. as the search string.

-- 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

34 minutes ago, walt.farrell said:

stay with a "regular expression" search but use \. as the search string.

Couldn't you add the mentioned but unknown spaces to the GREP search?

Unfortunately I didn't find the correct syntax for Affinity ( \S doesn't work). Here I simply copied the various spaces behind \.   , they don't show up in the Find field but seem to be found:

795052934_FRgrepspaces.jpg.af75aaa6e91db2f5bda90e030bb0b6b9.jpg

I tried to replace them with \.\s but it resulted in  .s  not in  (period + space) as I expected with my slim skills. 😬

macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1

Link to comment
Share on other sites

3 minutes ago, thomaso said:

Couldn't you add the mentioned but unknown spaces to the GREP search?

Until we have a sample document we don't know what is there. Maybe there are only justification artifacts, for example, and not spaces of different sizes. So I chose not to suggest something like that.

-- 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

30 minutes ago, MarioM said:

Here is a sample page of my document showing instances where the space after a period is much smaller than the spaces between words in the same line.

There is nothing to replace or retype but simply to restyle: The various spots have the kerning reduced before & after the space following a period. Since its before captials A and W I guess it initially was done because of a specific font. Thus just reformatting does fix it, for instance you can create a style + apply it to all frames / all text.

510199053_periodspacekerning.jpg.53683853423db45a4d66ee799264ac88.jpg

Just a note: this .afpup is set to 16 bit, not sure if in purpose.

9 hours ago, walt.farrell said:

So I chose not to suggest something like that.

You were right! ... which on the other hand is a pity because I hoped you would post the syntax for non-whitespaces and how to replace them. I just became curious when I couldn't find it myself.

macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1

Link to comment
Share on other sites

26 minutes ago, MarioM said:

Here is a sample page of my document showing instances where the space after a period is much smaller than the spaces between words in the same line. Note "world. A" in the first line, and "end. Westerns" in the 4th line. 

Thanks for the document.

Those are normal spaces. You can see that in either of two simple ways:

  1. Enable Text > Show Special Characters from the Menu.
    or
  2. Put the cursor immediately after the space, and type Alt+U (or use Text > Toggle Unicode)

Possibly you're being confused by the kerning and the wide/sloped letter shapes. (Edit: Oops; forgot to check the Kerning settings. Thanks, @thomaso.)

-- 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

2 minutes ago, thomaso said:

which on the other hand is a pity because I hoped you would post the syntax for non-whitespaces and how to replace them.

I was going to check on that, but forgot. Thanks for the nudge :)

-- 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

Those odd kerning settings are in the font.
For example this is what is causing the issues with the space+A spacing:
<pair l="space" r="A" v="-205"/>

space+T = -256
space+W = -256
etc.

The () around the kerning number shows it is a default from the font.
If you manually change it, the parenthesis go away.

Change the font and those spacing/kerning issues go away.

Link to comment
Share on other sites

2 hours ago, thomaso said:

which on the other hand is a pity because I hoped you would post the syntax for non-whitespaces and how to replace them. I just became curious when I couldn't find it myself.

In my testing, \s finds whitespace (any of the space characters except zero-width for example), and \S finds non-whitespace, just as I would expect.

-- 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

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.