Hi, I would like to submit enhancement for OutputManager. This patch will format the attrib to have new line on the specified documentWidth and indent the newline according to getTabulationWidth useful for example to format very long path element d attribute. I attached the cvs diff -u format in this message and here is the bug(not a bug just enhancement) id # btw, there is no Transcoder group on the bugzilla under batik. So I just put in under utilities group. Regards Tonny Kohar http://www.kiyut.com
Created attachment 10214 [details] the cvs diff -u file for OutputManager
There is a problem here. You can't just add newlines to all attributes. For example if you add a newline in the middle of preserveAspectRatio='xMidYMid split' the result is an invalid SVG. The only solution to this is for the OutputManager to have a list of attributes (namespace qualified) for particular elements (or elements in a particular namespace).
I would like to submit the DOM to source file transcoder with Pretty Printer formating rule. This time no cvs diff -u because it is completely new file. See the attachment. Almost all the code is copy and paste from DOMUtilitis and svg2svg transcoder with modification. I put it under the package org.apache.batik.transcoder.dom, because I think it is different from org.apache.batik.transcoder.svg2svg (Source to Source) and this one is DOM to source.
Created attachment 10262 [details] Source file for DOMTranscoder
Created attachment 10263 [details] Source file for DOMTranscoder Pretty Printer
Created attachment 10322 [details] Updated DOMPrettyPrinter
Reassigning all open bugs to the development list. Sorry for the mass mailing.