I have a word that must always appear as one, never split, the problem is that it is hyphenated. For example, the word A-FORCE (a product name) tends to split at the hypen at end of lines. I just cannot seem to get this to stick together so that the word doesn't regard the hyphen as a place to split. Looking at the user manual and online help showed some examples, but not when you have a hypen in the word itslef. This is for version 7.0.
Help would be appreciated.
thanks in advance
Robin
If you have text symbols set visible, a underscore will show up under the word.
You want a non-breaking hyphen. Unfortunately, it's not possible to find "non-breaking" or "non breaking" in FM help. However...
Use Help > Help Topics > Search to search for "hyphen" without the quotes. The topic you want is "changing hyphenation and line breaks." Scroll down to non-breaking hyphen information.
HTH
Regards,
Peter Gold
KnowHow ProServices
Thanks again,
Robin
However, there's a drawback to this. That is the copying also copies character formatting, and so by pasting also pastes the character formatting. So if A-FORCE appears in different formatted occurences then they all will become one and you have to apply default para formats. To avoid this you might want to create a variable for A-FORM. The variable definition for A-FORM would be <default font>A\+FORM. Now if you copy this you can do a search and replace as above but the A-FORM expression will take on the format of the para in which it is pasted and have a non-breaking hyphen.
Hope I got all this right and it works for you.
Cheers
Ian
-Bill
The dialog box code for a nonbreaking hyphen is "\+" (not including quotes), so the following...
Find: A-FORCE
Replace With: A\+FORCE
...will, I believe, give Robin the desired result. This is better/easier than searching and replacing by pasting because when you paste you're pasting not only the words, but the formatting, as Ian points out.
BTW, the dialog box codes for special symbols work in the "Find" box as well as replace, and in autonumber formats as well.
[This is valid for FM 5-7 on Windows; I make no warranty for other versions/OSs.]
(Frame wouldn't hyphenate "FORCE" anyway, would it?)
Hyphenation in FM works like this:
* Set hyphenation ON/OFF for a paragraph format, or by length of word, in Paragraph Designer > Advanced Properties.
* Set hyphenation for specific words in the spelling checker. Tee current hyphenation, type the word into the spelling checker text box, and click Show Hyphenation. To change hyphenation points, move, add, or delete the hyphens, click Learn. To prevent hyphenation, remove all hyphens, add hyphen at the beginning of the word, click Learn. The hyphenation in the dictionary does not override No Hyphenation setting for the paragraph. "No means No."
AFAIK, all hex codes (backslash character codes in dialog boxes) are uniform across FM platforms.
Related:
You can add all "unknown" words to a dictionary from the spell checker, so you can create a file with all special words for your company, customer, site, etc., to a file and have them all added at one swell foop (sic). Read more about the dictionaries in Help. and the online manual "Customizing Frame Products."
-Bill
"There are parts of this country where most people pronounce the word 'pen' in two syllables."
Thanks, everyone for participating in knowledge sharing. However much I try to contribute, I find I usually learn more!
Thoughts?
Sean
"To prevent the last word in a paragraph from hyphenating, set the maximum number of adjacent hyphens to 0 or choose None for the language for that word in the Character Designer. (However, setting Language to None prevents the word from being spell-checked.)"
Cheers,
Sean
I think that in ID, there are some settings that can be designed into paragraph styles that could specify this typograhical refinement, among others. This is not a fact, just a thin thread of memory.
HTH
Peter
FM wasn't ever a typograher's program. Here's where ID's features can help. If you have ID, even a time-out sample, look for the flush space special character that you can insert on the last line of a justified paragraph, to avoid spacing a few words out across the line.
Also, ID has paragraph-based composition, a choice you can make to avoid single-line composition; this gives better distribution of word spaces in a paragraph, and may reduce last-word hyphenation.
You might also look into ID's nested character styles. I'm not sure how much you can do with these - "nested" in ID means character styles applied within paragraphs. Perhaps there's a way to apply such a nexted tag to the last word in a paragraph.
You may want to look into a macro-recording tool for your platform, if you're not using FM on UNIX (which has a built-in keystroke recording tool). You can create a macro that finds the last word in every paragraph and applies the keystrokes for do not hyphenate (Escape n s - I think if it as "no split.), then moves on to the next end of paragraph.