Closed lenntt closed 10 years ago
I'm not sure if there's a simple fix, but for some special characters it is possible to use HTML entities. I am using •
and →
in Grammophone, for example.
solved.. http://smartchamploo.blogspot.kr/2013/03/vizjs.html
As-is
function src(id) {
return document.getElementById(id).innerHTML;
}
To-be
function src(id) {
var dot = document.getElementById(id).innerHTML;
return dot + new Array(dot.length).join(" ");
}
Works for me on the latest 0.0.3 without patching src function. If there are still problems with Unicode left, feel free to reopen this.
When I have the following dot code (with setting charset or leaving it default to utf8):
Then Viz.js rendering does not render the edge and shows an error:
While running graphviz from the command line by:
I get the svg I expected.
There's probably not a simple fix for this (or has emscripten some build-in magic??), but though you should know.