Hi

I am running the .86 version which is standard with the Mandrake 7.2
release. I needed the logic shapes. I did get them to work with some
brute force hacking i.e. change all the .png icons to .xpm (I used xv to
do this). You also have to change the urls during the xml definitions at
the start to be the same as specified in the .shape files which come
with your distribution of dia. In particular, for the 'and' shape, I
changed

<?xml version="1.0"?>
<shape xmlns="http://www.daa.com.au/~james/dia-shape-ns";
xmlns:svg="http://www.w3.org/2000/svg";>
  <name>Logic - And</name>
  <icon>and.png</icon>
  <connections>
    <point x="6" y="4"/>
    <point x="6" y="9"/>
    <point x="5" y="9"/>
    <point x="7" y="9"/>
  </connections>
  <aspectratio type="fixed"/>
  <svg:svg>
    <svg:path style="fill: #ffffff" d="M 6 4 C 8,4 8,7 8,9 C 7,9 5,9 4,9
C 4,7 4,4 6,4z"/>
    <svg:path style="stroke-width: 0.1; stroke: #000000" d="M 6 4 C 8,4
8,7 8,9 C 7,9 5,9 4,9 C 4,7 4,4 6,4"/>
  </svg:svg>
</shape>

-------------------------------------------
to the following: note the url change, and the .png to .xpm
-------------------------------------------------

<?xml version="1.0"?>
<shape xmlns="http://www.daa.com.au/~james/dia-shape-ns";
      
xmlns:svg="http://www.w3.org/TR/2000/03/WD-SVG-20000303/DTD/svg-20000303-stylable.dtd";>
  <name>Logic - And</name>
  <icon>and.xpm</icon>
  <connections>
    <point x="6" y="4"/>
    <point x="6" y="9"/>
    <point x="5" y="9"/>
    <point x="7" y="9"/>
  </connections>
  <aspectratio type="fixed"/>
  <svg:svg>
    <svg:path style="fill: #ffffff" d="M 6 4 C 8,4 8,7 8,9 C 7,9 5,9 4,9
C 4,7 4,4 6,4z"/>
    <svg:path style="stroke-width: 0.1; stroke: #000000" d="M 6 4 C 8,4
8,7 8,9 C 7,9 5,9 4,9 C 4,7 4,4 6,4"/>
  </svg:svg>
</shape>
 
---------------------------------------------------
I have not tried to understand .svg etc., so cannot comment on why one
works and the other does not! I would understand the .png as being
something to do with the release of dia, but it does seem that all .86
are not equal.

Regards

Mike Inggs



Karim A Nassar wrote:
> 
> > > - work on all major platforms, (Does this include Gnome 1.4;
> > >   anyone using Gnome 1.4 out there ?)
> > > - make available all the bugfixes since the last official
> > >   version (Dia 0.86 has had some serious problems with some
> > >   menu actions, see: Objects/Align/Equal Distance thread.
> > >   Are there any *users* out there ?)
> > > - contain less bugs/more features than the previous release
> > > - silence complaining about bugs, which got fixed month ago
> > > - be localized properly ?
> >
> > I think one of the biggest features would be increasing extensibility or
> > providing more and easier to find documentation on extending dia, be it
> > plugins or tools that work along side Dia.
> 
> I would like to vote for a shapes catalog/plugin scheme. I have tried to
> insert the Logic shapes into my (.86) install, and it does not work. I
> have sent this out to the list but recieved no correct answer. It seems
> that there are others of you that have created shapes and even shape
> libraries. Maybe a central repository for them?
> 
> If someone can help me get Logic shapes working, I will help maintain this
> aspect (provided others agree it is a good idea) :)
> 
> --Karim Nassar

-- 
Michael Inggs
Dept. Electrical Engineering, University of Cape Town
Private Bag, Rondebosch 7701, South Africa
Tel: +27 21 650 2799    Fax: +27 21 650 3465
http://rrsg.ee.uct.ac.za     http://rrsg.ee.uct.ac.za/URSI

Reply via email to