Skip to main content
Inspiring
March 19, 2020
Question

Insert Discretionary Hyphen selecting the whole word?

  • March 19, 2020
  • 1 reply
  • 507 views

This hyphen usually is inserted before the word but this operation requires too much care and time.

 

It is possible to just select the whole word (double click or inserting the cursor) and with a command or a script accomplish the operation?

 

Thanks.

This topic has been closed for replies.

1 reply

David Popham
Participating Frequently
March 19, 2020

A script could do this, but you can also accomplish the same thing without much more effort by inserting the cursor at the beginning of the word and using a keyboard shortcut, which by default is Shift + Cmd/Ctrl + -. That requires removing your hand from the mouse, but you can always edit the keyboard shortcut to something more convenient, such as Cmd/Ctrl + 3.

 

Go to Edit > Keyboard Shortcuts... . If you don't already have a custom set of keyboard shortcuts, create one, then in the new set go to Product Area: Type Menu and scroll until you find Insert Special Character: Hyphens and Dashes: Discretionary Hyphen. Click on the line and you'll see the current short cut. Type the new key combination in the New Shortcut field the same way you would type the shortcut. If it's already in use, you'll see text indicating "Currently Assigned to:" Clicking the Assign button will create the new shortcut. If it was already in use, it will be overwritten to the new shortcut.

 

Inspiring
March 21, 2020

David, there is a middle solution like this:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

After double-clicking the word to be non-hyphenated cursor goes to the beginning and the keystroke  Shift + Cmd is applied.

F16 is the external trigger and F9 is the keyboard/shortcut assigned in ID.

But it is using a third provider (Keyboard Maestro)

 

Think ID could have more solutions when pure design tasks are involved, as bookmaking.

What about writing a script to make the whole thing in ID?

 

thanks.