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

EDD update, hidden conditional text and paragraph orphan lines: wrong behaviour ?

Explorer ,
Nov 26, 2022 Nov 26, 2022

Copy link to clipboard

Copied

Hello,

 

Note: somehow switching computer solved the forum's "wrong html" issue so I updated this post to have the images directly here....

 

I have encountered an odd behaviour in the following situation:

  • Document is structured
  • Page layout is 2 columns (scientific type)
  • Some conditional text that hidden within text paragraphs
  • "Body" element paragraph design states that allowed orphan lines number is 6

          Eric5F88_0-1669530941499.png

  • EDD for graphic object option allows for 1 clumn wide captions and 2 column wide caption, depending on attribute value as follows:

          Eric5F88_1-1669530983961.png

 

When switching from one conditional-based document to the other I apply the following script, in that particular order:

  • Show/Hide conditional text
  • Update template with the following settings

          Eric5F88_2-1669531015745.png

  • Import variables from an external .fm file with following settings

          Eric5F88_3-1669531041651.png

  • Update book
  • Update EDD with following settings

          Eric5F88_0-1669531195814.png

 

Problem is, in some specific situation, it seems that the orphan lines setting is messed up when some text is hidden by conditional show/hide settings. Here is an example of this happening (had to blur text for confidentiality reasons)

Eric5F88_1-1669531227305.png

 

The text surrounded the red rectangle, section 7.7.5, is a paragraph that is supposed to be placed after the paragraph on the end of the right column (after 7.7.4), not to be split across both columns like that, which doesn't make sense in terms of text flow anyways.

 

Also the two orphan lines after the 7.7.5 title shouldn't be allowed by the paragraph design.

 

IMHO what happens is that the EDD has somehow messed up the paragraph design 6 orphan lines setting. In section 7.7.5 there is a significant part of the text that is hidden by conditional settings, so I thought this may be related.

 

A solution that I was able to find was to add a step right after the EDD import, that is to re-import the template but with only paragraph formats like this:

Eric5F88_2-1669531270746.png

 

While this solves the orphan lines problem, it messes the figure caption, that is set to be "In Column" by the EDD attribute-dependent condition (see EDD extract above). Now the paragraph format import has overridden the EDD condition and the caption is set accross all columns, leading to the following result, surrounded by red rectangle:

Eric5F88_3-1669531303892.png

 

The 7.7.5 part has been pushed to the next page as expected, which is good, but we lost the caption format.

 

Is it a bug of Framemaker, that doesn't consider correctly the paragraph formating when updating the EDD, or is there something that I could do to solve this issue ?

 

Thanks in advance.

 

Best regards

 

Eric

Views

594

Translate

Translate

Report

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
Explorer ,
Nov 26, 2022 Nov 26, 2022

Copy link to clipboard

Copied

(removed pdf because I was finally able to add images in the original post)

 

Votes

Translate

Translate

Report

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 ,
Nov 26, 2022 Nov 26, 2022

Copy link to clipboard

Copied

It sounds like you have a hybrid environment that relies on unstructured variables and formatting rules. Have you tried defining the variables and paragraph formatting in the EDD and or structured application instead?

-Matt

-Matt Sullivan
FrameMaker Course Creator, Author, Trainer, Consultant

Votes

Translate

Translate

Report

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
Explorer ,
Nov 26, 2022 Nov 26, 2022

Copy link to clipboard

Copied

Hello Matt,

 

Thanks a lot for your answer !

 

This is our Framemaker-related file system:

  • Content is in structured .fm documents. Those contain the content for all document variant, with a conditional tag for each variant to show/hide text.
  • Variables for each variant of the document in a dedicated .fm document
  • Formating in a dedicated "template" .fm file. This file is common for all company document.
  • EDD in a dedicated .fm structured file. This file is common for all company document.

Link between formats and EDD is made by EDD linking to named character/paragraph formats.

 

This is a way we found to be working for us but we are still open for better ways to work.

  • Do you think that it would be better to store every paragraph/character format settings in the EDD file ? So every single formatting parameter would be specified in the EDD, or is there an easier (and less exhaustive...) way to do it ?
  • How should we handle the variables ? How do you store them, and their definitions that differ per variant, in the EDD ?

 

