Jump to content

How to add a non-breaking dash?


Recommended Posts

Welcome to the Serif Affinity Forums, @Gregosab. :)

You can insert a non-breaking hyphen via the ‘Text > Insert’ submenu. As far as I’m aware, there’s no such thing as a non-breaking dash.

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.5.1 (iPad 7th gen)

Link to comment
Share on other sites

2 hours ago, Alfred said:

Welcome to the Serif Affinity Forums, @Gregosab. :)

You can insert a non-breaking hyphen via the ‘Text > Insert’ submenu. As far as I’m aware, there’s no such thing as a non-breaking dash.

The programmers can make non-breaking dashes, etc., for APub. Quark has always had these. Well, almost forever...

Capture_001173.png.db757b9bab800d477951d65cdb105964.png

Link to comment
Share on other sites

@MikeW

The names may be different in Publisher and InDesign Quark. But both designate the protected hyphen.
In Publisher, it is the non-breaking hyphen. In Quark it is just called hyphen.

AMD Ryzen 7 5700X | INTEL Arc A770 LE 16 GB  | 32 GB DDR4 3200MHz | Windows 11 Pro 24H2 (26100.2161)

Affinity Suite V 2.5.5 & Beta 2.6 (latest)
Interested in a free (selfhosted) PDF Solution? Have a look at Stirling PDF

I am not old, I have matured like a good scotch! 

Link to comment
Share on other sites

2 minutes ago, Komatös said:

The names may be different in Publisher and InDesign. But both designate the protected hyphen.

A hyphen (or hyphen-minus) is typically shorter than a dash.

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.5.1 (iPad 7th gen)

Link to comment
Share on other sites

8 hours ago, MikeW said:

The programmers can make non-breaking dashes

You don't show us anything called a non-breaking dash, though. 

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

Link to comment
Share on other sites

I think I found the solution. I just inserted a dash, created a new character style and checked the non-break box. After that, I went to find, pasted the regular dash and used the gear icon to applied the new style to all dashes, and that was it. Now all my 1000+ dashes are non breaking dashes. 

Link to comment
Share on other sites

2 hours ago, walt.farrell said:

You don't show us anything called a non-breaking dash, though. 

The em, en dashes are at the bottom of the flyout. Along with the hyphen. 

If you look at the flyout label everything listed there are non-breaking.

Link to comment
Share on other sites

31 minutes ago, MikeW said:

If you look at the flyout label everything listed there are non-breaking.

Thanks. Missed that label.

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

Link to comment
Share on other sites

2 hours ago, nickbatz said:

— m dash (Shift-Option-hyphen)

– n dash (Option-hyphen)

These are ordinary em and en dashes, aren’t they, rather than non-breaking ones?

2 hours ago, nickbatz said:

– dash/hypen (hypen alone)

A dash isn’t the same as a hyphen.

2 hours ago, nickbatz said:

Those are Mac keys, probably the same on Windows.

Option on Mac is Alt on Windows, but I believe that the Option () key is labelled ‘alt’ on some Mac keyboards.

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.5.1 (iPad 7th gen)

Link to comment
Share on other sites

1 minute ago, Alfred said:

These are ordinary em and en dashes, aren’t they, rather than non-breaking ones?

A dash isn’t the same as a hyphen.

Option on Mac is Alt on Windows, but I believe that the Option () key is labelled ‘alt’ on some Mac keyboards.

I'm not saying they're non-breaking, I'm saying these are the differences between the three characters on a computer.

A dash isn't a hyphen isn't a minus sign isn't all the same thing? In my full life on my keyboard they are. :)

And yes, Option is Alt on Windows.

Did I make any other egregious errors with some there there and no nothingburgers in sight?

 

Link to comment
Share on other sites

11 minutes ago, nickbatz said:

I'm not saying they're non-breaking, I'm saying these are the differences between the three characters on a computer.

Thanks. I mentioned the ‘non-breaking’ distinction because that’s what I understood this thread to be about.

13 minutes ago, nickbatz said:

A dash isn't a hyphen isn't a minus sign isn't all the same thing? In my full life on my keyboard they are. :)

A dash is usually thinner than a hyphen-minus, and an em is longer than a hyphen or an en dash.

14 minutes ago, nickbatz said:

Did I make any other egregious errors with some there there and no nothingburgers in sight?

I wouldn’t class anything you’ve written here as ‘egregious errors’!

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.5.1 (iPad 7th gen)

Link to comment
Share on other sites

10 hours ago, Gregosab said:

I think I found the solution. I just inserted a dash, created a new character style and checked the non-break box. After that, I went to find, pasted the regular dash and used the gear icon to applied the new style to all dashes, and that was it. Now all my 1000+ dashes are non breaking dashes. 

A solution without a separate character style: A discretionary "soft hyphen" placed before the word appears to prevent its hyphenation.
With an according formula you can add it via F&R Regex before all words which include a dash.

softhyphennonbreakingdash.thumb.jpg.bf3febc239a7c112e95e478e29e66dc8.jpg

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

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.