Robby Stephenson | 8 Jul 03:18 2008

Re: Question about plugins

Hi,

On Tuesday 24 June 2008, Jose Carlos Pereira wrote:
> I also started to use a  online  book  site  (commenting,  rating  etc),
> http://www.goodreads.com
>
> I would like to sync my tellico book list with the online collection.
>
> I'm using a plugin to submit the info of an individual book (via "update
> entry") the goodreads site.
>
> Is there:
>         + Any documentation on tellico plugins?
>           (namely, how do I send back info from the plugin to tellico?)

The only way the plugins work right now is to provide the results of a 
search in a format that Tellico can read, either it's own XML format, 
bibtex, MODS, or a few other text formats. 

Basically, it's just a script that gets passed a title, person, isbn, etc. 
on the command-line, runs the search, and returns the result on stdout.

>         + Any simple way of passing the entire book  collection  to  the
>           external plugin (batch sync instead of single book)?

Select all the books, and update them. Tellico isn't threaded, and it will 
run the script one at a time, so it's terribly inefficient, though.

Robby
(Continue reading)

Robby Stephenson | 10 Jul 06:19 2008

Re: copy-paste problem

On Sunday 15 June 2008, Doruk Fisek wrote:
>  When I mark and copy a text inside Tellico window, the text's put in
> the clipboard but not selected as default. As a result when I paste it
> into another application, the old clipboard item shows up.
>
>  Each time I copy a text, I have to manually select the text from
> klipper. Then I can use the text I copied from Tellico.

I've poked at it a bit. Copy/paste is so funky on unix/linux with the 
selection clipboard and the other clipboard, that I think I should probably 
leave it alone.

First of all, Tellico basically copies the copy/paste code from 
kapplication.cpp. The reason I don't just call those functions is because I 
have the editor window. When the editor window is open, I want copy/paste 
to operate on the selected text in the editor, _not_ in the main window. So 
basically it checks to see if the dialog is open, then activates the 
appropriate widget.

Everything seems to work right when selecting in the editor dialog.

So maybe the specific detail is that you're selecting in the entry view, in 
the lower right? From what I can tell, the HTML doesn't have a copy() slot, 
so nothing happens when you ctrl-v, i.e. nothing gets dumped to the global 
clipboard, only to the selection.

Does that sound right?

Robby
(Continue reading)

Robby Stephenson | 10 Jul 07:40 2008

Tellico 1.3.3 Released

Tellico 1.3.3 is available from http://periapsis.org/tellico/download/
md5: 6e08c3f96c5b2ca871b83dbaca41b2ae

Changelog:
* Fixed bug with file catalogs to properly match on file location
* Changed Arxiv fetcher to remove ID version number from results
* Updated drag-and-drop to allow HTTP urls, i.e. dragging bibtex file from 
browser.
* Updated Porbase in z39.50 server list.
* Fixed copy() for text selection in main entry view.

Comments, question, bugs, etc. to this mailing list. Thanks!
Robby 
Regis Boudin | 10 Jul 09:45 2008

Re: Tellico 1.3.3 Released

Hi Robby,

Thanks for the new release (and congratulations).

I will try to upload the package tonight before I go on holiday in Devon
and Cornwall for a full week tomorrow morning. Hopefully 1.3.3 will make
it to Lenny in time.

Thanks again,

Regis

On Thu, July 10, 2008 06:40, Robby Stephenson wrote:
> Tellico 1.3.3 is available from http://periapsis.org/tellico/download/
> md5: 6e08c3f96c5b2ca871b83dbaca41b2ae
>
> Changelog:
> * Fixed bug with file catalogs to properly match on file location
> * Changed Arxiv fetcher to remove ID version number from results
> * Updated drag-and-drop to allow HTTP urls, i.e. dragging bibtex file from
> browser.
> * Updated Porbase in z39.50 server list.
> * Fixed copy() for text selection in main entry view.
>
> Comments, question, bugs, etc. to this mailing list. Thanks!
> Robby
> _______________________________________________
> tellico-users mailing list
> tellico-users@...
> http://forge.novell.com/mailman/listinfo/tellico-users
(Continue reading)

Doruk Fisek | 10 Jul 10:00 2008
Picon

Re: copy-paste problem

Wed, 9 Jul 2008 21:19:37 -0700, Robby Stephenson <robby@...> :

> Everything seems to work right when selecting in the editor dialog.
> So maybe the specific detail is that you're selecting in the entry
> view, in the lower right?
Yep, that's true. I just tested it, since I rarely use the editor window
(always use the import functions to create the entries) I hadn't
noticed it.

Copy-paste works right in editor window but doesn't in entry view.

