Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Is there a way to associate a keyboard shortcut for the "Hyphenate" option?

Enthusiast ,
Jul 19, 2023 Jul 19, 2023

I confess it a drag to be slave to reaching for the checkbox with the mouse everytime I need to turn hyphenation off in a paragraph...

TOPICS
How to , Performance
332
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jul 19, 2023 Jul 19, 2023

Would it be an option for you to turn off hyphenation in your paragraph format?

 

Otherwise, in my German InDesign there is the default shortcut [Shift]+[Ctrl]+[Alt]+[H]

pixxxelschubser_0-1689793248759.png

 

 

Translate
Community Expert ,
Jul 19, 2023 Jul 19, 2023

I think you've found the only control in the entire layout that has no key assignment.

 

There is an assignment for the hyphenation menu; open that and a shift-tab takes you to the checkbox. Might be able to script that, or use a system or keyboard macro.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 19, 2023 Jul 19, 2023

Would it be an option for you to turn off hyphenation in your paragraph format?

 

Otherwise, in my German InDesign there is the default shortcut [Shift]+[Ctrl]+[Alt]+[H]

pixxxelschubser_0-1689793248759.png

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 19, 2023 Jul 19, 2023

Yes, of COURSE we'd look for it under "Auto-hyphenation"! Programmers... sigh.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jul 21, 2023 Jul 21, 2023

Es arbeiten!!!!!! Vielen danke dir!!!!! XXX

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 21, 2023 Jul 21, 2023
LATEST

You are welcome. And thank you for the nice feedback.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 19, 2023 Jul 19, 2023

Hi @Roger Breton , If @pixxxelschubser ’s toggle option doesn’t work for you (toggling Hyphenation off leaves it turned of for new text creation), it can be scripted with the script assigned a key command. Something like this would turn off Hyphenation for the selected range of text :

 

 

var s = app.activeDocument.selection
if (app.activeDocument.selection.length == 0) {
	alert("No Text Selected")
} else{
    if (s[0].hasOwnProperty("paragraphs")) {
        s[0].paragraphs.everyItem().hyphenation = false
    }    
}

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 19, 2023 Jul 19, 2023

The key command only toggles hyphenation for the current paragraph, as an override. Moving to another paragraph is unaffected (the new paragraph retains whatever setting it had.)

 

That seems to be what the OP wants, but the script alternative is nice to have.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 19, 2023 Jul 19, 2023

Moving to another paragraph is unaffected (the new paragraph retains whatever setting it had.)

 

I meant if you create a new text frame and enter some text. I get this:

 

Screen Shot 41.png

 

 

Toggle Hyphenation Off with the key command:

Screen Shot 42.png

 

Make a new text frame and enter some text:

Screen Shot 43.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 19, 2023 Jul 19, 2023

Hi Rob,

I still prefer to use paragraph formats.
😉

 

By the way, nice script snippet.

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 19, 2023 Jul 19, 2023

Oh, I wouldn't use any of these methods to control hyphenation; that's definitely one thing that should be controlled by a style. But the OP asked, we stumbled around into an answer, that's a victory. 🙂

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 19, 2023 Jul 19, 2023
quote

Oh, I wouldn't use any of these methods to control hyphenation; that's definitely one thing that should be controlled by a style …


By @James Gifford—NitroPress

 

It's nice that we have the same opinion.
😉

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines