My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 65: [xdot] new feature to have multi_line clickable support patch inside
1 person starred this issue and may be notified of changes. Back to list
Status:  WontFix
Owner:  ----
Closed:  May 2013


Sign in to add a comment
 
Reported by fru...@gmail.com, Dec 27, 2011
example in:
https://code.google.com/p/xdot-multi-line/

* Explanation
-------------
with this feature you can asociate earch line of a node with a part of the url.
in the file in main.cpp we have:
1 class A {
2    int hello;
3    int world;
4 };

and in the graph appears a node A with 4 lines:
A
_
- int hello
- int world

if you click in "A" you obtain the first part of the URL: 
main.cpp:1

if you click in "-int world" you obtain the fourth par of the URL:
main.cpp:3
Dec 27, 2011
#2 fru...@gmail.com
this is the way i founded to submit my patch to aply it:
  patch -p0 -i xdot_v5_1_multi_line.patch
inside of the jrfonseca.xdot directory
this issue is not a error or a defect is a patch with a new feature
Jan 11, 2012
Project Member #3 Jose.R.F...@gmail.com
Thanks for your contribution.

Is this supported by the dot language, or a language extension that you wrote?

It seems useful, but if it is a new extension, I'd prefer for it to be done in coordination with upstream graphviz maintainers, so that it works for all backends.

Labels: -Type-Defect Type-Enhancement
Jan 16, 2012
#6 fru...@gmail.com
EDITED 1 (16/01/2012)
i try to write more easy...

you are welcome, your xdot saved a lot of time in my project.


>Is this supported by the dot language, or a language extension that you wrote?
Is supported by the dot language, i did not modificate any part of dot language, 
only your xdot.py

i put more easy example in 
https://code.google.com/p/xdot-multi-line/

example 1
----------
execute:
./example_01.py

you can see a node with 2 lines:

label="{hello\lworld}"

each with his correspondent message when you click the first line
you will obtain the first part of the URL and when you click the second line
you will obtain the second part of the URL:

URL="hello|world",

The parts of the URL are separated by '|' you can change this separator easily
with:

xdot.options.set_multi_line_separator('|')


PD: thanks for your great xdot.py, easy, fast and not java inside :-)

xdot_multi_line_v5_0_3.git.tar.gz
120 KB   Download
xdot_4_to_5_multi_line_3.patch
4.4 KB   View   Download
Apr 8, 2013
Project Member #7 Jose.R.F...@gmail.com
(No comment was entered for this change.)
Summary: [xdot] new feature to have multi_line clickable support patch inside (was: new feature to have multi_line clickable support patch inside)
May 9, 2013
Project Member #8 Jose.R.F...@gmail.com
> > Is this supported by the dot language, or a language extension that you wrote?
> Is supported by the dot language, i did not modificate any part of dot language, 
only your xdot.py

So, IIUC, if one passes these multiline URLs to dot and generate a SVG, then one will get invalid URLs.

I really want xdot.py to follow the standard dot language -- I don't want to be contributing to pollute the graphviz ecosystem with non-standard extensions to dot language.

As I said, if this is truly useful for everybody, then you should consider proposing an extension of dot language on graphviz mailing list.

As is now, I'm afraid I can't accept this..
Status: WontFix
Sign in to add a comment

Powered by Google Project Hosting