Graph::ASCII::Dia

2006-03-19 Thread Nadim Khemir
Hi, I need ASCII diagramming; I couldn't find anything so I decided to wrap 
one myself :). I 'm writting a perl module to generate ASCII diagrams from 
Dia.

I have a simple prototype that is nowhere near something I'd release but if 
some are interrested, I'd happily share. If someone is really interrested, I 
can even think about giving it up as I don't think I will really have time to 
do this seriously.

I was going to do a full blown diagramming tool but It would have taken even 
more time. Only very simple diagrams can be converted (ex diagonals are not 
supported at all). There is also a problem with lines following the border of 
characters when the ASCII representation IS the character. One solution would 
be to create a stencil for ASCII graphs, if anyone feels like helping, he/she 
is very welcome. Though I'd also like to support the standard Dia stencils and 
not force all users to install new componants.

Here is a simple, and silly, example better seen in a monospace font.
Again, this is a pre-pre-pre release  and I show it to get help and input. The 
Todo list is longer than the code.

  Text at (10, 0)
 ^
 |
 ..   ..
 | A  |-->| A  |
 ''   |   ''
| |  |
| |  V
| ---|
||This is a text
VV  This is a text
  .---.  .-.  ..
  | A |  |  ?  |  | A  |
  '---'  '-'  ''
 |
 |
.|---.
||-- |---|   |
||   |   |   |
|V   V   V   |
| ..  ..  .. |
| | A  |  | A  |  | A  | |
| ''  ''  '' |
||
'--..
   |   package 2|
   ''

Cheers, Nadim.



Diagram3.dia
Description: application/dia
___
Dia-list mailing list
Dia-list@gnome.org
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.gnome.org/projects/dia/faq.html
Main page at http://www.gnome.org/projects/dia



Preview in explorer

2006-03-19 Thread Nadim Khemir
I'm using Gentoo-KDE, has enyone written a "Preview" plugin for Konqueror? I"d 
very much like to see the contents of a diagram without opening it.

it would be great if the md5 of the graph used to generate images (pns, ...) 
would be embeded in the image.

Nadim.
___
Dia-list mailing list
Dia-list@gnome.org
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.gnome.org/projects/dia/faq.html
Main page at http://www.gnome.org/projects/dia



Read only attribute

2006-03-19 Thread Nadim Khemir
Please, please, please,

Could the dev team _stop_ doing a backup and allow the modification of "read 
only" files. I understand that this is a unix file attribute problem and not 
a Dia problem (that's why I haven't reported it as a bug) but applications 
must also play the game and not change file names for files that are marked 
read only.

At least display some message and allow the user to cancel.

Nadim.
___
Dia-list mailing list
Dia-list@gnome.org
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.gnome.org/projects/dia/faq.html
Main page at http://www.gnome.org/projects/dia



Re: Read only attribute

2006-03-19 Thread Hans Breuer

On 19.03.2006 12:11, Nadim Khemir wrote:

Please, please, please,

Could the dev team _stop_ doing a backup and allow the modification of "read 
only" files. I understand that this is a unix file attribute problem and not 
a Dia problem (that's why I haven't reported it as a bug) but applications 
must also play the game and not change file names for files that are marked 
read only.


At least display some message and allow the user to cancel.


There already is a bug report
http://bugzilla.gnome.org/show_bug.cgi?id=133324

I'm not going to fix it before we dependend on a GLib version
providing g_access()

http://developer.gnome.org/doc/API/2.0/glib/glib-File-Utilities.html#g-access

Hans

 Hans "at" Breuer "dot" Org ---
Tell me what you need, and I'll tell you how to
get along without it.-- Dilbert
___
Dia-list mailing list
Dia-list@gnome.org
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.gnome.org/projects/dia/faq.html
Main page at http://www.gnome.org/projects/dia



Re: Graph::ASCII::Dia

2006-03-19 Thread Hans Breuer

On 19.03.2006 12:00, Nadim Khemir wrote:
Hi, I need ASCII diagramming; I couldn't find anything so I decided to wrap 
one myself :). I 'm writting a perl module to generate ASCII diagrams from 
Dia.


If I would want an ASCII diagram export I'd implement it as a PyDia plug-in 
like e.g.

http://cvs.gnome.org/viewcvs/dia/plug-ins/python/dot.py?rev=1.2&view=log

 Hans "at" Breuer "dot" Org ---
Tell me what you need, and I'll tell you how to
get along without it.-- Dilbert
___
Dia-list mailing list
Dia-list@gnome.org
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.gnome.org/projects/dia/faq.html
Main page at http://www.gnome.org/projects/dia



Re: Graph::ASCII::Dia

2006-03-19 Thread nadim khemir
I would too if I didn't find python to be an extremely borring language :-) (a 
very good language indeed but still). In any case, export to ASCIIis goingto 
neeed a stencil if it is going to be really usable.

Cheers, Nadim.

