While being stuck in text layouting problems during my work on writing an import filter for CDRv4 files for Calligra, I discovered that the import filter for the xfig format is currently disabled from built and needed some porting.
So for some change and a break and the old files I have around in the xfig format I gave it a try, should be just a few hours… Well, of course that became a few days, but now the import filter works at least somehow comparable good as it might have done before.
E.g. this old file

is now imported as

You see that text and arrows still need some work, and so do pattern fills, but otherwise it looks good. Except for:
??? How to translate x-splines to quadratic/cubic Bézier curves ???
XFig was used to be the reference implementation for that special type of splines. But so far I have not seen an explanation how to translate those to the kind of curves which are supported in ODG/SVG. Any help welcome! Currently those curves are imported as simple polylines.
If you want to give the filter a look, it currently lives only in an own branch in the Calligra repo, named filters-karbon-xfig-recreate2012.


Great work, thank a lot!
Comment by tux — March 6, 2012 @ 12:54 pm |