Jump to content

Recommended Posts

Posted

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.

Posted

Just one comment: you have used both the term non-breaking and the term soft hyphen in your request. They are different items. 

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

Posted

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

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

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.