On Sunday 19 March 2006 13.28, Hans Breuer wrote:
> On 19.03.2006 12:00, Nadim Khemir wrote:
> > Hi, I need ASCII diagramming; I couldn't find anything so I decided to
> > wrap one myself :). I 'm writting a perl module to generate ASCII
> > diagrams from Dia.
>
> If I would want an ASCII diagram export I'd implement it as a PyDia plug-in
> like e.g.
> http://cvs.gnome.org/viewcvs/dia/plug-ins/python/dot.py?rev=1.2&view=log
>
>  Hans "at" Breuer "dot" Org ---
> Tell me what you need, and I'll tell you how to
> get along without it.-- Dilbert
> ___
> Dia-list mailing list
> Dia-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/dia-list
> FAQ at http://www.gnome.org/projects/dia/faq.html
> Main page at http://www.gnome.org/projects/dia
___
Dia-list mailing list
Dia-list@gnome.org
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.gnome.org/projects/dia/faq.html
Main page at http://www.gnome.org/projects/dia



Re: Read only attribute

2006-03-19 Thread nadim khemir
Nice to know other got the problem too; it makes me feel less lonely. I hope 
glib gets what you need soon.

Hans, do you want small stuff to be discussed in the mailling list first or to 
be reported as "bug" directly? an example, when moving connector ends, the 
standard icon is a 4 way arrow which obscures completely the connector making 
the whole procedure a pain. is that to be discussed here or reported?

Cheers, Nadim.

PS: I'm quite happy to not have to implement another Dia just to make ASCII 
diagrams. Thanks for Dia.

On Sunday 19 March 2006 13.24, Hans Breuer wrote:
> On 19.03.2006 12:11, Nadim Khemir wrote:
> > Please, please, please,
> >
> > Could the dev team _stop_ doing a backup and allow the modification of
> > "read only" files. I understand that this is a unix file attribute
> > problem and not a Dia problem (that's why I haven't reported it as a bug)
> > but applications must also play the game and not change file names for
> > files that are marked read only.
> >
> > At least display some message and allow the user to cancel.
>
> There already is a bug report
> http://bugzilla.gnome.org/show_bug.cgi?id=133324
>
> I'm not going to fix it before we dependend on a GLib version
> providing g_access()
>
> http://developer.gnome.org/doc/API/2.0/glib/glib-File-Utilities.html#g-acce
>ss
>
>   Hans
>
>  Hans "at" Breuer "dot" Org ---
> Tell me what you need, and I'll tell you how to
> get along without it.-- Dilbert
> ___
> Dia-list mailing list
> Dia-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/dia-list
> FAQ at http://www.gnome.org/projects/dia/faq.html
> Main page at http://www.gnome.org/projects/dia
___
Dia-list mailing list
Dia-list@gnome.org
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.gnome.org/projects/dia/faq.html
Main page at http://www.gnome.org/projects/dia



Re: Read only attribute

2006-03-19 Thread Hans Breuer

On 19.03.2006 15:08, nadim khemir wrote:
Nice to know other got the problem too; it makes me feel less lonely. I hope 
glib gets what you need soon.



Following the link provided would have revealed that GLib already has
g_access() since 2.8. An implementation conditionalized on
GLIB_CHECK_VERSION(2,8,0) would be accepted.

But there are at least two reasons why we don't have a hard dependency
on GLib 2.8 yet. For one it would imply gtk+-2.8 and thus cairo and
complete dropping of win9x. The other reason are users with outdated
Linux distributions ;) [I was going to say the maemo platform but that
has gtk+-2.6.x but apparently GLib 2.8.x already.]

Hans, do you want small stuff to be discussed in the mailling list first or to 
be reported as "bug" directly? an example, when moving connector ends, the 
standard icon is a 4 way arrow which obscures completely the connector making 
the whole procedure a pain. is that to be discussed here or reported?



It depends. More effective than just discussing minor points would be
providing patches. And they should definitely go into bugzilla to reduce
the probability of being forgotten.

An example, having a better cursor (maybe a 'target' less ugly than the
one provided by standard X cursors) and a patch to set it at the right
places would belong into bugzilla and could be applied quite quickly ;-)

Hans

 Hans "at" Breuer "dot" Org ---
Tell me what you need, and I'll tell you how to
get along without it.-- Dilbert
___
Dia-list mailing list
Dia-list@gnome.org
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.gnome.org/projects/dia/faq.html
Main page at http://www.gnome.org/projects/dia



Re: Read only attribute

2006-03-19 Thread Lars Clausen
On Sun, 2006-03-19 at 14:43 +0100, Hans Breuer wrote:
> On 19.03.2006 15:08, nadim khemir wrote:
> > Nice to know other got the problem too; it makes me feel less lonely. I 
> > hope 
> > glib gets what you need soon.
> > 
> Following the link provided would have revealed that GLib already has
> g_access() since 2.8. An implementation conditionalized on
> GLIB_CHECK_VERSION(2,8,0) would be accepted.
> 
> But there are at least two reasons why we don't have a hard dependency
> on GLib 2.8 yet. For one it would imply gtk+-2.8 and thus cairo and
> complete dropping of win9x. The other reason are users with outdated
> Linux distributions ;) [I was going to say the maemo platform but that
> has gtk+-2.6.x but apparently GLib 2.8.x already.]

In fact, Red Hat Enterprise Linux only has 2.4, all other distros I
checked had at least 2.6.

-Lars

___
Dia-list mailing list
Dia-list@gnome.org
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.gnome.org/projects/dia/faq.html
Main page at http://www.gnome.org/projects/dia