CP16 Posted January 9, 2023 Posted January 9, 2023 In Publisher, allow the use of the non-breaking hyphen shortcut in autocorrect definitions, or add a checkbox to replace all soft hyphens with non-breaking hyphens. I can use other special characters in autocorrect definitions, like em- and en-dashes, but it won't work with non-breaking hyphens. Quote
walt.farrell Posted January 9, 2023 Posted January 9, 2023 Just one comment: you have used both the term non-breaking and the term soft hyphen in your request. They are different items. 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
MikeTO Posted January 9, 2023 Posted January 9, 2023 I believe you're asking for the ability to auto correct a regular hyphen (not a soft hyphen) to a non-breaking hyphen. You can do this. Create a text object and choose Text > Insert > Dashes & Hyphens > Non-Breaking Hyphen. Select just that character and copy it to the clipboard. Go to Preferences > Shortcuts and choose the language. (Note that if you're not using UK or US English, you just manually select the version of English or you'll be editing the AutoCorrect list for the wrong language. This is a minor bug that's been around forever.) Type a regular hyphen into the Replace field and paste the non-breaking hyphen into the With field. Click the Replace button. That's it, I've tested it and it works fine. I also tested it with replacing a regular hyphen with a soft hyphen. Cheers Quote Download a free PDF manual for Affinity Publisher 2.6 Download a quick reference chart for Affinity's Special Characters Affinity 2.6 for macOS Sequoia 15.3, MacBook Pro (M4 Pro) and iPad Air (M2)
CP16 Posted January 12, 2023 Author Posted January 12, 2023 On 1/9/2023 at 11:00 AM, walt.farrell said: Just one comment: you have used both the term non-breaking and the term soft hyphen in your request. They are different items. I meant that I want to replace a hyphen that I add with a non-breaking hyphen every time. I have auto hyphenation turned off. On 1/9/2023 at 4:09 PM, MikeTO said: I believe you're asking for the ability to auto correct a regular hyphen (not a soft hyphen) to a non-breaking hyphen. You can do this. Create a text object and choose Text > Insert > Dashes & Hyphens > Non-Breaking Hyphen. Select just that character and copy it to the clipboard. Go to Preferences > Shortcuts and choose the language. (Note that if you're not using UK or US English, you just manually select the version of English or you'll be editing the AutoCorrect list for the wrong language. This is a minor bug that's been around forever.) Type a regular hyphen into the Replace field and paste the non-breaking hyphen into the With field. Click the Replace button. That's it, I've tested it and it works fine. I also tested it with replacing a regular hyphen with a soft hyphen. Cheers Thanks -- that worked. I did have English selected already and was updating the English autocorrect table. But in that table, when I tried to paste a non-breaking hyphen from an existing document within existing text that had a paragraph style applied, it didn't work. It either would paste nothing (blank), or would paste with all the formatting (in this case, it was a numbered list). I tested it thoroughly before posting here, but of course it's not doing it now... I created a blank document and added artistic text, left it as [No Style], and inserted a non-breaking hyphen. Copied that, and it worked. MikeTO 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.