google-code-export / jrfonseca

Automatically exported from code.google.com/p/jrfonseca
0 stars 0 forks source link

[xdot] new feature to have multi_line clickable support patch inside #65

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
example in:
http://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

Original issue reported on code.google.com by fru...@gmail.com on 27 Dec 2011 at 4:15

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
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

Original comment by fru...@gmail.com on 27 Dec 2011 at 4:21

GoogleCodeExporter commented 9 years ago
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.

Original comment by Jose.R.F...@gmail.com on 11 Jan 2012 at 1:51

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
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 
http://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 :-)

Original comment by fru...@gmail.com on 16 Jan 2012 at 3:53

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by Jose.R.F...@gmail.com on 8 Apr 2013 at 5:49

GoogleCodeExporter commented 9 years ago
> > 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..

Original comment by Jose.R.F...@gmail.com on 9 May 2013 at 8:50