Proposal: Promote svg support

Inge Wallin inge at lysator.liu.se
Wed Jun 29 12:22:12 BST 2011


On Saturday, June 25, 2011 19:45:17 jaham at gmx.net wrote:
> Hi folks...
> 
> I want to make a proposal to move the svg supporting classes now residing
> in calligra/filters/karbon/svg to a lib in calligra/libs/svg.
> You may ask why I want to do that. The following are some reasons:
> 
> 1. Make it possible to have support for loading and saving embedded svg
> documents in odf files.
> 
> 2. Support for copy-pasting in svg format.
> 
> 3. Some shapes may optionally support to save directly to svg via an
> Interface (i.e. SvgSerializable) to implement.
> 
> 4. Allow other application to add svg file format support easily.
> 
> The first and third point is especially important for the artistic text
> shape. After improving that shape a lot it became clear that there is no
> way to represent that shape in odf. So I had to remove the old insuffient
> loading/saving code. This has two consequences:
> a) the shape can not be saved to odf,
> b) copy-pasting of that shape does not work.
> This has to be fixed.
> 
> So my intention is to create a svg lib which helps implement the 3 points
> above and thus move the svg support to a more prominent position.
> 
> Before starting on this project I wanted to get some opinions from you if
> that is something to attempt or if that is utter bullshit.

To add more SVG support is great.  Not the least because ODF 1.2 recommends 
pixmaps to always be PNG and vector images to always be SVG.

You might be interested to know that there is a branch called libs-
unavail_save-ingwa that has some code that adds the ability to create object 
replacement images in SVG format to frame shapes.  It also contains support 
for the unavail shape to show these object replacement SVG images.

The reason why I haven't put this to review yet is that I had merge conflicts 
that led to an irritating saving bug that makes OOo unable to read our objects 
back.

	-Inge


> Hope to hear from you
> Ciao Jan
> 
> _______________________________________________
> calligra-devel mailing list
> calligra-devel at kde.org
> https://mail.kde.org/mailman/listinfo/calligra-devel



More information about the calligra-devel mailing list