Page 2 of 4

libgio?

Posted: Wed 30 Dec 2009, 05:44
by cklammer
I installed FBReader 0.12.1 under 4.3.1 and got this abort:

Code: Select all

# FBReader
loading /usr/lib/zlibrary/ui/zlui-gtk.so
/usr/lib/libgio-2.0.so.0: undefined symbol: g_poll
(1) I had libgio-2.20.1-i586.pet (which you need for Scite) installed when I first got the message.
(2) Research here on the forum that libgio-2.20.1-i586.pet is not required for 4.3.1 so I uninstalled it using the Puppy Package Manager.
(3) Scite still worked but the FBReader error stayed the same.
(4) Further research on the forum indicated the existence of another libgio pet here: http://murga-linux.com/puppy/viewtopic. ... 1&start=45. The direct download link is: http://murga-linux.com/puppy/viewtopic. ... 543f7351f4
(5) After installing said libgio pet both FBReader 0.12.1 and Scite 2.0.1 started without a hitch.

So either I screwed up my libgio installation before or things changed under 4.3.1. Whatever.

recent linux books

Posted: Wed 06 Jan 2010, 06:42
by danny0085
Here you can download recent books (2008,2008,2010) http://tips-linux.net/en/books

Posted: Tue 23 Mar 2010, 02:56
by muggins
Uploaded v0.12.8.

Posted: Thu 25 Mar 2010, 14:04
by sasaqqdan
fbreader-0.12.8.pet is qt4-based.
please make another gtk-based.

Posted: Thu 25 Mar 2010, 19:41
by Roy
Attempted to install this in Boxpup 431 without success.

Code: Select all

# FBReader
loading /usr/lib/zlibrary/ui/zlui-qt4.so
libQtGui.so.4: cannot open shared object file: No such file or directory
Searched for libQtGui.so.4 (which is supposed to be included in qt4-4.3.4-p2.pet), but to no avail; I cannot find the lib or the .pet.

Still, I am thankful for your work on this, Muggins! Thank you.

-Roy

Posted: Thu 25 Mar 2010, 23:45
by muggins
sasaqqdan:

thanks for reminding me, as I completely forgot about compiling against gtk, and just went ahead & compiled it. Anyway, I've reuploaded it. Just remove the previous version, then install the gtk one.

Roy:

Yes, my bad for compiling it against qt4. Anyway, if you ever encounter that error, for missing libQtGui.so.4 for some other application, it's definitely included in qt4-4.3.2.pet.

Posted: Fri 26 Mar 2010, 03:05
by technosaurus
next version with gtk and static zlibrary and liblinebreak (compiled with gtk-2.18.9 so may or may not have issues on older pups)

Posted: Fri 26 Mar 2010, 10:46
by Roy
Thanks, technosaurus.

That did it -- your FBReader works in Boxpup 431. Thank you.

-Roy

Posted: Fri 26 Mar 2010, 12:32
by sasaqqdan
Thanks very much, technosaurus.
Your pet work fine in puppy stardust.

FBReader updated to 0.12.10

Posted: Wed 16 Jun 2010, 12:51
by josepinto
Hi,

FBReader was updated to 0.12.10.

Posted: Mon 30 Aug 2010, 06:22
by technosaurus
updated to 0.12.10 - a little smaller this time even with liblinebreak compiled in statically

Posted: Mon 30 Aug 2010, 14:17
by vovchik
Dear technosaurus,

Thanks. It works fine in puppy 3.01 and 4.x, so I am happy. :)

With kind regards,
vovchik

Posted: Mon 30 Aug 2010, 14:18
by jemimah
Sweet, just in time to make it into the new Puppeee beta.

Posted: Mon 30 Aug 2010, 15:19
by technosaurus
vovchik wrote:Dear technosaurus,

Thanks. It works fine in puppy 3.01 and 4.x, so I am happy. :)

With kind regards,
vovchik
Good, I compiled it against the old sqlite headers but linked it with a newer version on the final link because the older sqlite in puppy4x was compiled with a version suffix prior to the .so*, which isn't recognized in any other system automatically, so I wasn't 100% that it would work on other/multiple systems (I think this was done to delineate it for mozilla compiles or something)

Posted: Mon 30 Aug 2010, 15:27
by Nooblet0218
this may be a stupid question but, can it read djvu files?

Posted: Mon 30 Aug 2010, 15:29
by jemimah
AFAIK it doesn't read djvu. I think Patriot's Evince build is your best bet.

Posted: Mon 30 Aug 2010, 15:59
by technosaurus
supported/unsupported formats:
http://www.fbreader.org/docs/formats.php

about page:
http://www.fbreader.org/about.php

many of those unsupported formats can be converted to plain text using some basic tools in busybox - i don't recall if djvu is one of them, but the beagle project had a perl file filter for djvu that may be useful
http://beagle-project.org/ExternalFiltersRepository

Code: Select all

#!/usr/bin/perl
use Encode 'decode';

#do we need to use unzip?
$filenamePar = $ARGV[0];
my $filename;
if ($filenamePar =~ m/.zip$/) {
        $filename = "unzip -p $filenamePar |";
}
else {
        $filename = $filenamePar;
}

#get file encoding
open(F, $filename) or die "Coudn't open file $filename: $!";
@lines = <F>;
close(F);

$text = join(" ", @lines);
$text =~ /<\?xml.*?encoding="(.*?)".*?\?>/;
$enc = $1;
if ("x$enc" eq "x") {
        $enc = "utf8";#defaults to utf-8
}

$lines=();
$text="";

#parse source
open (F, $filename) or die "Coudn't open file $filename: $!";
@lines = <F>;
close(F);
$text = join(" ", @lines);
$text = decode("$enc", $text);
$text =~ s/<binary.*?>.*?<\/binary>//g; #remove binary data
$text =~ s/<.*?>/ /g; #remove all xml tags
print $text;
would anyone be interested in a lightweight text only ripper/viewer for many formats? seems as if there is plenty of code available to implement

for XML based formats (there are a lot), sed can do most of the work

Posted: Wed 24 Nov 2010, 02:42
by Roy
technosaurus (et al),

Is there an easy way for a Puppian such as myself to convert (legally purchased) DRMed e-books into plain text for viewing on our non-MS kit? Is that what your script (immediately above) is intended to do? If so, how does the end-user actually use the script? Drag'n'drop? A special Command Line command?

The short answer to your question about a "lightweight text only ripper/viewer for many formats" is "YES, I am interested!".

-Roy

Posted: Sun 12 Jun 2011, 21:48
by eriksatie
null

FBreader "category" for menus?

Posted: Fri 05 Aug 2011, 22:50
by pouncer
New user here. Running XO-Pup in SD card alternate OS for the OLPC XO-1.

Found from this thread the latest FBREADER pet package. The install appears to have worked. But I saw a "category error" message. Now I can't see any menu that includes the app, nor is there a new icon on desktop.

Can the install be re-tried with a category target specified.