MIF to SVG

2010-12-07 Thread Michael Müller-Hillebrand
Am 07.12.2010 um 16:52 schrieb Rick Quatro:

> Is anyone aware of a tool for converting MIF files to SVG? My client has a
> mix of imported graphics and FrameMaker objects in their anchored frames. We
> can preserve them by using MIF for the anchored frame content when saving to
> XML, but now they want to see if the MIF representation of the graphics,
> etc., can be converted to SVG. Any suggestions would be appreciated.

Rick,

I have done some work in this direction, both using FrameScript from "inside" 
FrameMaker documents as well as externally after turning FrameMaker files with 
Leximation?s MIFML converter in to MIF-as-XML. I then used XSLT to create SVG.

But: SVG has no real support for text frames, just text lines. Also, as far as 
I remember, I stopped creating a converter for Arc objects, because the graphic 
model is very different between FrameMaker (where you can rotate any object as 
you like) and SVG.

So, yes, it is possible with some limitations.

- Michael



MIF to SVG

2010-12-07 Thread Jeremy H. Griffith
On Tue, 7 Dec 2010 20:27:30 +0100, Michael M?ller-Hillebrand 
 wrote:

>I have done some work in this direction, both using FrameScript 
>from "inside" FrameMaker documents as well as externally after 
>turning FrameMaker files with Leximation?s MIFML converter in 
>to MIF-as-XML. I then used XSLT to create SVG.

An interesting approach!  We just used C++, converting the
Frame graphics into a DCL representation, then generating
WMF from the DCL.  (We created DCL and made it public domain.)

So for SVG, we already have the MIF parsed, and have the WMF 
code we wrote as a framework.

>But: SVG has no real support for text frames, just text lines. 

Same for WMF.  However, Frame does tell you where line breaks
are in the text frames, so our code computes the start for
each line.  Of course this also requires parsing the Frame
para and char formats, to determine size and spacing, so it 
is nontrivial.  Hard to see how you could do it with XSLT.

>Also, as far as I remember, I stopped creating a converter 
>for Arc objects, because the graphic model is very different 
>between FrameMaker (where you can rotate any object as you 
>like) and SVG.

Yes, WMF is also more limited.  So we had to compute the
equivalent polylines for many Frame objects, and since WMF
has no grouping, such objects are essentially uneditable
thereafter.  (Some line segments were only one pixel long.)

We also ran into issues with rotated text, dotted lines,
line weights, and much more.  The results were "good enough"
for use as WinHelp illustrations, but would not win prizes.

>So, yes, it is possible with some limitations.

Some pretty severe ones, IMHO... which is another reason
we haven't rushed to do it.

-- Jeremy H. Griffith, at Omni Systems Inc.
http://www.omsys.com/


MIF to SVG

2010-12-07 Thread Jeremy H. Griffith
On Tue, 7 Dec 2010 12:31:12 -0500, Art Campbell  
wrote:

>I'm not sure because I don't use SVG (since Adobe stopped supporting
>it), but I recall that MIF2go supports it as an output format for the
>contents of anchored frames. May want to double check, but that may
>give you a route to create the graphic files.

That's correct; in mif2htm.ini, you set:

[FDK]
GraphicExportFormat=SVG

Then Mif2Go tells Frame to use its native SVG export
filter.  Note that we did *not* write that filter; it
is Adobe's.  So if it does not match your needs, we
can do nothing about it.

You don't need to purchase Mif2Go to do this export.
The demo version works fine.  In the Export dialog,
select "Write for anchored frames".  To save time, 
you may also want to check "Write only graphics, 
no text".

We do write our own WMF graphics, when you export
to WinHelp, so those are better quality than the
native Frame WMF used for the HTML/XML exports.
We plan to write our own SVGs at some point too,
but so far demand has not justified the substantial
programming effort required.

HTH!

-- Jeremy H. Griffith, at Omni Systems Inc.
http://www.omsys.com/


MIF to SVG

2010-12-07 Thread Art Campbell
Rick,
I'm not sure because I don't use SVG (since Adobe stopped supporting
it), but I recall that MIF2go supports it as an output format for the
contents of anchored frames. May want to double check, but that may
give you a route to create the graphic files.

Art Campbell
 ? ? ? ? ? ? ? art.campbell at gmail.com
? "... In my opinion, there's nothing in this world beats a '52
Vincent and a redheaded girl." -- Richard Thompson
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? No disclaimers apply.
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? DoD 358