> From what I can tell, the HTML doesn't have a copy() slot, so nothing
> happens when you ctrl-v, i.e. nothing gets dumped to the global
> clipboard, only to the selection.
> Does that sound right?
If I understood it correctly, yes, that sounds right.

                   Doruk

--
FISEK INSTITUTE - http://www.fisek.org.tr
Doruk Fisek | 10 Jul 11:25 2008
Picon

Re: Tellico 1.3.3 Released

Wed, 9 Jul 2008 22:40:27 -0700, Robby Stephenson <robby@...> :

> * Fixed copy() for text selection in main entry view.
Yaay! It works!

                   Doruk

--
FISEK INSTITUTE - http://www.fisek.org.tr
Robby Stephenson | 10 Jul 15:50 2008

Re: Tellico 1.3.3 Released

On Thursday 10 July 2008, Regis Boudin wrote:
> Hi Robby,
>
> Thanks for the new release (and congratulations).
>
> I will try to upload the package tonight before I go on holiday in Devon
> and Cornwall for a full week tomorrow morning. Hopefully 1.3.3 will make
> it to Lenny in time.

Have a great holiday!

Robby
Norbert Nemec | 12 Jul 20:11 2008
Picon
Picon

Re: Tellico 1.3.3 Released

Robby Stephenson wrote:
> Tellico 1.3.3 is available from http://periapsis.org/tellico/download/
> md5: 6e08c3f96c5b2ca871b83dbaca41b2ae
>
> Changelog:
> * Fixed bug with file catalogs to properly match on file location
> * Changed Arxiv fetcher to remove ID version number from results
>   
Great. Thanks.

> * Updated drag-and-drop to allow HTTP urls, i.e. dragging bibtex file from 
> browser.
>   
Does not seem to work for me :-(

This is what I tried:

* open the abstract of a typical article in firefox, e.g. 
http://dx.doi.org/10.1103/PhysRevB.76.115419
* Switch "Article Options" to "View Citation(s) in BibTeX"
* Press "Go"
-> the bibtex file is opened directly in firefox
* drag the URL line from the browser onto Tellico
-> Tellico does not react at all :-(

-- When I drag the same URL to the KDE desktop, KDE asks for a file name 
and then saves the URL itself into that file (instead of the bibtex content)

-- When I do the same from KDE konqueror, Tellico does not react either.

(Continue reading)

Robby Stephenson | 12 Jul 21:53 2008

Re: Tellico 1.3.3 Released

On Saturday 12 July 2008, Norbert Nemec wrote:
> So, may it be that tellico expects the URL to end in .bib? In that case,
> it will not work for many of the common journals that offer bibtex
> export but use a URL without a file ending.
>
> Furthermore, it seems that firefox does drag-and-drop differently than
> KDE... :-(
>
> Perhaps, Tellico could just accept plain text per drag and drop and
> determine the type of the data automatically? That way, one could just
> drop a snippet of a bibtex file on Tellico to import that reference.
>
> Of course, in that case, it should also detect if the plain text does
> contain a URL which should then be opened and imported.

Thanks for poking at it. :) Tellico asks for the mime-type from the url and 
expects it to be text/x-bibtex or application/x-bibtex for bibtex files. So 
even it it doesn't end with .bib, if the http server reports a mimetype, it 
should work. 

For your example, when you select "open in firefox", the web server sends a 
text/plain type, which Tellico doesn't know what to do with. Using 
the "download to firefox" option sends a application/bibtex type, so it 
looks like I need to add that.

But evidently, not many servers use a bibtex mimetype. Not even Google 
scholar, which uses text/plain.

Konqueror and Firefox do handle drag/drop differently. One uses URLs as 
text, the other as a link. I tried to handle both, but you can see it 
(Continue reading)

Semi Gr | 13 Jul 02:30 2008
Picon

fetching data from IMDB

Hi,

looks like IMDB again changed the html code, and Tellico 1.3.3
doesn't fetch plot summary.
I played with the code and found out that the following change in imdbfetcher.cpp:
instead of
QRegExp plotRx(QString::fromLatin1("Plot (?:outline|summary):(.*)<[^/].*</"), false);
put
QRegExp plotRx(QString::fromLatin1("Plot:</h5>(.*)(</|\\|)"), false);
does the trick. The only problem is that if there is no plot summary you end up with
the text "add synopsis" as a plot summary in tellico. So it's not perfect, but it's better then
nothing.

Disclaimer: I'm not really good in C++ or regular expressions.

Semi


_______________________________________________
tellico-users mailing list
tellico-users@...
http://forge.novell.com/mailman/listinfo/tellico-users

Gmane