WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: abiword spellcheck and plugins  (Read 3000 times)

Offline aplannan

  • Jr. Member
  • **
  • Posts: 70
abiword spellcheck and plugins
« on: March 25, 2010, 03:15:42 PM »
Using abiword as a word processor in TC 2.8.1 Would like to enable spellchecking. Is this just a matter of installing another tcz? Also, I have the abiword plugin tcz installed. Many of the plugins don't seem to work (GDict, Google Search, Wiki Encyclopedia) I'm thinking it may be due to the fact that I use opera, and abiword doesn't recognize opera as a browser. Does anyone know how to configure this, some of the plugins look handy. Thanks

andy

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: abiword spellcheck and plugins
« Reply #1 on: March 25, 2010, 04:08:59 PM »
The only plugins I tested were pdf and some of the image format ones. I don't know about spellcheck.
If you start abiword from the console, and try one of the browser-related plugins, any messages?
The only barriers that can stop you are the ones you create yourself.

Offline aplannan

  • Jr. Member
  • **
  • Posts: 70
Re: abiword spellcheck and plugins
« Reply #2 on: March 26, 2010, 09:23:25 PM »
Thanks for replying, No, no messages when I start abiword from a terminal (it was a good idea). Hmmm. I may install firefox just to see if they work with a more common browser. If not I might look into some of the config options with abiword. Maybe I can recompile it with the features I'm interested in.

Thanks again
Andy

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: abiword spellcheck and plugins
« Reply #3 on: March 27, 2010, 06:36:50 AM »
I had a quick look at the source. At least the main abiword has three methods for opening urls, decided on compile-time and of course 100% undocumented..

If gnome is available, use a function in libgnome. If gtk >= 2.14, use gtk's open_uri. Else try from a list of FOSS browsers.

What sucks in this combo, and is pretty much undocumented, is that gtk's open_uri doesn't do zat without gvfs. I'm not sure if this is a compile-time dependency of gtk, or if it would be enough to install gvfs.tcz runtime.


Looks like I'll have to modify it for the next build, to force it to use the list and add opera there.

edit: well, it works without gvfs if firefox is installed. I see, it's because the gtk uri code was not there yet in 2.6.8.

For reference, here's the list it tries:
static char const * const browsers[] = {
                        "sensible-browser",     /* debian */
                        "epiphany",             /* primary gnome */
                        "galeon",               /* secondary gnome */
                        "encompass",
                        "firefox",
                        "mozilla-firebird",
                        "mozilla",
                        "netscape",
                        "konqueror",
                        "xterm -e w3m",
                        "xterm -e lynx",
                        "xterm -e links"
                };

So for a quick fix, symlink sensible-browser to opera.
« Last Edit: March 27, 2010, 07:51:07 AM by curaga »
The only barriers that can stop you are the ones you create yourself.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: abiword spellcheck and plugins
« Reply #4 on: March 27, 2010, 12:32:27 PM »
After some testing, no, gtk_show_uri & gvfs can't be done runtime. Not 100% sure if it would be enough to build only the app, or if gtk as well.
Anyway, gvfs is a part of gnome, and brings a huge set of deps. Will open a bug against abiword.
The only barriers that can stop you are the ones you create yourself.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: abiword spellcheck and plugins
« Reply #5 on: March 27, 2010, 12:52:08 PM »
Did you try gvfs in the repo?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: abiword spellcheck and plugins
« Reply #6 on: March 27, 2010, 02:02:05 PM »
Yeah. Made no difference.

Here's a test app if you wish to try:

Quote
#include <stdio.h>
#include <gtk/gtk.h>

int main(int argc, char **argv){

gtk_init(&argc,&argv);

GError *error=NULL;

if (!gtk_show_uri(NULL,"http://google.com",GDK_CURRENT_TIME,&error)) {

printf("Failed:\n%s\n",error->message);

}


return 0;
}
gcc -o gtkuri gtkuri.c `pkg-config --cflags --libs gtk+-2.0`
The only barriers that can stop you are the ones you create yourself.