On 07-Mar-2013 06:33, LucaDC wrote:
Inkscape is an SVG editor, no?
Actually, no, it is much more than that. Inkscape is the best free object based drawing program, and provides a good alternative to Adobe Illustrator. In most ways I like Inkscape much better than Illustrator. Inkscape happens to store its drawings in a slight variant of standard SVG, which is convenient in many ways, but that is not the end of the story. Often we need that drawing in another format, PDF, or EMF, or whatever. Inkscape is able to convert between many of these other formats and its internal SVG format, often with no or minimal losses. For instance, for EMF, which I am painfully familiar with, the majority of EMF record types can be imported into SVG with no loss, and then saved back out again to EMF, again with no loss. (Here I am describing the cross platform lp988601 branch, not the release branch, which has more limited EMF support, and then only for the Windows platform.) There may be some neutral conversions from one type to another (a rectangle might become a polygon of the same size and shape). There are a few areas that are not quite fully implemented yet (for instance BKMODE, or gradient import) and others which most likely will never be fully implemented (like the raster operation specifiers for BLT operations - which are not object based). But those quibbles aside, one could equally say that "Inkscape is an EMF editor". The statement is true so long as one avoids the drawing options within Inkscape that cannot be translated to EMF. One can easily imagine code modifications which would disable these functions when an Inkscape document is created by reading an EMF file, making the statement entirely true. (I am not proposing that, just saying that it would not be hard to do.)
Look at the two example EMF images here, which contain examples of most types of EMF records:
http://sourceforge.net/projects/libuemf/
Both of those can be loaded into Inkscape and written back out again, and the only parts that will be lost are the two little rainbow colored gradient regions at 9:00 in the unrotated image (gradient import is not yet implemented - there seems to be a deep bug in Microsoft's own software regarding the handling of linear gradient records from EMF files, which makes testing in this area very difficult.) Inkscape can already export its own gradients to EMF, but it is an emulation, sending out a colored gradient composed of overlapping thin objects that in sum looks like the original gradient. This is typical for EMF export in most programs, I think because others have also been unable to work around the MS gradient bugs. (It is not widely appreciated, but AFAIK no windows program can save and retrieve a simple gradient record to an EMF file. It just looks like they can because they all use this same emulation technique.)
Regards,
David Mathog mathog@...1176... Manager, Sequence Analysis Facility, Biology Division, Caltech