Re: commit: PNG snapshots of MathML in no MathML plugin.

From: <msevior_at_physics.unimelb.edu.au>
Date: Sat Jan 29 2005 - 11:21:25 CET

>
> Hi,
>
> It does not work on my linux box:
>
> [MathView] *** Info[2:2]: parsing time: 3ms
> [MathView] *** Warning[1:2]: duplicate `postfix' form for operator `&'
> in dictionary (ignored)
> [MathView] *** Warning[1:2]: duplicate `infix' form for operator `&' in
> dictionary (ignored)
> [MathView] *** Warning[1:2]: duplicate `infix' form for operator
> `&#8854;' in dictionary (ignored)
> [MathView] *** Warning[1:2]: duplicate `infix' form for operator
> `&#8853;' in dictionary (ignored)
> [MathView] *** Warning[1:2]: duplicate `infix' form for operator
> `&#8720;' in dictionary (ignored)
> [MathView] *** Warning[1:2]: duplicate `infix' form for operator
> `&#8855;' in dictionary (ignored)
> [MathView] *** Warning[1:2]: duplicate `infix' form for operator
> `&#8897;' in dictionary (ignored)
> [MathView] *** Warning[1:2]: duplicate `infix' form for operator
> `&#8896;' in dictionary (ignored)
> [MathView] *** Warning[1:2]: duplicate `infix' form for operator
> `&#8857;' in dictionary (ignored)
> [MathView] *** Warning[1:2]: duplicate `postfix' form for operator `!'
> in dictionary (ignored)
> DataID val =/home/msevior/abidir/gnome-cvs/gtkmathview/tests/action4.xml
> [MathView] *** Info[2:2]: parsing time: 0ms
> [MathView] *** Info[2:2]: build time: 0ms
> AbiWord-2.4: ../../../src/common/SmartPtr.hh:36: P*
> SmartPtr<P>::operator->() const [with P = BoxMLNamespaceContext]:
> Assertion `ptr' failed.
> Abandon
>

Try building GtkMathView with --enable-pipe.

I know Luca has said that the magic configure line I used is not
neccessary but I couldn;t get things to work until I used it.

Good Luck,

Martin

> Le samedi 29 janvier 2005 Ã 20:03 +1100, msevior@physics.unimelb.edu.au
> a écrit :
>> CVS:
>> ----------------------------------------------------------------------
>> CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
>> CVS:
>> CVS: Committing in .
>> CVS:
>> CVS: Modified Files:
>> CVS: tools/abimathview/plugin.m4
>> CVS: tools/abimathview/xp/AbiMathView.cpp
>> CVS: tools/abimathview/xp/AbiMathView.h
>> CVS: tools/abimathview/xp/gr_Abi_CharArea.cpp
>> CVS: tools/abimathview/xp/gr_Abi_ColorArea.cpp
>> CVS: tools/abimathview/xp/gr_Abi_DefaultShaper.cpp
>> CVS: tools/abimathview/xp/gr_Abi_GlyphArea.cpp
>> CVS: tools/abimathview/xp/gr_Abi_InkArea.cpp
>> CVS: tools/abimathview/xp/gr_Abi_MathGraphicDevice.cpp
>> CVS: tools/abimathview/xp/gr_Abi_RenderingContext.cpp
>> CVS: tools/abimathview/xp/gr_Abi_StandardSymbolsShaper.cpp
>> CVS:
>> ----------------------------------------------------------------------
>> Code to make PNG snapshots of Math.
>>
>> CVS:
>> ----------------------------------------------------------------------
>> CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
>> CVS:
>> CVS: Committing in .
>> CVS:
>> CVS: Modified Files:
>> CVS: src/af/gr/unix/gr_UnixGraphics.cpp
>> CVS: src/af/gr/unix/gr_UnixImage.cpp
>> CVS: src/af/gr/xp/gr_EmbedManager.cpp
>> CVS: src/af/gr/xp/gr_EmbedManager.h src/af/xap/xp/xad_Document.h
>> CVS: src/af/xap/xp/xap_App.cpp src/af/xap/xp/xap_App.h
>> CVS: src/text/fmt/xp/fp_MathRun.cpp src/text/fmt/xp/fp_MathRun.h
>> CVS: src/text/fmt/xp/fv_View.cpp src/text/ptbl/xp/pd_Document.cpp
>> CVS: src/text/ptbl/xp/pd_Document.h src/wp/ap/unix/ap_UnixApp.cpp
>> CVS: src/wp/ap/unix/ap_UnixApp.h
>> CVS: src/wp/impexp/xp/ie_exp_AbiWord_1.cpp
>> CVS:
>> ----------------------------------------------------------------------
>> PNG snapshotting code for MathML
>>
>>
>> OK this basically works now. AbiWord's without the mathML plugin get
>> a PNG snapshot in it's place.
>>
>> See attached file for an example.
>>
>> There are a couple of things that need fixing.
>>
>> 1. The snapshot doesn;t zoom correctly.
>> 2. The Ascent/descent of the snapshot is wrong. Basically the descent is
>> always zero.
>>
>> Both these can be fixed pretty easily and this code can be easily
>> applied
>> to any other embeddable plugin we write.
>>
>> Cheers!
>>
>> Martin
>
>
Received on Sat Jan 29 11:22:30 2005

This archive was generated by hypermail 2.1.8 : Sat Jan 29 2005 - 11:22:30 CET