Adobe 65030365 Developer's Guide - Page 258
Formatting an element as a boxed set of paragraphs, Suppressing the display of an element’s content
UPC - 883919170923
View all Adobe 65030365 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 258 highlights
16 Modifications to the default translation To generate the appropriate content for the element on import to FrameMaker, you have two choices. You can require the end user to manually call the Generate command, or you can create an FDK client to generate the table of contents as the last step in importing the document. With this rule, when you export the FrameMaker document to markup the toc element retains its content in the exported document. For information on these rules, see "element" on page 376, "drop content" on page 375, "reader" on page 453, and "writer" on page 467. For information on creating an API client, see the FDK Programmer's Reference. Formatting an element as a boxed set of paragraphs The formatting associated with your documents may require that the paragraphs in an element appear in a completely or partially boxed area. In FrameMaker, you must have a table element to get this formatting. For information on how to translate a single markup element as a one-cell table, see "Using a table to format an element as a boxed set of paragraphs" on page 293. Suppressing the display of an element's content You may have a markup element you want to retain but whose content you do not want displayed when you translate markup documents containing the element to documents in FrameMaker. The simplest method of accomplishing this is to translate the element to a marker element and its content to marker text. For example, if you have a comments element that should not print in the document but whose content you do not want to lose, you can use these rules: element "comments" { is fm marker element; marker text is content; } For more information on marker elements, see Chapter 22, "Translating Markers." For more information on these rules, see "element" on page 376, "is fm marker element" on page 423, and "marker text is" on page 444. Alternatively, you may not want to create a marker element from your markup element. If you do not, there are other ways you could suppress display of the element's content, but these methods require you to write a structure API client. For example, you could have an API client attach a condition tag to the element and then hide that condition tag. For information on creating structure API clients, see the Structure Import/Export API Programmer's Guide. Discarding a markup or FrameMaker element You can use markup elements for purposes that have no counterpart in FrameMaker, and the reverse is also true. For example, assume you use an element break to indicate in Translating Elements and Their Attributes 240