On Tue, Dec 7, 2010 at 10:52 AM, Rick Quatro  wrote:
> Is anyone aware of a tool for converting MIF files to SVG? My client has a
> mix of imported graphics and FrameMaker objects in their anchored frames. We
> can preserve them by using MIF for the anchored frame content when saving to
> XML, but now they want to see if the MIF representation of the graphics,
> etc., can be converted to SVG. Any suggestions would be appreciated.
>
>
> Rick Quatro
> Carmen Publishing Inc.
> 585-659-8267
> rick at frameexpert.com
>
> *** Frame Automation blog at http://frameautomation.com
>
>
>
>
> ___
>
>
> You are currently subscribed to framers as art.campbell at gmail.com.
>
> Send list messages to framers at lists.frameusers.com.
>
> To unsubscribe send a blank email to
> framers-unsubscribe at lists.frameusers.com
> or visit 
> http://lists.frameusers.com/mailman/options/framers/art.campbell%40gmail.com
>
> Send administrative questions to listadmin at frameusers.com. Visit
> http://www.frameusers.com/ for more resources and info.
>


Re: MIF to SVG

2010-12-07 Thread Jeremy H. Griffith
On Tue, 7 Dec 2010 12:31:12 -0500, Art Campbell  
wrote:

>I'm not sure because I don't use SVG (since Adobe stopped supporting
>it), but I recall that MIF2go supports it as an output format for the
>contents of anchored frames. May want to double check, but that may
>give you a route to create the graphic files.

That's correct; in mif2htm.ini, you set:

[FDK]
GraphicExportFormat=SVG

Then Mif2Go tells Frame to use its native SVG export
filter.  Note that we did *not* write that filter; it
is Adobe's.  So if it does not match your needs, we
can do nothing about it.

You don't need to purchase Mif2Go to do this export.
The demo version works fine.  In the Export dialog,
select "Write for anchored frames".  To save time, 
you may also want to check "Write only graphics, 
no text".

We do write our own WMF graphics, when you export
to WinHelp, so those are better quality than the
native Frame WMF used for the HTML/XML exports.
We plan to write our own SVGs at some point too,
but so far demand has not justified the substantial
programming effort required.

HTH!

-- Jeremy H. Griffith, at Omni Systems Inc.
http://www.omsys.com/
___


You are currently subscribed to framers as arch...@mail-archive.com.

Send list messages to fram...@lists.frameusers.com.

To unsubscribe send a blank email to
framers-unsubscr...@lists.frameusers.com
or visit 
http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com

Send administrative questions to listad...@frameusers.com. Visit
http://www.frameusers.com/ for more resources and info.


Re: MIF to SVG

2010-12-07 Thread Jeremy H. Griffith
On Tue, 7 Dec 2010 20:27:30 +0100, Michael Müller-Hillebrand 
 wrote:

>I have done some work in this direction, both using FrameScript 
>from "inside" FrameMaker documents as well as externally after 
>turning FrameMaker files with Leximation’s MIFML converter in 
>to MIF-as-XML. I then used XSLT to create SVG.

An interesting approach!  We just used C++, converting the
Frame graphics into a DCL representation, then generating
WMF from the DCL.  (We created DCL and made it public domain.)

So for SVG, we already have the MIF parsed, and have the WMF 
code we wrote as a framework.

>But: SVG has no real support for text frames, just text lines. 

Same for WMF.  However, Frame does tell you where line breaks
are in the text frames, so our code computes the start for
each line.  Of course this also requires parsing the Frame
para and char formats, to determine size and spacing, so it 
is nontrivial.  Hard to see how you could do it with XSLT.

>Also, as far as I remember, I stopped creating a converter 
>for Arc objects, because the graphic model is very different 
>between FrameMaker (where you can rotate any object as you 
>like) and SVG.

Yes, WMF is also more limited.  So we had to compute the
equivalent polylines for many Frame objects, and since WMF
has no grouping, such objects are essentially uneditable
thereafter.  (Some line segments were only one pixel long.)

We also ran into issues with rotated text, dotted lines,
line weights, and much more.  The results were "good enough"
for use as WinHelp illustrations, but would not win prizes.

>So, yes, it is possible with some limitations.

Some pretty severe ones, IMHO... which is another reason
we haven't rushed to do it.

-- Jeremy H. Griffith, at Omni Systems Inc.
http://www.omsys.com/
___


You are currently subscribed to framers as arch...@mail-archive.com.

Send list messages to fram...@lists.frameusers.com.

To unsubscribe send a blank email to
framers-unsubscr...@lists.frameusers.com
or visit 
http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com

Send administrative questions to listad...@frameusers.com. Visit
http://www.frameusers.com/ for more resources and info.


Re: MIF to SVG

