SVG 1.1 patch
"Beton, Richard" <[email protected]> Fri, 20 Feb 2004 13:34:10 +0000
| Newsgroups | gmane.comp.graphics.sodipodi |
|---|---|
| Message-ID | <[email protected]> |
Hi all, I'm not an experienced contributor (and probably never will be) but I thought I'd make a small contribution. I made a RFE for SVG1.1 support. http://sourceforge.net/tracker/index.php?func=detail&aid=871006&group_id=4054&atid=354054 I don't know how easy or difficult it is to change to supporting SVG1.1 fully (i.e. what the actual DTD differences are between v1.0 and v1.1), but the matter of using the SVG1.1 DTD in the DOCTYPE is trivial. So here is my suggested patch, attached. This fulfills the essence of RFE 871006. With this patch, Sodipodi creates new SVG documents using the SVG 1.1 DTD. Regards, Rick :-) -- Registered Office: Roke Manor Research Ltd, Siemens House, Oldbury, Bracknell, Berkshire. RG12 8FZ The information contained in this e-mail and any attachments is confidential to Roke Manor Research Ltd and must not be passed to any third party without permission. This communication is for information only and shall not create or change any contractual relationship.
svg11.patch
(text/plain, 1.1 KB)
Index: src/xml/repr-private.h =================================================================== RCS file: /cvs/gnome/sodipodi/src/xml/repr-private.h,v retrieving revision 1.21 diff -r1.21 repr-private.h 19a20,22 > #define SP_SVG_PUBLIC_ID "-//W3C//DTD SVG 1.1//EN" > #define SP_SVG_SYSTEM_ID "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" > Index: src/xml/repr.c =================================================================== RCS file: /cvs/gnome/sodipodi/src/xml/repr.c,v retrieving revision 1.41 diff -r1.41 repr.c 25a26,28 > #define SP_DOCTYPE "<!DOCTYPE svg PUBLIC \"" SP_SVG_PUBLIC_ID "\"\n \"" SP_SVG_SYSTEM_ID "\">\n" > #define SP_COMMENT "<!-- Created with Sodipodi (\"http://www.sodipodi.com/\") -->\n" > 771,775c774,775 < sp_repr_set_attr (&doc->repr, "doctype", < "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.0//EN\"\n" < "\"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd\">\n"); < sp_repr_set_attr (&doc->repr, "comment", < "<!-- Created with Sodipodi (\"http://www.sodipodi.com/\") -->\n"); --- > sp_repr_set_attr (&doc->repr, "doctype", SP_DOCTYPE); > sp_repr_set_attr (&doc->repr, "comment", SP_COMMENT);