--nextPart4628050.pqSpp6bEZT Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii"; protected-headers="v1" From: Milian Wolff To: kde-devel@kde.org Cc: David Hurka Subject: Re: Looking for an SVGDOM / other SVG library for use with C++ and CMake. Date: Sat, 12 Jun 2021 15:27:47 +0200 Message-ID: <2896629.H7OT33r04H@milian-workstation> In-Reply-To: <21159679.EfDdHjke4D@doro> References: <7995865.T7Z3S40VBb@doro> <21159679.EfDdHjke4D@doro> On Donnerstag, 10. Juni 2021 23:45:20 CEST David Hurka wrote: > Yes, I am about to write a minimal SVG parser with QDomDocument. The result > is probably very little code. I would just like to outsource this task to > someone who already implemented and tested it. :) Don't use QDomDocument, Qt XML is deprecated. Use QXmlStreamReader instead. > breeze-icon-cleaner splits one SVG drawing into multiple icon files, where > the file names are passed as command line option. I think it would be more > convenient to define the file names directly in the SVG drawing. > > So I am looking for a library that gives me access to text elements in an > SVG > file. It should be usable from C++ and with CMake. This sounds like a trivial 1to1 filter operation that just adds an attribute at a certain point. Doing that with QXmlStreamReader / Writer should be pretty straight forward. Alternatively, why not write a simple script for this using Python e.g.? You could even use XSLT for this purpose. I don't quite see what you need C++ for here, personally. Cheers -- Milian Wolff mail@milianw.de http://milianw.de --nextPart4628050.pqSpp6bEZT Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEezawi1aUvUGg3A1+8zYW/HGdOX8FAmDEtlMACgkQ8zYW/HGd OX/r1RAAw5wFRHMQRH3mo4vVFNWPDTWznbafZN03G/culVU2drKb3KvazsSMuFTh 8UJD23jyG81aSu1uZFGw71db38zUowqLyLjckJtZejlQfHSJNTU5y22fGWMNXg2d VBilEiNcWQc9Uy+h78ar356CZiOydgvWuE38m4NBoVfffthqrwvk1PWO7fUZoxiG KxBAATD9gZPksaPM1vuVWQkBvrwjKxLmVmWYBtkPvEKXGViN55G3z2H9VZJqsUBv 03gRJZ/kgy6iEBOdh1fUMrwLKgUf2HfvZ9WNF7n+DCrxj65ALXE6IDqUCw0oxpsA Y5tt/BB9Vsh2nWezFYuml7dFm8f52Oac+jzr8Up9GWqLEol6jVN0G4zseZc8TLGr CtPd1PNPxJ6nshKrQ91c3/tPz6l/mwRMVGPK//c4WUfNP+kXHsgMefBfPb/DEZSF K6EgBda/uFFgjf0ZNmmYuQ8b1/L9XH17WALTJNv2IbSN/UpAjxqIj3IdhGj0dP68 xckEeWAkmGzlldb3zOn56Dz4TytfRx26tHW3fiLCoxODf4LvsGkrmJgjk2+G3vFW qZmjaONkZpbNx9iFDlNAiRkSjpX5U4xFekh8E32nBPKPKLOvaVWp7xq+HCU1X5bv efBRjUN5GV8rwMc8sq0PY+A2ENf6Fy7uI5MQHLEMx2L7+PzPcBk= =KWzu -----END PGP SIGNATURE----- --nextPart4628050.pqSpp6bEZT--