On Wed, 31 May 2000, Hans Breuer wrote:
> plug-ins/wpg/wpg_defs.h - WPG Definitions
> plug-ins/wpg/wpg.c - WordPerfect Graphics Metafile Export.
> This export filter generates WPG 1.0 (as used since
> WordPerfect 5.1). It is tested with WinWord 97 and
> Designer 4.1; but I'm expecting it to work with
> WordPerfect for Linux as well.
> Every renderer function is implemented, only the bezier
> functions produce some strange graphical effects, because
> WPG's Poly Curve appears not to be compatible with Dia's
> Bezier - or I haven't understood it yet.
[snip]
>
> It would be nice if someone could compile and test the first two
> filters on Linux.
I am still looking through the plug-ins, but I can see one obvious problem
in the WPG one. Under most unix C compilers, structure members are
aligned, so the WPGHead32 structure will not be the same size all the
time:
typedef struct {
guint8 Type;
guint8 Dummy;
guint32 Size;
} WPGHead32;
at least under linux, an extra 2 bytes of padding will go in between the
Dummy and Size members. This means that you can't just write the
structure to the file directly. I guess this wasn't a problem under
win32, as it doesn't align structure members.
>
> Due to it's size (20K) the archive is not attached, but available at:
>
> http://hans.breuer.org/dia/plug-ins-2000-05-31.zip
>
>
> Have Fun,
> Hans
>
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/