2010-12-07 Thread Michael Müller-Hillebrand
Am 07.12.2010 um 16:52 schrieb Rick Quatro:

> Is anyone aware of a tool for converting MIF files to SVG? My client has a
> mix of imported graphics and FrameMaker objects in their anchored frames. We
> can preserve them by using MIF for the anchored frame content when saving to
> XML, but now they want to see if the MIF representation of the graphics,
> etc., can be converted to SVG. Any suggestions would be appreciated.

Rick,

I have done some work in this direction, both using FrameScript from "inside" 
FrameMaker documents as well as externally after turning FrameMaker files with 
Leximation’s MIFML converter in to MIF-as-XML. I then used XSLT to create SVG.

But: SVG has no real support for text frames, just text lines. Also, as far as 
I remember, I stopped creating a converter for Arc objects, because the graphic 
model is very different between FrameMaker (where you can rotate any object as 
you like) and SVG.

So, yes, it is possible with some limitations.

- Michael

___


You are currently subscribed to framers as arch...@mail-archive.com.

Send list messages to fram...@lists.frameusers.com.

To unsubscribe send a blank email to
framers-unsubscr...@lists.frameusers.com
or visit 
http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com

Send administrative questions to listad...@frameusers.com. Visit
http://www.frameusers.com/ for more resources and info.


MIF to SVG

2010-12-07 Thread Rick Quatro
Is anyone aware of a tool for converting MIF files to SVG? My client has a
mix of imported graphics and FrameMaker objects in their anchored frames. We
can preserve them by using MIF for the anchored frame content when saving to
XML, but now they want to see if the MIF representation of the graphics,
etc., can be converted to SVG. Any suggestions would be appreciated.


Rick Quatro
Carmen Publishing Inc.
585-659-8267
rick at frameexpert.com

*** Frame Automation blog at http://frameautomation.com






Re: MIF to SVG

2010-12-07 Thread Art Campbell
Rick,
I'm not sure because I don't use SVG (since Adobe stopped supporting
it), but I recall that MIF2go supports it as an output format for the
contents of anchored frames. May want to double check, but that may
give you a route to create the graphic files.

Art Campbell
               art.campb...@gmail.com
  "... In my opinion, there's nothing in this world beats a '52
Vincent and a redheaded girl." -- Richard Thompson
                                                      No disclaimers apply.
                                                               DoD 358



On Tue, Dec 7, 2010 at 10:52 AM, Rick Quatro  wrote:
> Is anyone aware of a tool for converting MIF files to SVG? My client has a
> mix of imported graphics and FrameMaker objects in their anchored frames. We
> can preserve them by using MIF for the anchored frame content when saving to
> XML, but now they want to see if the MIF representation of the graphics,
> etc., can be converted to SVG. Any suggestions would be appreciated.
>
>
> Rick Quatro
> Carmen Publishing Inc.
> 585-659-8267
> r...@frameexpert.com
>
> *** Frame Automation blog at http://frameautomation.com
>
>
>
>
> ___
>
>
> You are currently subscribed to framers as art.campb...@gmail.com.
>
> Send list messages to fram...@lists.frameusers.com.
>
> To unsubscribe send a blank email to
> framers-unsubscr...@lists.frameusers.com
> or visit 
> http://lists.frameusers.com/mailman/options/framers/art.campbell%40gmail.com
>
> Send administrative questions to listad...@frameusers.com. Visit
> http://www.frameusers.com/ for more resources and info.
>
___


You are currently subscribed to framers as arch...@mail-archive.com.

Send list messages to fram...@lists.frameusers.com.

To unsubscribe send a blank email to
framers-unsubscr...@lists.frameusers.com
or visit 
http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com

Send administrative questions to listad...@frameusers.com. Visit
http://www.frameusers.com/ for more resources and info.


MIF to SVG

2010-12-07 Thread Rick Quatro
Is anyone aware of a tool for converting MIF files to SVG? My client has a
mix of imported graphics and FrameMaker objects in their anchored frames. We
can preserve them by using MIF for the anchored frame content when saving to
XML, but now they want to see if the MIF representation of the graphics,
etc., can be converted to SVG. Any suggestions would be appreciated.


Rick Quatro
Carmen Publishing Inc.
585-659-8267
r...@frameexpert.com

*** Frame Automation blog at http://frameautomation.com




___


You are currently subscribed to framers as arch...@mail-archive.com.

Send list messages to fram...@lists.frameusers.com.

To unsubscribe send a blank email to
framers-unsubscr...@lists.frameusers.com
or visit 
http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com

Send administrative questions to listad...@frameusers.com. Visit
http://www.frameusers.com/ for more resources and info.