Thanks in advance.

 

Best regards

 

Eric

Votes

Translate

Translate

Report

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
Explorer ,
Nov 28, 2022 Nov 28, 2022

Copy link to clipboard

Copied

Hello,

 

I tried something to try to force the orphan lines from the EDD by adding the following "all context rules" to the "para" element, but I still get the same result

Eric5F88_0-1669624916152.png

So I am still looking for a solution 😉

 

Any help would be apreciated !

 

Thanks in advance

 

Best regards

 

Eric

 

Votes

Translate

Translate

Report

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 ,
Nov 28, 2022 Nov 28, 2022

Copy link to clipboard

Copied

It looks like you have multiple things you need to solve in this post, including a context rule and a widow orphan issue. I suggest you test these things in a simplified test environment to isolate what is happening. For starters, try writing your context rule to change color so you can confirm that it is being applied correctly. Also, I recommend you break up your items into separate posts so we can address them directly.

-Matt Sullivan
FrameMaker Course Creator, Author, Trainer, Consultant

Votes

Translate

Translate

Report

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
Explorer ,
Nov 28, 2022 Nov 28, 2022

Copy link to clipboard

Copied

Hello Matt,

I'll try to have a "minimal reproductible example" working, for now I couldn't trigger the problem on a separate file, with simplified EDD...

The dynamic orphan lines change did work though, as for the test I forced it to another value than the one in the template and saw it change when importing the EDD.

Thanks

Eric

Votes

Translate

Translate

Report

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 ,
Nov 28, 2022 Nov 28, 2022

Copy link to clipboard

Copied

You should only have one All Contexts rule. I can't remember which one wins, the first or last, but they are mutually exclusive.

Votes

Translate

Translate

Report

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 ,
Nov 28, 2022 Nov 28, 2022

Copy link to clipboard

Copied

To see which one is being triggered, select the element in the Structure View and choose Structure > Show Element Context. Follow the pseudo arrows (->) to see which EDD rule is being applied.

Votes

Translate

Translate

Report

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 ,
Nov 28, 2022 Nov 28, 2022

Copy link to clipboard

Copied

There shouldn't be an issue with multiple All Context Rules, other than housekeeping. 

Separating them is often helpful in identifying the purpose of each part.

I'm near certain they are applied in order.

-Matt Sullivan
FrameMaker Course Creator, Author, Trainer, Consultant

Votes

Translate

Translate

Report

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 ,
Nov 28, 2022 Nov 28, 2022

Copy link to clipboard

Copied

I think you are right, but I will try to check. Thanks for the correction Matt.

Votes

Translate

Translate

Report

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
Explorer ,
Nov 29, 2022 Nov 29, 2022

Copy link to clipboard

Copied

Hello Matt, FrameExpert,


I tried to have 2 pretty visible AllContextRules (one that changes orphan lines to 11 and on that sets the text background to green) and i see them both being applied. BTW Framemaker shows an error when I try putting more than one rule within an AllContextRules.


For now, I couldn't reproduce the bug in a simplified version, but I noticed that if I select the problematic text frame (CTRL click on the frame edge) and open the "Object Properties..." from right-click/contextual menu and just hit "apply" without changing anything, problem is solved: section 7.7.5 goes to the next page, which is what is expected. This does look like there is a bug where FM is not updating something automatically, isn't it?


Is there a way to force the "Object properties apply" of all text frames for all pages from an ExtendScript script ?


Thanks in advance.


Best regards


Eric

Votes

Translate

Translate

Report

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
Explorer ,
Nov 29, 2022 Nov 29, 2022

Copy link to clipboard

Copied

LATEST

I think I found a hack to correct the problem, it is done by ading the following steps in the script after EDD update:

  • Import template again but with only page layouts checked

          Eric5F88_0-1669717818194.png

  • Re-import variables (I had to set some titles in the master pages in tables to allow vertical alignment, but for some reason when they contain variables on has to re-import the variables for them to update...)

Didn't see any residual issue, I hope I won't find one later 😉

Votes

Translate

Translate

Report

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