Skip to main content
C_Sarelius
Known Participant
April 30, 2009
Answered

Structured elements and paragraph formats

  • April 30, 2009
  • 1 reply
  • 1424 views

Hi,

my question is how can I prevent an end of line return being inserted when I wrap a word in an element, specifically an 'indxflag' element? I'm using structured FM 7.0.

The screen shot here shows 3 things - part of my document in a FM window (with the indexed word highlighted), the structure view of that document, and the indxflag element definition in the EDD.

With the DTD I'm using, to create an index I wrap the words in an indxflag element. My problem is whenever I do that it inserts a hard return (paragraph return, pressing the Enter key, call it what you want). How do I prevent this (the return) from happening because obviously when I print to PDF (or paper) I have paragraphs starting where I don't want them.

Advice appreciated. Cheers.

Carl

This topic has been closed for replies.
Correct answer Russ Ward

Russ, in my humble opinion however,

Carl's EDD shows the indxflag to be of type Marker. I am assuming he is using an EDD, not creating one. And he does say he is trying to do some indexing. I think Carl believes he can create an index entry by wrapping an indxflag around the text he wants in the entry, which is not how elements of type index operate.

How would changing the indxflag element to a container be used in an indexing process? How would the index be created? Is there a way to create an index of container elements? If so, I would like to know, because I am dealing with an indexing issue that would be easily resolved by indexing some container elements.

Van


Van, you might be right, hopefully Carl will stop by again and clarify. What I suspected is that he is using some kind of post-processing system with XML to make indexes, not using the elements to make indexes in FrameMaker. I based that on this statement:

"With the DTD I'm using, to create an index I wrap the words in an indxflag element."

Certainly, without a plugin or FrameScript, there is no way to leverage structural markup to build a Frame index. It would be a powerful addition to the DTP features of Frame if an index could be generated using markup. Somebody should write a plugin.

Russ

1 reply

Van Kurtz
Inspiring
April 30, 2009

Carl,

Elements that are defined as markers do not typically wrap content. The content is entered through a marker dialog box. I am surprised validation did not find an error.

Place the insertion point, then INSERT the indxflag element. Frame should display a marker dialog box. Enter your text content there, and click New Marker, or something similar. If you need to edit that content later, select the indxflag element, and then select Special > Markers. Edit the content and click the appropriate button.

Good luck,

Van

Legend
April 30, 2009

Van, I think you may have misunderstood Carl's question. What you say about marker elements is true, but I don't think that's what Carl wants. Carl, it sounds like you are using the element markup to trigger some indexing process, not to actually insert a FrameMaker marker. If this is true, then you should have the marker defined in the EDD as a Container element, not a Marker element. Furthermore, in the formatting properties, it should be designated as a "text range" element in "all contexts." If you don't know what that means, there is information in the Structure Developers Guide or you can ask here.

Russ

Van Kurtz
Inspiring
April 30, 2009

Russ, in my humble opinion however,

Carl's EDD shows the indxflag to be of type Marker. I am assuming he is using an EDD, not creating one. And he does say he is trying to do some indexing. I think Carl believes he can create an index entry by wrapping an indxflag around the text he wants in the entry, which is not how elements of type index operate.

How would changing the indxflag element to a container be used in an indexing process? How would the index be created? Is there a way to create an index of container elements? If so, I would like to know, because I am dealing with an indexing issue that would be easily resolved by indexing some container elements.

Van