[Date Prev][Date Next] [Thread Prev][Thread Next]
[Date Index] [Thread Index] [New search]

Re: Best method for graphic callouts


Here is the way you are supposed to do hotspots in SGML and therefore
FM+SGML.  Someone put this in an FAQ or tipsheet so we don't have such a
long post again.

In SGML if you want to hotspot graphics you need to setup an element
structure as follows.  The following example assumes your parent graphic
element is figure.  Figure would have a content model as follows:

    Cap, Artwork, Spotref*

The Cap element contains the caption and is not relevent to our
discussion.  The artwork element is the entity reference to the artwork
file.  The Spotref elements are empty elements that contain hot spot
dimensions and references to text elsewhere in your document.  The
resulting SGML looks like this:

  <fig><cap>May caption</cap><artwork file="file0012"><spotref x="xloc" 
   y+"yloc" w="width" d="depth" refid=aaa0001>...</fig>

In FM+SGML you implement this by doing your traditional text frames on
top of your imported graphics.  The content of the text frames must be
structured and contain Frame XRefs.  This allows you to create PDF and
HTML that has live links to your text.

To produce the needed SGML output you set your Read/Write rules so that
all the  textframes are converted to Spotref elements are the proper
location.  If you use a SGML browser like Panorama Pro on the output
SGML you will have hotspots on your graphics even in the SGML file.

You can find examples of this technique being used in the Electronic
Part Catalog Exchange Standard (EPCES).  You can download sample
documents and DTDs from there Web site.  The EPCES standard is widely
used by companies like General Electric and General Motors.  You can
obtain sample documents from them also.

Hope this helps with how to handle the problem.

** To unsubscribe, send a message to majordomo@omsys.com **
** with "unsubscribe framers" (no quotes) in the body.   **