Question
Last Paragraph rule broken?
FrameMaker 7.2p158, Windows XP SP2, 2GB RAM
Hello Forum,
I'm having a bad hair day with last paragraph rules. If you have an element which allows text containers and marker elements, last paragraph rules work in a surprising way if the last element is not a paragraph.
Consider the following EDD:
Element (Container): HLE
General rule: Chunk+
Valid as the highest-level element.
Element (Container): Chunk
General rule: (Para | Marker)+
Format rules for last paragraph in element
In all contexts.
Default font properties
Color: Red
Element (Container): Para
General rule: <TEXT>
Element (Marker): Marker
Initial marker type
In all contexts.
Use marker type: MyMarker
... and a simple test document using the above element definitions (using [ and ] instead of < and >):
[HLE]
[Chunk]
[Para]asdf[/Para]
[Para]asdf[/Para]
[Marker /]
[/Chunk]
[/HLE]
I would expect the second [Para] (as the last paragraph in the parent element) to format as red text. However, it does not, and formats as an ordinary para. I can find nothing in the SADG to back this behaviour up, and I am a bit confused. It seems that Last Paragraph rules might better be named Last Element rules if they do not necessarily affect the last paragraph.
Background: I'm trying to use markers to represent deleted content, hoping that the use of markers instead of empty container elements will allow me to maintain the page layout without awkward gaps. Since I use Last Paragraph rules quite a lot in my EDD, and the Last Paragraph rules do not work in the way I expected, this is proving difficult. Instead, I'm having to use a container element [Deleted] for deleted content, with context rules on various other elements to format them as run-in headings if {before Deleted}. This is inelegant and error-prone.
I'd appreciate any suggestions or comments.
Thanks,
Jon
[edited: caught out by < and > again.]
Hello Forum,
I'm having a bad hair day with last paragraph rules. If you have an element which allows text containers and marker elements, last paragraph rules work in a surprising way if the last element is not a paragraph.
Consider the following EDD:
Element (Container): HLE
General rule: Chunk+
Valid as the highest-level element.
Element (Container): Chunk
General rule: (Para | Marker)+
Format rules for last paragraph in element
In all contexts.
Default font properties
Color: Red
Element (Container): Para
General rule: <TEXT>
Element (Marker): Marker
Initial marker type
In all contexts.
Use marker type: MyMarker
... and a simple test document using the above element definitions (using [ and ] instead of < and >):
[HLE]
[Chunk]
[Para]asdf[/Para]
[Para]asdf[/Para]
[Marker /]
[/Chunk]
[/HLE]
I would expect the second [Para] (as the last paragraph in the parent element) to format as red text. However, it does not, and formats as an ordinary para. I can find nothing in the SADG to back this behaviour up, and I am a bit confused. It seems that Last Paragraph rules might better be named Last Element rules if they do not necessarily affect the last paragraph.
Background: I'm trying to use markers to represent deleted content, hoping that the use of markers instead of empty container elements will allow me to maintain the page layout without awkward gaps. Since I use Last Paragraph rules quite a lot in my EDD, and the Last Paragraph rules do not work in the way I expected, this is proving difficult. Instead, I'm having to use a container element [Deleted] for deleted content, with context rules on various other elements to format them as run-in headings if {before Deleted}. This is inelegant and error-prone.
I'd appreciate any suggestions or comments.
Thanks,
Jon
[edited: caught out by < and > again.]
