From nzeh at cs.dal.ca Sat Feb 6 18:25:00 2010 From: nzeh at cs.dal.ca (Norbert Zeh) Date: Sat Feb 6 18:25:36 2010 Subject: [Ipe-discuss] Patches for two small ipelet bugs Message-ID: <20100206172500.GN4193@cs.dal.ca> Hi Otfried, I noticed two bugs in align.lua: - Trying to set the skip for left-to-right and top-to-bottom distribution raises a lua error - Top-to-bottom distribution didn't set the skip right between the first two objects Both were easy one-line fixes. Patch is attached. Cheers, Norbert -------------- next part -------------- A non-text attachment was scrubbed... Name: align.patch Type: text/x-diff Size: 767 bytes Desc: not available Url : http://mail.cs.uu.nl/pipermail/ipe-discuss/attachments/20100206/8bca28dd/align.bin From t34www at googlemail.com Tue Feb 16 18:40:11 2010 From: t34www at googlemail.com (T T) Date: Tue Feb 16 18:46:24 2010 Subject: [Ipe-discuss] Re: Plot data extraction from PDF In-Reply-To: References: Message-ID: On 28 December 2009 15:49, T T wrote: > Hi, > > I'm in need of a tool that can extract XY data from (vector!) plots in > PDF documents. Failing to find such a tool I'm considering writing one > and Ipe looks attractive, because: > - it can read PDF files (with pdftoipe tool) > - it is scriptable with Lua and I happen to know this language a little bit > > As I'm unfamiliar with implementation and object hierarchy of Ipe, I > would appreciate some guidance in how to implement a plug-in with the > following methods: > (1) Coordinate system: establish the plot coordinate system from two > selected marks (if not given use canvas coordinate system) > (2) Line plot: get points from selected path(s), transform them to the > plot coordinate system and display in the text box > (3) Scatter plot: given a selected path, find all other paths that > differ only by translation and display "center of mass" points of > those paths in the text box. I implemented (1) and (2) from the above a couple of weeks ago but had no time to write about it earlier. Even though the implementation is quite basic at this point, I think it is quite usable already. I attach the resulting ipelet in hope that others find it useful as well. I would like to thank the author of Ipe for providing such a flexible tool. If not for Lua plug-in system, I would have never ventured into writing this sort of extension -- it would be just too time consuming. My thanks also go to Jan Hlavacek for his 'plots' ipelet, which proved very helpful in implementing coordinate system transformation. Although, 'digitize-plot' is intended mainly for vector plots, it can actually be used also for raster plots. Just insert an image with a plot into an Ipe document, put markers at interesting points, draw a path connecting them and the coordinates of this path can be then digitized as in the vector plot case. This is not an automated process, but majority of other software for that purpose is no different in this regard. Currently, only straight line type plots are supported, but I would like to add support for scatter plots as well when I find some spare time but I'm still stuck with how to implement (3). How can I compare if two objects/paths have the same structure and attributes except for their coordinates? It seems, that this would require a separate comparison code/routine for each object type, as I couldn't find any generic method for traversing object structure. Is that right? Also, what types of objects can I expect after pdf -> ipe conversion? I would like to focus only on those objects at first. Cheers, Tomek -------------- next part -------------- A non-text attachment was scrubbed... Name: digitize-plot.lua Type: application/octet-stream Size: 7528 bytes Desc: not available Url : http://mail.cs.uu.nl/pipermail/ipe-discuss/attachments/20100216/f9828ae9/digitize-plot.obj From shenpei at gmail.com Sat Feb 20 18:15:19 2010 From: shenpei at gmail.com (Ben Rose) Date: Sat Feb 20 18:15:30 2010 Subject: [Ipe-discuss] Compile Error ipe 7.0.10 Mac OS X 10.5 (Leopard) Message-ID: <8ddb81071002200915r6edb99b2t2efd4d70691b5a12@mail.gmail.com> It appears that I'm having a problem with the SONAME fix/addition while installing ipe 7.0.10 on Mac OS X 10.5 (Leopard). Here is the error that I am getting: bash-3.2$ make IPEPREFIX=/usr IPEFONTMAP=/Users/Talon/Downloads/ipe-7.0.10/fontmaps/urw-fontmap.xml make --directory=ipelib all mkdir -p ../../build/lib g++ -dynamiclib -Wl,-soname,libipe.so.7.0.10 -o ../../build/lib/libipe.so.7.0.10 ../../build/obj/ipelib/ipebase.o ../../build/obj/ipelib/ipeplatform.o ../../build/obj/ipelib/ipegeo.o ../../build/obj/ipelib/ipexml.o ../../build/obj/ipelib/ipeattributes.o ../../build/obj/ipelib/ipebitmap.o ../../build/obj/ipelib/ipedct.o ../../build/obj/ipelib/ipeshape.o ../../build/obj/ipelib/ipegroup.o ../../build/obj/ipelib/ipeimage.o ../../build/obj/ipelib/ipetext.o ../../build/obj/ipelib/ipepath.o ../../build/obj/ipelib/ipereference.o ../../build/obj/ipelib/ipeobject.o ../../build/obj/ipelib/ipefactory.o ../../build/obj/ipelib/ipestdstyles.o ../../build/obj/ipelib/ipeiml.o ../../build/obj/ipelib/ipepage.o ../../build/obj/ipelib/ipepainter.o ../../build/obj/ipelib/ipepdfparser.o ../../build/obj/ipelib/ipepdfwriter.o ../../build/obj/ipelib/ipepswriter.o ../../build/obj/ipelib/ipestyle.o ../../build/obj/ipelib/ipesnap.o ../../build/obj/ipelib/ipeutils.o ../../build/obj/ipelib/ipelatex.o ../../build/obj/ipelib/ipedoc.o -lz *ld: unknown option: -soname collect2: ld returned 1 exit status make[1]: *** [../../build/lib/libipe.so.7.0.10] Error 1 make: *** [ipelib] Error 2* If I understand this correctly, my system isn't recognizing the -soname option. Any help that can be offered will be greatly appreciated. Also, has anyone else successfully compiled ipe 7.0.10 on Mac OS X 10.5 (Leopard)? Thanks TW Talon -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.cs.uu.nl/pipermail/ipe-discuss/attachments/20100220/d1d32e01/attachment.htm From gwenael.cleon at gmail.com Sat Feb 20 20:18:12 2010 From: gwenael.cleon at gmail.com (=?iso-8859-1?Q?Gwena=EBl_Cl=E9on?=) Date: Sat Feb 20 20:18:25 2010 Subject: [Ipe-discuss] Compile Error ipe 7.0.10 Mac OS X 10.5 (Leopard) In-Reply-To: <8ddb81071002200915r6edb99b2t2efd4d70691b5a12@mail.gmail.com> References: <8ddb81071002200915r6edb99b2t2efd4d70691b5a12@mail.gmail.com> Message-ID: <04284C43-C8B1-4051-B207-037F725C8670@gmail.com> Hello, I experienced exactly the same problem with 7.0.10 on Snow Leopard (10.6). I wasn't able to fix it so compiled the 7.0.9 version. Anyone has an idea ? Gwenael Le 20 f?vr. 2010 ? 18:15, Ben Rose a ?crit : > It appears that I'm having a problem with the SONAME fix/addition while installing ipe 7.0.10 on Mac OS X 10.5 (Leopard). Here is the error that I am getting: > > bash-3.2$ make IPEPREFIX=/usr IPEFONTMAP=/Users/Talon/Downloads/ipe-7.0.10/fontmaps/urw-fontmap.xml > make --directory=ipelib all > mkdir -p ../../build/lib > g++ -dynamiclib -Wl,-soname,libipe.so.7.0.10 -o ../../build/lib/libipe.so.7.0.10 ../../build/obj/ipelib/ipebase.o ../../build/obj/ipelib/ipeplatform.o ../../build/obj/ipelib/ipegeo.o ../../build/obj/ipelib/ipexml.o ../../build/obj/ipelib/ipeattributes.o ../../build/obj/ipelib/ipebitmap.o ../../build/obj/ipelib/ipedct.o ../../build/obj/ipelib/ipeshape.o ../../build/obj/ipelib/ipegroup.o ../../build/obj/ipelib/ipeimage.o ../../build/obj/ipelib/ipetext.o ../../build/obj/ipelib/ipepath.o ../../build/obj/ipelib/ipereference.o ../../build/obj/ipelib/ipeobject.o ../../build/obj/ipelib/ipefactory.o ../../build/obj/ipelib/ipestdstyles.o ../../build/obj/ipelib/ipeiml.o ../../build/obj/ipelib/ipepage.o ../../build/obj/ipelib/ipepainter.o ../../build/obj/ipelib/ipepdfparser.o ../../build/obj/ipelib/ipepdfwriter.o ../../build/obj/ipelib/ipepswriter.o ../../build/obj/ipelib/ipestyle.o ../../build/obj/ipelib/ipesnap.o ../../build/obj/ipelib/ipeutils.o ../../build/obj/ipelib/ipelatex.o ../../build/obj/ipelib/ipedoc.o -lz > ld: unknown option: -soname > collect2: ld returned 1 exit status > make[1]: *** [../../build/lib/libipe.so.7.0.10] Error 1 > make: *** [ipelib] Error 2 > > If I understand this correctly, my system isn't recognizing the -soname option. Any help that can be offered will be greatly appreciated. > > Also, has anyone else successfully compiled ipe 7.0.10 on Mac OS X 10.5 (Leopard)? > > Thanks > > TW Talon > _______________________________________________ > Ipe-discuss mailing list > Ipe-discuss@cs.uu.nl > https://mail.cs.uu.nl/mailman/listinfo/ipe-discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.cs.uu.nl/pipermail/ipe-discuss/attachments/20100220/ca6d937c/attachment.htm From otfried at ipe.airpost.net Sun Feb 21 13:40:16 2010 From: otfried at ipe.airpost.net (Otfried Cheong) Date: Sun Feb 21 13:40:27 2010 Subject: [Ipe-discuss] Compile Error ipe 7.0.10 Mac OS X 10.5 (Leopard) In-Reply-To: <8ddb81071002200915r6edb99b2t2efd4d70691b5a12@mail.gmail.com> References: <8ddb81071002200915r6edb99b2t2efd4d70691b5a12@mail.gmail.com> Message-ID: <4B8129B0.4000808@ipe.airpost.net> Ben Rose wrote: > It appears that I'm having a problem with the SONAME fix/addition while > installing ipe 7.0.10 on Mac OS X 10.5 (Leopard). Doesn't Mac OS use the GNU Linker if they use g++? Can you change in src/common.mak the line: soname = -Wl,-soname,lib$1.so.$(IPEVERS) to soname = and see if this works? Otfried From marc.glisse at normalesup.org Sun Feb 21 14:21:55 2010 From: marc.glisse at normalesup.org (Marc Glisse) Date: Sun Feb 21 14:22:03 2010 Subject: [Ipe-discuss] Compile Error ipe 7.0.10 Mac OS X 10.5 (Leopard) In-Reply-To: <4B8129B0.4000808@ipe.airpost.net> References: <8ddb81071002200915r6edb99b2t2efd4d70691b5a12@mail.gmail.com> <4B8129B0.4000808@ipe.airpost.net> Message-ID: On Sun, 21 Feb 2010, Otfried Cheong wrote: > Ben Rose wrote: >> It appears that I'm having a problem with the SONAME fix/addition while >> installing ipe 7.0.10 on Mac OS X 10.5 (Leopard). > > Doesn't Mac OS use the GNU Linker if they use g++? On most OS, g++ uses the native linker by default. On solaris you probably need to replace -soname with -h (although the latest versions of opensolaris may understand -soname). I never used a mac, but indeed nothing or -install_name $(IPELIBDIR)/lib$1.so.$(IPEVERS) seem like the first things to try. -- Marc Glisse