orphans/widows how madcap say they work

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
iand
Sr. Propeller Head
Posts: 131
Joined: Thu Dec 18, 2008 5:46 am
Location: London, England

orphans/widows how madcap say they work

Post by iand »

I thought the following exchange with MadCap support might help people understand how orphans/widows work. It wasn't quite how I expected...

Widow / orphan controls govern content within a single tag (e.g. a <p> tag with three lines of text in it would be prohibited from leaving one or two lines on the other side of a page break if the widow and orphan controls for the <p> element were each set to a value of "2"). Widow / orphan controls do not come into play at all in a situation where the content in your topic is organized into many different tags, each with only one or two lines of text, as is the case here.

Personally I feel this is a bug and that orphan/widow settings should always apply. What do other people think?

Cheers

Ian
Nita Beck
Senior Propellus Maximus
Posts: 3672
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: orphans/widows how madcap say they work

Post by Nita Beck »

iand wrote:(Quoting MadCap:) Widow / orphan controls do not come into play at all in a situation where the content in your topic is organized into many different tags, each with only one or two lines of text, as is the case here.
Ian, without being able to see how you've got your content organized, it's hard to offer an opinion. Perhaps if you'd show us an example of what you were trying to accomplish we could then answer your question. What exactly doesn't satisfy you in your output with regard to widows and orphans?

Nita
Nita
Image
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: orphans/widows how madcap say they work

Post by LTinker68 »

iand wrote:Personally I feel this is a bug and that orphan/widow settings should always apply. What do other people think?
If you have three paragraph tags that have two sentences each and your paragraph tags have a bottom margin of 6pt, for example, then yes, I would expect this. It's the same way in Word -- each paragraph is evaluated separately. I'm assuming FrameMaker is the same way.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
SteveS
Senior Propellus Maximus
Posts: 2090
Joined: Tue Mar 07, 2006 5:06 pm
Location: Adelaide, far side of the world ( 34°56'0.78\"S 138°46'44.28\"E).
Contact:

Re: orphans/widows how madcap say they work

Post by SteveS »

iand wrote:I thought the following exchange with MadCap support might help people understand how orphans/widows work. It wasn't quite how I expected...

Widow / orphan controls govern content within a single tag (e.g. a <p> tag with three lines of text in it would be prohibited from leaving one or two lines on the other side of a page break if the widow and orphan controls for the <p> element were each set to a value of "2"). Widow / orphan controls do not come into play at all in a situation where the content in your topic is organized into many different tags, each with only one or two lines of text, as is the case here.

Personally I feel this is a bug and that orphan/widow settings should always apply. What do other people think?

Cheers

Ian
This might work to your advantage...

Create a div tag (keep_together or something) and apply the page_break properties to the tag. That way you can apply your keep together to as much text as you like
Image
Steve
Life's too short for bad coffee, bad chocolate, and bad red wine.
KevinDAmery
Propellus Maximus
Posts: 1985
Joined: Tue Jan 23, 2007 8:18 am
Location: Darn, I knew I was around here somewhere...

Re: orphans/widows how madcap say they work

Post by KevinDAmery »

iand wrote:I thought the following exchange with MadCap support might help people understand how orphans/widows work. It wasn't quite how I expected...

Widow / orphan controls govern content within a single tag (e.g. a <p> tag with three lines of text in it would be prohibited from leaving one or two lines on the other side of a page break if the widow and orphan controls for the <p> element were each set to a value of "2"). Widow / orphan controls do not come into play at all in a situation where the content in your topic is organized into many different tags, each with only one or two lines of text, as is the case here.

Personally I feel this is a bug and that orphan/widow settings should always apply. What do other people think?

Cheers

Ian
Uhhhmmmm, how else are you expecting it to work?

* If you have a 3 line paragraph, it would have to put the entire paragraph on one side of the break or the other, otherwise it is leaving a one line orphan on one side or the other. Any way that you split a 3 line paragraph you're going to end up with a one line orphan. End result, it breaks at a paragraph break rather than inside the paragraph.
* If you have a 2 line paragraph, it also would have to put the entire paragraph on one side or the other, since splitting it would result in a pair of one-line orphans. End result, it breaks at a paragraph break rather than inside the paragraph.
* If you have a 1 line paragraph, well, it can't split it at all, so it has to break at a paragraph break.

I'm not sure what alternatives there would be that make sense.
Until next time....
Image
Kevin Amery
Certified MAD for Flare
iand
Sr. Propeller Head
Posts: 131
Joined: Thu Dec 18, 2008 5:46 am
Location: London, England

Re: orphans/widows how madcap say they work

Post by iand »

Hi everyone, thanks for the replies. After further consideration, including reading the feedback here, I now see that the way orphans/widows work is correct; I think I had the wrong expectations. Hopefully this will help other people who have the same misconception.
Post Reply