FBReader: An E-Book reader

Word processors, spreadsheets, presentations, translation, etc.
Message
Author
User avatar
cklammer
Posts: 28
Joined: Sat 26 Apr 2008, 14:12
Location: Abu Dhabi, United Arab Emirates

libgio?

#31 Post 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.

danny0085

recent linux books

#32 Post by danny0085 »

Here you can download recent books (2008,2008,2010) http://tips-linux.net/en/books

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#33 Post by muggins »

Uploaded v0.12.8.

User avatar
sasaqqdan
Posts: 39
Joined: Fri 06 Jun 2008, 13:56
Location: China,Zhejiang,Hangzhou
Contact:

#34 Post by sasaqqdan »

fbreader-0.12.8.pet is qt4-based.
please make another gtk-based.

Roy
Posts: 451
Joined: Wed 31 Dec 2008, 18:31

#35 Post 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

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#36 Post 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.

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#37 Post 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)
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

Roy
Posts: 451
Joined: Wed 31 Dec 2008, 18:31

#38 Post by Roy »

Thanks, technosaurus.

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

-Roy

User avatar
sasaqqdan
Posts: 39
Joined: Fri 06 Jun 2008, 13:56
Location: China,Zhejiang,Hangzhou
Contact:

#39 Post by sasaqqdan »

Thanks very much, technosaurus.
Your pet work fine in puppy stardust.

josepinto
Posts: 41
Joined: Sat 19 Aug 2006, 11:57

FBReader updated to 0.12.10

#40 Post by josepinto »

Hi,

FBReader was updated to 0.12.10.

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#41 Post by technosaurus »

updated to 0.12.10 - a little smaller this time even with liblinebreak compiled in statically
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#42 Post by vovchik »

Dear technosaurus,

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

With kind regards,
vovchik

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#43 Post by jemimah »

Sweet, just in time to make it into the new Puppeee beta.

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#44 Post 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)
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

Nooblet0218
Posts: 105
Joined: Fri 21 May 2010, 17:50

#45 Post by Nooblet0218 »

this may be a stupid question but, can it read djvu files?

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#46 Post by jemimah »

AFAIK it doesn't read djvu. I think Patriot's Evince build is your best bet.

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#47 Post 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
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

Roy
Posts: 451
Joined: Wed 31 Dec 2008, 18:31

#48 Post 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

eriksatie
Posts: 41
Joined: Tue 07 Jun 2011, 03:27

#49 Post by eriksatie »

null

pouncer
Posts: 3
Joined: Fri 05 Aug 2011, 22:06

FBreader "category" for menus?

#50 Post 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.

Post Reply