cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

graphic format per output

Highlighted
Newbie

graphic format per output

> How would I markup my FOSI (is it a FOSI issue) to ignore the
> EPS while editing (screen) and ignore the GIF while printing?
>

Ed Benton beat me on one option. There are two other options to
consider.

One option is to use profiling. Create a profile for print/PDF that uses
the EPS and create others for HTML based outputs. You will still see
both in the Editor view but you will get exactly the right one on final
output.

The second option is to use the graphicpathhook. Have the users insert
just the one <mediaobject> for the EPS graphic and code some ACL for
this hook which figures out if it is being called for the Editor and if
so it can return the location of the GIF instead. Then the users see the
GIF in the Editor but the EPS in final. You may also need the
htmlimginserthook if you want HTML outputs supported.

John Dreystadt
Director of Product Management
Arbortext



Tags (2)
2 REPLIES 2
Highlighted

Re: graphic format per output



Peter,

In your FOSI, you would use an <att><specval> to get the desired results
see help 544 for the options available. The <att> follows the <charlist>
in the <e-i-c> for the <imagedata>. It would look something like this.

<e-i-c gi="imagedata" occurr="all">
<charlist>- - add your common formatting rules here- -</charlist>
<att>
<specval attname="format" attloc="html-only" attval="gif">
<charsubset> - - enter your output specific values here- -</charsubset>
</att>

Notice that you'll need to use the 'format' attribute on <imagedata> for
this to work. Do an <att> (you can have more than one per <e-i-c> for each
usage needed (including one for your screen display as if memory serves me
correctly, if you specify an output location, then the screen editor
doesn't have a graphic). In this case, you and use two <specval>s in the
same <att>. The <att> supports two options one is 'and' , the other is
'or' (so you can better tune your selection, the default is "and").

Lynn
Highlighted

Re: graphic format per output

Thanks, Lynn, for the reply.

I upgraded to 5.1 and found that this FOSI snip does what I want:

<att>
<specval attname="format" attloc="imagedata" attval="GIF">
<specval attname="print-only" attloc="system-var" attval="#ANY">
<charsubset>
<suppress sup="1">

</charsubset>
</att>
<att>
<specval attname="format" attloc="imagedata" attval="EPS">
<specval attname="editor-only" attloc="system-var" attval="#ANY">
<charsubset>
<suppress sup="1">
<usetext source="\set" hidesuppressed="on" to=" hide=" eps=" file\&quot;=" placemnt="after">
</usetext>
</charsubset>
</att>

Lynn Hales scribbled on 3/15/05 4:10 PM:
> Peter,
>
> I am not sure that I understand the entire logic myself. But here goes.
>
> The first <specval> looks for the attribute named 'format' with a value of
> "GIF". If this is met AND you are in the edit mode, then the graphic will
> display. The <specval>s are not stopping the display, but allowing the
> display at that point. Maybe it's like the original HP calculators with its
> RPN.
>
> Hope this makes more sense of what is happening.
>
> Lynn
Announcements