Gregosab Posted June 19, 2024 Posted June 19, 2024 (edited) I need to insert a dash which is always linked with the word in front of it and I need to do it 1000+ times. Any ideas? Edited June 19, 2024 by Gregosab Quote
Alfred Posted June 19, 2024 Posted June 19, 2024 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. Komatös 1 Quote Alfred 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)
MikeW Posted June 20, 2024 Posted June 20, 2024 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... Alfred 1 Quote
Komatös Posted June 20, 2024 Posted June 20, 2024 @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. Quote MAC mini M4 | MacOS Sequoia 15.5 | 16 GB RAM | 256 GB SSD AMD Ryzen 7 5700X | Sapphire Nitro+ RX 9060 XT 16 GB | 32 GB DDR4 3200MHz | Windows 11 Pro 24H2 (26100.4351) Windows 11 Pro on VMWare Virtual Machine (on Mac) Affinity Suite V 2.6.3 & Beta 2.6 (latest) Interested in a free (selfhosted) PDF Solution? Have a look at Stirling PDF No backup, no pity.
Alfred Posted June 20, 2024 Posted June 20, 2024 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. Komatös 1 Quote Alfred 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)
walt.farrell Posted June 20, 2024 Posted June 20, 2024 8 hours ago, MikeW said: The programmers can make non-breaking dashes You don't show us anything called a non-breaking dash, though. 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.5, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.5
Gregosab Posted June 20, 2024 Author Posted June 20, 2024 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. Komatös and Alfred 2 Quote
MikeW Posted June 20, 2024 Posted June 20, 2024 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. Quote
walt.farrell Posted June 20, 2024 Posted June 20, 2024 31 minutes ago, MikeW said: If you look at the flyout label everything listed there are non-breaking. Thanks. Missed that label. 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.5, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.5
nickbatz Posted June 20, 2024 Posted June 20, 2024 — m dash (Shift-Option-hyphen) – n dash (Option-hyphen) – dash/hypen (hypen alone) Those are Mac keys, probably the same on Windows. Quote
Alfred Posted June 20, 2024 Posted June 20, 2024 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. Quote Alfred 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)
nickbatz Posted June 20, 2024 Posted June 20, 2024 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? Quote
Alfred Posted June 20, 2024 Posted June 20, 2024 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’! Quote Alfred 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)
thomaso Posted June 20, 2024 Posted June 20, 2024 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. lacerto 1 Quote • MacBookPro Retina 15" | macOS 10.14.6 | Eizo 27" | Affinity V1 • iPad 10.Gen. | iOS 18.5. | Affinity V2.6
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.