Comments (2)
SAXSVGDocumentFactory path has been changed in batik.
This patch works for me:
--- ditaa-0.10.orig/src/org/stathissideris/ascii2image/graphics/ImageHandler.java 2015-07-13 18:25:29.000000000 +0200
+++ ditaa-0.10/src/org/stathissideris/ascii2image/graphics/ImageHandler.java 2016-01-30 14:37:06.643519439 +0100
@@ -42,7 +42,7 @@
import org.apache.batik.bridge.BridgeContext;
import org.apache.batik.bridge.GVTBuilder;
import org.apache.batik.bridge.UserAgentAdapter;
-import org.apache.batik.dom.svg.SAXSVGDocumentFactory;
+import org.apache.batik.anim.dom.SAXSVGDocumentFactory;
import org.apache.batik.dom.util.DocumentFactory;
import org.apache.batik.ext.awt.image.codec.PNGEncodeParam;
import org.apache.batik.ext.awt.image.codec.PNGImageEncoder;
diff -Naur ditaa-0.10.orig/src/org/stathissideris/ascii2image/graphics/OffScreenSVGRenderer.java ditaa-0.10/src/org/stathissideris/ascii2image/graphics/OffScreenSVGRenderer.java
--- ditaa-0.10.orig/src/org/stathissideris/ascii2image/graphics/OffScreenSVGRenderer.java 2015-07-13 18:25:29.000000000 +0200
+++ ditaa-0.10/src/org/stathissideris/ascii2image/graphics/OffScreenSVGRenderer.java 2016-01-30 14:37:06.643519439 +0100
@@ -29,7 +29,7 @@
import org.apache.batik.bridge.BridgeContext;
import org.apache.batik.bridge.GVTBuilder;
import org.apache.batik.bridge.UserAgentAdapter;
-import org.apache.batik.dom.svg.SAXSVGDocumentFactory;
+import org.apache.batik.anim.dom.SAXSVGDocumentFactory;
import org.apache.batik.gvt.GraphicsNode;
import org.apache.batik.gvt.renderer.ConcreteImageRendererFactory;
import org.apache.batik.gvt.renderer.ImageRenderer;
from ditaa.
Thanks for pointing it out. I've upgraded Batik to 1.8 and merged the changes. Also fixed the release build script.
from ditaa.
Related Issues (20)
- Many UTF-8 characters not renering HOT 1
- Official docker image HOT 1
- Boxes and their included text are not aligned properly. HOT 1
- Have a pointer symbol "*" in block
- Allow line cross box border from inside to outside
- Text changes size randomly HOT 1
- How to set up support for Chinese
- Sphinx (1.7.9) html build of .rst doc-n (with '.. ditaa::' directive) fails with undescriptive exception error if the path to 'ditaa_.jar' in conf.py is invalid (or the ditaa exec cannot be found otherwise) HOT 3
- ditaa slowly eats all available ram and never outputs a file HOT 1
- When arrowheads "touch" text, the text is not rendered
- TextGrid.seedFillOld takes considerable amount of time HOT 5
- Cannot plot loop between four circle
- New release forthcoming? :) HOT 6
- IndexOutOfBoundsException / NoSuchElementException with rounded corner directly next to box
- What determines the SVG font size? Different machines produce different results.
- Custom shapes and changed orientation possible?
- Remove 'o' as a bullet point pattern
- draw mac80211 in rectangle `c802` parse as color
- Reproduce a package source tree for the Python Sphinx extension for ditaa HOT 4
- Integration in Asciio HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ditaa.