Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001276graphvizOutput Generationpublic2008-03-06 20:142011-04-28 04:03
ReporterRakSik Jung 
Assigned Toerg 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSx86-Linux-2.6.20-1.2933.fc6OS Version
Summary0001276: Korean language is not shown in graph (Atlassian Confluence)
Description



Hello I'm Confluence Korean user.



I'm using Graphviz plugin on our Confluence(ver2.7)
Our server environment is Fedora Core6, Tomcat5.5.23, Mysql5.0.27.



Our Confluence is installed Graphviz plugin(Ver1.1.0) and server is installed graphviz(Ver2.8)



when we use {graphviz} macro some problem occured.
I write Confluenc Page with {graphviz} macro like
<CD>
{graphviz}
digraph G
{
node1;
node2;
node3;
node1 -> node2 [label="edge_1_2"];
node1 -> node3 [label="edge_1_3"];
node2 -> node3 [label="edge_2_3"];
}
{graphviz}
</CD>
It had not problem.



But I using Korean Hangul has Some problem
<CD>
{graphviz}
digraph G{
node1;
node2;
node3;
ê°[fontname="Gulim.ttc"] ;
ë[fontname="Gulim.ttc"] ;
node1 -> node2 [label="edge_1_2"];
node1 -> node3 [label="edge_1_3"];
node2 -> node3 [label="edge_2_3"];
ê° -> ë
}
{graphviz}
The error messge is
Syntax Error: { node1; node2; node3; >>> & <<< #44032;[fontname="Gulim.ttc"]; ë[fontname="Gulim.ttc"]; node1 -> node2 [label="edge_1_2"]; node1 -> node3 [label="edge_1_3"]; node2 -> node3 [label="edge_2_3"]; ê° -> ë; }
digraph G
{ node1; node2; node3; ê°[fontname="Gulim.ttc"]; ë[fontname="Gulim.ttc"]; node1 -> node2 [label="edge_1_2"]; node1 -> node3 [label="edge_1_3"]; node2 -> node3 [label="edge_2_3"]; ê° -> ë; }
</CD>



and
I create a file 'test.png' using by dot on the commad line for generate a image.
<CD>
#vi test.dot
#add line
digraph G{
node1;
node2;
node3;
ê°[fontname="Gulim.ttc"] ;
ë[fontname="Gulim.ttc"] ;
node1 -> node2 [label="edge_1_2"];
node1 -> node3 [label="edge_1_3"];
node2 -> node3 [label="edge_2_3"];
ê° -> ë
}
#w!
#touch test.png
#dot -Tpng test.dot -o test.png
</CD>



It has no problem when I try to generate image file(test.png).
but Confluence page occur syntax error and not visible



How do I make successful using by Graphviz plugin with Confluence in Korean(Hangule)
I can't recognize syntax error in this error messages,
please check and fix it.



Thanks
Additional Information

I think it has problem at confluence.
it because graphviz working well with 2byte character, specific Korean language when I run on the command line.
That's why graphviz has no problem.
So, could you check like this situation.
Even if you can do, show me the sample syntax on the confluence(not single byte character).

[ellson] I can't tell you anything about Confluence. That is not from us.

If you can send me an example graph with some Korean labels, I will verify the encoding is good and that dot is ok with it.
(Please send it as an attachment, so that it is sent with binary transparency.)

Also, can you send a graph generated by Confluence?

[erg] The error message you got was:

Syntax Error: { node1; node2; node3; >>> & <<< #44032;[fontname="Gulim.ttc"]; ë[fontname="Gulim.ttc"]; node1 -> node2 [label="edge_1_2"]; node1 -> node3 [label="edge_1_3"]; node2 -> node3 [label="edge_2_3"]; ê° -> ë; }

The part after Error: shows what dot was parsing when a problem occurred, with the problem highlighted by the >>> <<<. Getting rid of them,
you find that the source being given to do was

  node1; node2; node3; 가[fontname="Gulim.ttc"];

This is not legal DOT. Identifiers can only consists of ascii numbers and letters and underscores, or any quoted string. The
identifier 가 obviously doesn't fit that description. The fix is simple:

  node1; node2; node3; "가"[fontname="Gulim.ttc"];

Note that your original test graph is not legal either, as DOT only supports UTF-8 and Latin-1 as input characters,
and your input is neither. This may be what confused confluence.

You can use node names with Korean letters, but they must be wrapped in double quotes, and the letters themselves
must either be UTF-8 or given using the ascii numeric encoding like "가".
Try this, and see if the confluence problem goes away.

If not, let us know.
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID1308
INPUT-FILE
OUTPUT-FILEhttp://www.graphviz.org/bugs/b1308.png [^]
STATUS-COMMENTFixed
VERSION     2.8
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => erg


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker