Bug 26651 - Enhancement for OutputManager (SVGTranscoder)
Summary: Enhancement for OutputManager (SVGTranscoder)
Status: NEW
Alias: None
Product: Batik - Now in Jira
Classification: Unclassified
Component: Utilities (show other bugs)
Version: 1.5
Hardware: All All
: P3 enhancement
Target Milestone: ---
Assignee: Batik Developer's Mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-04 07:50 UTC by Tonny
Modified: 2005-03-22 03:16 UTC (History)
0 users



Attachments
the cvs diff -u file for OutputManager (3.31 KB, patch)
2004-02-04 07:52 UTC, Tonny
Details | Diff
Source file for DOMTranscoder (7.80 KB, text/plain)
2004-02-07 13:19 UTC, Tonny
Details
Source file for DOMTranscoder Pretty Printer (17.65 KB, text/plain)
2004-02-07 13:20 UTC, Tonny
Details
Updated DOMPrettyPrinter (17.57 KB, text/plain)
2004-02-11 20:12 UTC, Tonny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tonny 2004-02-04 07:50:42 UTC
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
Comment 1 Tonny 2004-02-04 07:52:20 UTC
Created attachment 10214 [details]
the cvs diff -u file for OutputManager
Comment 2 Thomas Deweese 2004-02-04 11:11:06 UTC
   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).
Comment 3 Tonny 2004-02-07 13:17:50 UTC
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.
Comment 4 Tonny 2004-02-07 13:19:07 UTC
Created attachment 10262 [details]
Source file for DOMTranscoder
Comment 5 Tonny 2004-02-07 13:20:02 UTC
Created attachment 10263 [details]
Source file for DOMTranscoder Pretty Printer
Comment 6 Tonny 2004-02-11 20:12:26 UTC
Created attachment 10322 [details]
Updated DOMPrettyPrinter
Comment 7 Thomas Deweese 2005-03-22 12:16:20 UTC
Reassigning all open bugs to the development list.
Sorry for the mass mailing.