FBReader: An E-Book reader

Word processors, spreadsheets, presentations, translation, etc.
Message
Author
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.

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#51 Post by nooby »

If none answer withing a few days or weeks do start a new thread. Maybe your post is not seen by many Sorry
I use Google Search on Puppy Forum
not an ideal solution though

User avatar
Makoto
Posts: 1665
Joined: Fri 04 Sep 2009, 01:30
Location: Out wandering... maybe.

#52 Post by Makoto »

You might try opening a terminal (RXVT, or whatever you're using), typing 'fixmenus' (without the quotes) and then restarting the X server once or twice.

Or, try rebooting once or twice. Sometimes, it may take a bit for menu items to appear, for some reason.
[ Puppy 4.3.1 JP, Frugal install ] * [ XenialPup 7.5, Frugal install ] * [XenialPup 64 7.5, Frugal install] * [ 4GB RAM | 512MB swap ]
In memory of our beloved American Eskimo puppy (1995-2010) and black Lab puppy (1997-2011).

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

#53 Post by muggins »

@pouncer,

go to /usr/share/applications directory & see if clicking the FBReader .desktop file starts it up.

If it does, open it in a text editor & alter the Categories= line so that it is the same as any other app that does appear in Menu>Documents.

If it doesn't start, try running FBReader in a console to see what errors are generated.

Edit: I wrote fbreader when it should be FBReader

sheldonisaac
Posts: 902
Joined: Mon 22 Jun 2009, 01:36
Location: Philadelphia, PA

Re: FBReader: An E-Book reader

#54 Post by sheldonisaac »

(some SNIPPING)
muggins wrote: This is a reader for ebooks.
Many thanks, muggins.
I am using it with Puppy 214X on an oldish computer.

Can someone tell me whether the version at
http://www.fbreader.org/content/linux
is any newer(better)?

I've never installed any software other than pet packages.
Is there a guide to doing that, or somehow (like you guys seem to do) making pets from the debian or whatever?

Thanks again,

Sheldon

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

#55 Post by technosaurus »

A new release is out, I'll try to post an update soon.
Edit: posted and removed -see later post
Last edited by technosaurus on Wed 11 Jul 2012, 00:38, edited 1 time in total.
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].

sheldonisaac
Posts: 902
Joined: Mon 22 Jun 2009, 01:36
Location: Philadelphia, PA

FBReader ver 0.99.0

#56 Post by sheldonisaac »

technosaurus wrote:A new release is out, I'll try to post an update soon.
Edit: here it is with all of the localizations left intact this time - feel free to split them out (mainly big5 and gbk) to shave about half a Mb
Thanks a lot, technosaurus.

I was afraid to put it on this old computer with Puppy 2.14X, so I put it on the Dell D610 with Puppy lupu 528.

It works there; haven't yet explored any of the new features.

Can you please explain the splitting out of localizations?


Thanks again,

Sheldon

User avatar
chrome307
Posts: 708
Joined: Thu 15 Jan 2009, 11:00

#57 Post by chrome307 »

@ technosaurus

Thanks for the application :)

I have stripped out the non-English locales and changed the desktop entry so that it works for Lucid 528-005.

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

#58 Post by technosaurus »

Thanks, but you missed some stuff (mostly in zipfiles in the zlibrary directory)
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].

sheldonisaac
Posts: 902
Joined: Mon 22 Jun 2009, 01:36
Location: Philadelphia, PA

#59 Post by sheldonisaac »

technosaurus wrote:Thanks, but you missed some stuff (mostly in zipfiles in the zlibrary directory)
Hi, could you please tell me the difference between these?

613523 2012-09-30 10:30 /mnt/sda2/sources/fbreader-0.99.0-i486.pet

581623 2012-06-10 18:56 /mnt/sda2/sources/fbreader-0.12.10-i486.pet

I have what seems to be the fbreader-0.12.10-i486 currently installed

What happens if I click on the fbreader-0.99.0-i486.pet

Does it upgrade or what?

In what way is it better?


Thanks,

Sheldon

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

#60 Post by technosaurus »

sheldonisaac wrote:Hi, could you please tell me the difference between these?

613523 2012-09-30 10:30 /mnt/sda2/sources/fbreader-0.99.0-i486.pet

581623 2012-06-10 18:56 /mnt/sda2/sources/fbreader-0.12.10-i486.pet
99.0 - 12.1 = 86.9
for more detail see http://www.fbreader.org/
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].

sindi
Posts: 1087
Joined: Sun 16 Aug 2009, 13:30
Location: Ann Arbor MI USA

FBReader 0.12

#61 Post by sindi »

The first pet posted, with liblinebreak added to /usr/lib/, reads a 2009 ePub from Gutenberg.

I unpackaged it and ran it from the directory it made, rather than installing it.

The 0.99 version, with libgio pet added, does not display a book. Something flashes briefly onscreen then no book appears. Why? Also preferences does not display much - I can't set the directories to look in, for instance.

ldd /usr/bin/FBreader shows that it has all required libraries.

The older FBreader is not a dynamic executable but it works fine including images.

I have not tried any intermediate versions. Is there some reason not to use 0.12?

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

#62 Post by technosaurus »

99 is reading epubs fine, maybe you can be more specific
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].

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

#63 Post by muggins »

I think 0.99 series is the development version.

The binary, in the pet on the first page, is dynamic, it's just that it's been compressed with upx. If you download upx, then run:

Code: Select all

upx -d FBReader
ldd FBReader
you'll see the dependencies.

sindi
Posts: 1087
Joined: Sun 16 Aug 2009, 13:30
Location: Ann Arbor MI USA

0.99 not working with pulp 0.1 (puppy 4.1.2)

#64 Post by sindi »

The earlier version reads epub, fb2, etc., the later one displays a blank page after flashing something onscreen. Have you tried it with puppy 4.1.2 kernel 2.61.7? I tried both versions unpacked into their own subdirectories in ./download. Pulp uses 10MB to load so would make a rather old laptop into an ebook reader. FBReader with a book loaded uses only about 25MB.

Installing 0.99 did not help.

Version 0.99 cannot read epub but it CAN read HTML, fb2, and mobi.

sindi
Posts: 1087
Joined: Sun 16 Aug 2009, 13:30
Location: Ann Arbor MI USA

0.99 libgio problem

#65 Post by sindi »

If I run FBReader from an rxvt I get
the error message symbol lookup error undefined symbol glib_gettext
when I try to display a mobi file or an epub file.
0.12 works CLI with both. Not so sure
that saved .mobi works with 0.99
but I think I viewed with Opera.
What do I do about glib? fb2 definitely
works with both versions, and HTML, from the commandline.

Post Reply