Reading other files from the past…

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.

Advertisements

One thought on “Reading other files from the past…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s