non-breaking variables

This forum is for all Flare related Tips and Tricks.
Have a tip or trick you use while working in Flare? Share it here.
Post Reply
livetoski
Sr. Propeller Head
Posts: 135
Joined: Thu Aug 30, 2007 7:10 am
Location: Ottawa

non-breaking variables

Post by livetoski »

Hi, I recall that in FrameMaker I didn't have to worry about variables breaking at the end of a line. Is there any way to prevent a variable from breaking at the end of a line and wrapping to the next? I have a variable that is the product name, N-central, that is breaking on the hyphen. Thanks. Linda
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: non-breaking variables

Post by LTinker68 »

The only way I can think of doing it off the top of my head is to create a span (or generic) class and set the white-space property (under the Block group) to "nowrap". When you insert the variable into the topic, apply that new span/generic class to the variable.

I don't know if that will actually work, so test it, but in theory it should work.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
livetoski
Sr. Propeller Head
Posts: 135
Joined: Thu Aug 30, 2007 7:10 am
Location: Ottawa

Re: non-breaking variables

Post by livetoski »

Thanks Lisa, I will try this and let you know.
livetoski
Sr. Propeller Head
Posts: 135
Joined: Thu Aug 30, 2007 7:10 am
Location: Ottawa

Re: non-breaking variables

Post by livetoski »

Nope, doesn't appear to work. Thanks for the help. I will log a bug for this. Linda
SDilg
Propeller Head
Posts: 47
Joined: Mon Feb 26, 2007 7:49 am

Re: non-breaking variables

Post by SDilg »

Good afternoon,

I am having the same difficulty described above by livetoski. My variable, which is also a product name, is breaking across lines and being hyphenated. Has anyone discovered a solution for this one?

Thank you,

SDilg
livetoski
Sr. Propeller Head
Posts: 135
Joined: Thu Aug 30, 2007 7:10 am
Location: Ottawa

Re: non-breaking variables

Post by livetoski »

No they haven't solved this, but we have a solution. It may have come from Flare, as we were very concerned about this. Put the following style into your style sheet and apply it where you don't want a break:

p.nohyphen
{
mc-hyphenate: never;
}

Work around, really, but there you go.
SDilg
Propeller Head
Posts: 47
Joined: Mon Feb 26, 2007 7:49 am

Re: non-breaking variables

Post by SDilg »

Fantastic, I will go with that! I really appreciate your help!

Thanks,

SDilg
livetoski
Sr. Propeller Head
Posts: 135
Joined: Thu Aug 30, 2007 7:10 am
Location: Ottawa

Re: non-breaking variables

Post by livetoski »

you are very welcome, I am sorry I didn't think to post it sooner. Linda
Post Reply