From fortin at nerim.net Mon Apr 10 16:31:56 2006 From: fortin at nerim.net (Denis Fortin) Date: Mon, 10 Apr 2006 22:31:56 +0200 Subject: [Alexandria-list] [Patch] Template based export Message-ID: <1144701116.3645.15.camel@naix> Hi, Here's a patch that uses erb to do template based export formats and an example implementing format requested in #1809. With this patch writing an export format will be done like this : write a simple .yaml describing your export format, and write an erb to do the export. Put those files under .alexandria/.templates or /usr/share/alexandria/templates and your export format will appear after a restart in the export list. Denis -------------- next part -------------- A non-text attachment was scrubbed... Name: export_template.patch Type: text/x-patch Size: 3371 bytes Desc: not available Url : http://rubyforge.org/pipermail/alexandria-list/attachments/20060410/3b52aa13/attachment.bin -------------- next part -------------- --- !ruby/object:Alexandria::ExportTemplate name: 1809 export format ext: "txt" template: "1809.erb" -------------- next part -------------- <%= self.name %> <% l2 = self.sort do |booka, bookb| autha = booka.authors.sort authb = bookb.authors.sort if autha.at(0)==nil && authb.at(0)!=nil -1 else if authb.at(0)==nil && autha.at(0)==nil 1 else autha.at(0) <=> authb.at(0) end end end l2.each do |book| %> <%= book.authors.at(0) %> : <%= book.title %> <% end %> From yorvik.ubunto at googlemail.com Wed Apr 12 06:32:39 2006 From: yorvik.ubunto at googlemail.com (Yorvik) Date: Wed, 12 Apr 2006 11:32:39 +0100 Subject: [Alexandria-list] Instaling Ruby Zoom Message-ID: <443CD747.8030206@googlemail.com> I've been trying to install Ruby-Zoom, on ubuntu 5.10 for the past few days but to avail. Having trawled the net for info I believe I've installed all the appropriate packages. But I always get the following. steve at Ubuntu:~$ sudo dpkg -i rubyzoom_0.2.0-2_i386.deb Selecting previously deselected package rubyzoom. (Reading database ... 98724 files and directories currently installed.) Unpacking rubyzoom (from rubyzoom_0.2.0-2_i386.deb) ... Setting up rubyzoom (0.2.0-2) ... syntax error in control file: from Ruby scripts. at /usr/sbin/install-docs line 680, line 5. dpkg: error processing rubyzoom (--install): subprocess post-installation script returned error exit status 9 Errors were encountered while processing: rubyzoom steve at ubuntu:~$ -- <>< Cheers SteVe From roffe at extern.uio.no Wed Apr 12 06:30:24 2006 From: roffe at extern.uio.no (=?iso-8859-1?Q?Rolf_Marvin_B=F8e_Lindgren?=) Date: Wed, 12 Apr 2006 12:30:24 +0200 Subject: [Alexandria-list] Announce: Alexandria 0.6.1 for MacOS X In-Reply-To: <1be7247c0603140848k7f04a618o792e06de9587a576@mail.gmail.com> (Laurent Sansonetti's message of "Tue, 14 Mar 2006 17:48:32 +0100") References: <20060310235821.119FF1D008@fsck.waldner.priv.at> <1be7247c0603140848k7f04a618o792e06de9587a576@mail.gmail.com> Message-ID: "Laurent Sansonetti" writes: > Well, I should cleanup the Mac OS X build process, as it currently > requires some dependencies located on hardcoded paths. > > In the meantime, you can still try a build: > > http://www.dhertog.be/~lrz/alexandria_mac_builds/ those are ancient versions. please find the latest and greatest cvs build of Alexandia for MacOS X (intel) here: http://www.roffe.com/mac/alexandria.php not much fiddling was required. -- Rolf Lindgren http://www.roffe.com/ roffe at extern.uio.no http://www.dignus.no/ From synergism at gmail.com Wed Apr 12 07:16:03 2006 From: synergism at gmail.com (Ben Armstrong) Date: Wed, 12 Apr 2006 08:16:03 -0300 Subject: [Alexandria-list] Instaling Ruby Zoom In-Reply-To: <443CD747.8030206@googlemail.com> References: <443CD747.8030206@googlemail.com> Message-ID: <3f1ae6620604120416n1b9ac812ob8423d708b44ac74@mail.gmail.com> Yorvik, On 4/12/06, Yorvik wrote: > I've been trying to install Ruby-Zoom, on ubuntu 5.10 for the past few > days but to avail. Having trawled the net for info I believe I've > installed all the appropriate packages. But I always get the following. I assume you used the package found here: http://www.stoffel.org/john/sources/alexandria/ The problem is here: # install-docs -i /usr/share/doc-base/rubyzoom syntax error in control file: from Ruby scripts. at /usr/sbin/install-docs line 643, line 5. That file contains: Document: rubyzoom Title: Debian Ruby/ZOOM Manual Author: Laurent Sansonetti Abstract: This manual describes the Ruby/ZOOM ABI and how it is called from Ruby scripts. Section: unknown ... Line 5 is a continuation of the "Abstract:" field, yet it does not begin with a space, so it is seen as a new control field. However, since it is not a recognized control field name followed by a colon, a syntax error is thrown. As a workaround, if you edit /usr/share/doc-base/rubyzoom and add a leading space to this line, (i.e. " from Ruby scripts.") and then dpkg --configure --pending, the installation will finish successfully. The maintainer probably never discovered this bug in his doc-base control file because he did not have the optional "doc-base" package installed on his system, and so install-docs was never called when he tested it. This is why it is vitally important to know what each and every line of a Debian package does, and make sure your testing exercises all functionality. Ben From roffe at extern.uio.no Wed Apr 12 08:01:44 2006 From: roffe at extern.uio.no (=?iso-8859-1?Q?Rolf_Marvin_B=F8e_Lindgren?=) Date: Wed, 12 Apr 2006 14:01:44 +0200 Subject: [Alexandria-list] Announce: Alexandria 0.6.1 for MacOS X In-Reply-To: (Rolf Marvin =?iso-8859-1?Q?B=F8e?= Lindgren's message of "Wed, 12 Apr 2006 12:30:24 +0200") References: <20060310235821.119FF1D008@fsck.waldner.priv.at> <1be7247c0603140848k7f04a618o792e06de9587a576@mail.gmail.com> Message-ID: Rolf Marvin B?e Lindgren writes: > please find the latest and greatest cvs build of Alexandia for MacOS X > (intel) here: > > http://www.roffe.com/mac/alexandria.php > > not much fiddling was required. there are bugs. they don't hamper normal functioning but affect some of the more esoteric functions. 1. Just annoying: when running from the debugger, the debugger says: [Session started at 2006-04-12 13:39:35 +0200.] 2006-04-12 13:39:37.064 Alexandria[14892] TableView(0x14c3af0) - NSView not correctly initialized. Did you forget to call super? 2006-04-12 13:39:37.072 Alexandria[14892] TableView(0x14cf880) - NSView not correctly initialized. Did you forget to call super? 2006-04-12 13:39:37.120 Alexandria[14892] TableView(0x494c800) - NSView not correctly initialized. Did you forget to call super? 2006-04-12 13:39:37.138 Alexandria[14892] Matrix(0x1454c90) - NSView not correctly initialized. Did you forget to call super? 2006-04-12 13:39:37.176 Alexandria[14892] RatingField(0x492c2f0) - NSView not correctly initialized. Did you forget to call super? any clues? 2. Adding providers doesn't work: Go to preferences, select the "Providers" tab in the "Providers Preference" pane, hit "+" and Alexandria goes down. The debugger says: selected_library -> index view_as -> 0 /usr/local/src/alexandria-cvs/alexandria/build/Development/Alexandria.app/Contents/Resources/alexandria/macui/PreferencesController.rb:56:in `NSApplicationMain': NSApplicationMain - RBException_NoMethodError - undefined method `new' for nil:NilClass (OSX::OCException) from /usr/local/src/alexandria-cvs/alexandria/build/Development/Alexandria.app/Contents/Resources/alexandria/macui.rb:40:in `main' from /usr/local/src/alexandria-cvs/alexandria/build/Development/Alexandria.app/Contents/Resources/main.rb:54 Alexandria has exited with status 1. Any clues? Thank you, -- Rolf Lindgren http://www.roffe.com/ roffe at extern.uio.no http://www.dignus.no/ From laurent.sansonetti at gmail.com Wed Apr 12 08:49:03 2006 From: laurent.sansonetti at gmail.com (Laurent Sansonetti) Date: Wed, 12 Apr 2006 14:49:03 +0200 Subject: [Alexandria-list] Announce: Alexandria 0.6.1 for MacOS X In-Reply-To: References: <20060310235821.119FF1D008@fsck.waldner.priv.at> <1be7247c0603140848k7f04a618o792e06de9587a576@mail.gmail.com> Message-ID: <1be7247c0604120549u50b12052lfe3c57c97feca8d2@mail.gmail.com> Hi Rolf, On 4/12/06, Rolf Marvin B?e Lindgren wrote: > Rolf Marvin B?e Lindgren writes: > > > please find the latest and greatest cvs build of Alexandia for MacOS X > > (intel) here: > > > > http://www.roffe.com/mac/alexandria.php > > > > not much fiddling was required. > Great that you could build it :) Why not universal by the way? Most of Mac users do not have an Intel machine yet :-) > there are bugs. they don't hamper normal functioning but affect some of > the more esoteric functions. > > > 1. Just annoying: > > when running from the debugger, the debugger says: > > [Session started at 2006-04-12 13:39:35 +0200.] > 2006-04-12 13:39:37.064 Alexandria[14892] TableView(0x14c3af0) - NSView not correctly initialized. Did you forget to call super? > 2006-04-12 13:39:37.072 Alexandria[14892] TableView(0x14cf880) - NSView not correctly initialized. Did you forget to call super? > 2006-04-12 13:39:37.120 Alexandria[14892] TableView(0x494c800) - NSView not correctly initialized. Did you forget to call super? > 2006-04-12 13:39:37.138 Alexandria[14892] Matrix(0x1454c90) - NSView not correctly initialized. Did you forget to call super? > 2006-04-12 13:39:37.176 Alexandria[14892] RatingField(0x492c2f0) - NSView not correctly initialized. Did you forget to call super? > > any clues? > RubyCocoa bug, will be fixed in next release. > > 2. Adding providers doesn't work: > > Go to preferences, select the "Providers" tab in the "Providers > Preference" pane, hit "+" and Alexandria goes down. > > The debugger says: > > selected_library -> index > view_as -> 0 > /usr/local/src/alexandria-cvs/alexandria/build/Development/Alexandria.app/Contents/Resources/alexandria/macui/PreferencesController.rb:56:in `NSApplicationMain': NSApplicationMain - RBException_NoMethodError - undefined method `new' for nil:NilClass (OSX::OCException) > from /usr/local/src/alexandria-cvs/alexandria/build/Development/Alexandria.app/Contents/Resources/alexandria/macui.rb:40:in `main' > from /usr/local/src/alexandria-cvs/alexandria/build/Development/Alexandria.app/Contents/Resources/main.rb:54 > > Alexandria has exited with status 1. > > Any clues? > Not implemented yet I guess. Also please do not announce anything right now, the Cocoa port is not finished yet. There are some things to do, and I also would like to re-write the icon view (the current one based on NSMatrix sucks too much). Laurent From laurent.sansonetti at gmail.com Wed Apr 12 08:51:44 2006 From: laurent.sansonetti at gmail.com (Laurent Sansonetti) Date: Wed, 12 Apr 2006 14:51:44 +0200 Subject: [Alexandria-list] [Patch] Template based export In-Reply-To: <1144701116.3645.15.camel@naix> References: <1144701116.3645.15.camel@naix> Message-ID: <1be7247c0604120551h394bc2e4m23bfd52daafcca4c@mail.gmail.com> Hi Denis, On 4/10/06, Denis Fortin wrote: > Hi, > > Here's a patch that uses erb to do template based export formats and an > example implementing format requested in #1809. > > With this patch writing an export format will be done like this : > write a simple .yaml describing your export format, and write an erb to > do the export. > Put those files under .alexandria/.templates > or /usr/share/alexandria/templates and your export format will appear > after a restart in the export list. > Sounds pretty cool, I will merge it as soon as possible, for the next release. Please tell me if I forget about it. Thanks! Laurent From yorvik.ubunto at googlemail.com Wed Apr 12 12:55:11 2006 From: yorvik.ubunto at googlemail.com (Yorvik) Date: Wed, 12 Apr 2006 17:55:11 +0100 Subject: [Alexandria-list] Instaling Ruby Zoom In-Reply-To: <3f1ae6620604120416n1b9ac812ob8423d708b44ac74@mail.gmail.com> References: <443CD747.8030206@googlemail.com> <3f1ae6620604120416n1b9ac812ob8423d708b44ac74@mail.gmail.com> Message-ID: <443D30EF.8090603@googlemail.com> Ben Armstrong wrote: > I assume you used the package found here: > > http://www.stoffel.org/john/sources/alexandria/ > Yep > As a workaround, if you edit /usr/share/doc-base/rubyzoom and add a > leading space to this line, (i.e. " from Ruby scripts.") and then dpkg > --configure --pending, the installation will finish successfully. > This solved that problem. Thanks I then had to add /usr/share/doc/rubyzoom/xhtml/ to get the installation to complete. Installing alexandria 0.6.0 package from http://www.stoffel.org/john/sources/alexandria/ I had the British Library available. Unfortunately 0.6.1 the 'update' offered by ubuntu doesn't appear to see rubyzoom, so the z39.50 providers don't appear. Next problem. How do I know if the program is looking at the British Library database, as it doesn't appear to be finding any more books then it did with out rubyzoom. - - <>< Cheers SteVe From fortin at nerim.net Thu Apr 13 15:22:27 2006 From: fortin at nerim.net (Denis Fortin) Date: Thu, 13 Apr 2006 21:22:27 +0200 Subject: [Alexandria-list] [Patch] Template based export In-Reply-To: <1be7247c0604120551h394bc2e4m23bfd52daafcca4c@mail.gmail.com> References: <1144701116.3645.15.camel@naix> <1be7247c0604120551h394bc2e4m23bfd52daafcca4c@mail.gmail.com> Message-ID: <1144956147.8167.8.camel@naix> Le mercredi 12 avril 2006 ? 14:51 +0200, Laurent Sansonetti a ?crit : > Hi Denis, > > On 4/10/06, Denis Fortin wrote: > > Hi, > > > > Here's a patch that uses erb to do template based export formats and an > > example implementing format requested in #1809. > > > > With this patch writing an export format will be done like this : > > write a simple .yaml describing your export format, and write an erb to > > do the export. > > Put those files under .alexandria/.templates > > or /usr/share/alexandria/templates and your export format will appear > > after a restart in the export list. > > > > Sounds pretty cool, I will merge it as soon as possible, for the next > release. Please tell me if I forget about it. > > Thanks! > Laurent I should add that this is not meant to be used in real stable export format (there's no i18n of the text entry), but by users who wants to use a custom export format while staying up to date with mainline. Denis From roffe at extern.uio.no Sat Apr 15 10:48:50 2006 From: roffe at extern.uio.no (=?iso-8859-1?Q?Rolf_Marvin_B=F8e_Lindgren?=) Date: Sat, 15 Apr 2006 16:48:50 +0200 Subject: [Alexandria-list] Announce: Alexandria 0.6.1 for MacOS X In-Reply-To: <1be7247c0604120549u50b12052lfe3c57c97feca8d2@mail.gmail.com> (Laurent Sansonetti's message of "Wed, 12 Apr 2006 14:49:03 +0200") References: <20060310235821.119FF1D008@fsck.waldner.priv.at> <1be7247c0603140848k7f04a618o792e06de9587a576@mail.gmail.com> <1be7247c0604120549u50b12052lfe3c57c97feca8d2@mail.gmail.com> Message-ID: (I'm keeping this off the list as it's not of much general interest) "Laurent Sansonetti" writes: > Great that you could build it :) Why not universal by the way? Most of > Mac users do not have an Intel machine yet :-) I've looked into it. one problem is yazlib. it's not trivial to compile them universally. > > 2. Adding providers doesn't work: > > > > Go to preferences, select the "Providers" tab in the "Providers > > Preference" pane, hit "+" and Alexandria goes down. > > > > The debugger says: > > > > selected_library -> index > > view_as -> 0 > > /usr/local/src/alexandria-cvs/alexandria/build/Development/Alexandria.app/Contents/Resources/alexandria/macui/PreferencesController.rb:56:in `NSApplicationMain': NSApplicationMain - RBException_NoMethodError - undefined method `new' for nil:NilClass (OSX::OCException) > > from /usr/local/src/alexandria-cvs/alexandria/build/Development/Alexandria.app/Contents/Resources/alexandria/macui.rb:40:in `main' > > from /usr/local/src/alexandria-cvs/alexandria/build/Development/Alexandria.app/Contents/Resources/main.rb:54 > > > > Alexandria has exited with status 1. > > > > Any clues? > > > > Not implemented yet I guess. shucks. I'd very much like to be able to search the Norwegian university libraries. they seem to have the kind of access that Alexandria needs. > Also please do not announce anything right now, the Cocoa port is not > finished yet. There are some things to do, and I also would like to > re-write the icon view (the current one based on NSMatrix sucks too > much). OK. I'll keep trying to make my own builds. 'part from that, Alexandria seems to be a wonderful program already, with a lot of promise. -- Rolf Lindgren http://www.roffe.com/ roffe at extern.uio.no http://www.dignus.no/ From bob.paddock at gmail.com Sat Apr 29 11:42:15 2006 From: bob.paddock at gmail.com (Bob Paddock) Date: Sat, 29 Apr 2006 11:42:15 -0400 Subject: [Alexandria-list] Alexandria just crashed Permission denied Message-ID: <200604291142.15109.bob.paddock@gmail.com> I am trying to add the book '0-9641153-4-4' to which I get a Permission Denied. Don't know why? Everything looks correct as far as owner/group, trying to add it to my own account. After that didn't work I hit 'New' and that resulted in this crash. bob at bob ~/.alexandria $ alexandria /usr/lib/ruby/site_ruby/1.8/alexandria/ui/glade_base.rb: line 26 Gtk-CRITICAL **:gtk_tree_view_column_cell_layout_pack_start: assertion `! gtk_tree_view_column_get_cell_info (column, cell)' failed After that didn't work I hit 'New' and that resulted in this crash. ----------------------- Alexandria just crashed ----------------------- Timestamp: Sat Apr 29 11:34:41 EDT 2006 Message: Permission denied - /home/bob/.alexandria/Untitled 1 Backtrace: /usr/lib/ruby/1.8/fileutils.rb:243:in `mkdir' /usr/lib/ruby/1.8/fileutils.rb:243:in `fu_mkdir' /usr/lib/ruby/1.8/fileutils.rb:217:in `mkdir_p' /usr/lib/ruby/1.8/fileutils.rb:215:in `mkdir_p' /usr/lib/ruby/1.8/fileutils.rb:201:in `mkdir_p' /usr/lib/ruby/site_ruby/1.8/alexandria/library.rb:51:in `load' /usr/lib/ruby/site_ruby/1.8/alexandria/ui/main_app.rb:724:in `initialize_ui' /usr/lib/ruby/site_ruby/1.8/alexandria/ui.rb:42:in `main' /usr/lib/ruby/site_ruby/1.8/alexandria.rb:66:in `main' /usr/bin/alexandria:10 Release: 0.6.1 Uname -a: Linux bob 2.6.16-gentoo-r3 #1 PREEMPT Sun Apr 23 11:06:21 EDT 2006 i686 AMD Athlon(tm) XP 1800+ GNU/Linux -- Please report this dump to 'alexandria-list at rubyforge.org' with some additional information, such as the description of the crash and the steps to reproduce it (if it's possible). bob at bob ~/.alexandria $