For example, here where I'm from (Brazil), we write real numbers using commas (e.g. 3,28) instead of dots (3.28)
When generating a .svg file, GraphViz will write the xml using commas, instead of dots, which i believe is the standart for .svg
For example, what should be: <svg width="134pt" height="134pt" viewBox="0.00 0.00 134.00 134.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
shows up as: <svg width="134pt" height="134pt" viewBox="0,00 0,00 134,00 134,00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
This creates a svg file that doesn't work.
Running the same program i'm using in an English version works fine, it only fails in Portuguese version, or any language that uses commas instead of dots i guess
Input:
Comments:
graph { a -- b }
[erg] This should be handled by pangocairo, but simple experiments
setting LANG and LC_* don't show any differences. Certainly,
internationalization of the graphviz svg renderer is not going to happen
soon.
[erg] My apologies. I inverted the problem. Your problem is that you are getting commas instead of dots. That should be simple to fix. Meanwhile, I would hope that setting LC_NUMERIC=C or LANG=C before calling dot would fix this.
[diogo] Actually, the problem might not be in GraphViz itself, but something i missed in the binding I'm using (yapgvb).
I was able to generate the svg correctly from a dot file using command
line, so I guess its not gviz, maybe something on the interface that
binder use to render files, or maybe its just a problem of that
specific binding...
Owner: erg
Status: Fixed (19 May 2009)