Page 3 of 4

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.

Posted: Sun 07 Aug 2011, 14:46
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

Posted: Sun 07 Aug 2011, 19:37
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.

Posted: Sun 07 Aug 2011, 23:38
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

Re: FBReader: An E-Book reader

Posted: Wed 16 Nov 2011, 14:05
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

Posted: Sun 08 Jul 2012, 18:55
by technosaurus
A new release is out, I'll try to post an update soon.
Edit: posted and removed -see later post

FBReader ver 0.99.0

Posted: Mon 09 Jul 2012, 12:27
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

Posted: Tue 10 Jul 2012, 13:02
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.

Posted: Tue 10 Jul 2012, 19:20
by technosaurus
Thanks, but you missed some stuff (mostly in zipfiles in the zlibrary directory)

Posted: Sun 30 Sep 2012, 15:44
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

Posted: Mon 01 Oct 2012, 11:08
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/