Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 01 Aug 2014, 10:08
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Documents
FBReader: An E-Book reader
Post new topic   Reply to topic View previous topic :: View next topic
Page 4 of 5 [74 Posts]   Goto page: Previous 1, 2, 3, 4, 5 Next
Author Message
jemimah


Joined: 26 Aug 2009
Posts: 4309
Location: Tampa, FL

PostPosted: Mon 30 Aug 2010, 11:29    Post subject:  

AFAIK it doesn't read djvu. I think Patriot's Evince build is your best bet.
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4292

PostPosted: Mon 30 Aug 2010, 11:59    Post subject:  

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:
#!/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

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Roy

Joined: 31 Dec 2008
Posts: 442

PostPosted: Tue 23 Nov 2010, 22:42    Post subject:  

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
Back to top
View user's profile Send private message 
eriksatie

Joined: 06 Jun 2011
Posts: 41

PostPosted: Sun 12 Jun 2011, 17:48    Post subject:  

null
Back to top
View user's profile Send private message 
pouncer

Joined: 05 Aug 2011
Posts: 3

PostPosted: Fri 05 Aug 2011, 18:50    Post subject: FBreader "category" for menus?
Subject description: Does FBreader pet install to one of the standard puppy menu categories?
 

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.
Back to top
View user's profile Send private message 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Sun 07 Aug 2011, 10:46    Post subject:  

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
Back to top
View user's profile Send private message 
Makoto


Joined: 03 Sep 2009
Posts: 1779
Location: Out wandering... maybe.

PostPosted: Sun 07 Aug 2011, 15:37    Post subject:  

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 | 1GB RAM | 1.3GB swap ] * My Pidgin Builds for Puppy 4.3.1+
In memory of our beloved American Eskimo puppy (1995-2010) and black Lab puppy (1997-2011).
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6674
Location: lisbon

PostPosted: Sun 07 Aug 2011, 19:38    Post subject:  

@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
Back to top
View user's profile Send private message 
sheldonisaac

Joined: 21 Jun 2009
Posts: 395
Location: Philadelphia, PA

PostPosted: Wed 16 Nov 2011, 10:05    Post subject: Re: FBReader: An E-Book reader  

(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
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4292

PostPosted: Sun 08 Jul 2012, 14:55    Post subject:  

A new release is out, I'll try to post an update soon.
Edit: posted and removed -see later post

_________________
Web Programming - Pet Packaging 100 & 101

Last edited by technosaurus on Tue 10 Jul 2012, 20:38; edited 1 time in total
Back to top
View user's profile Send private message 
sheldonisaac

Joined: 21 Jun 2009
Posts: 395
Location: Philadelphia, PA

PostPosted: Mon 09 Jul 2012, 08:27    Post subject: FBReader ver 0.99.0  

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
Back to top
View user's profile Send private message 
chrome307


Joined: 15 Jan 2009
Posts: 713

PostPosted: Tue 10 Jul 2012, 09:02    Post subject:  

@ technosaurus

Thanks for the application Smile

I have stripped out the non-English locales and changed the desktop entry so that it works for Lucid 528-005.
fbreader-0.99.0.pet
Description  FBReader English only Lucid 528-005
pet

 Download 
Filename  fbreader-0.99.0.pet 
Filesize  1.38 MB 
Downloaded  361 Time(s) 
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4292

PostPosted: Tue 10 Jul 2012, 15:20    Post subject:  

Thanks, but you missed some stuff (mostly in zipfiles in the zlibrary directory)
fbreader-0.99.0-NLS.pet
Description  install the other pet first or it will overwrite the zipped locales
pet

 Download 
Filename  fbreader-0.99.0-NLS.pet 
Filesize  993.21 KB 
Downloaded  348 Time(s) 
fbreader-0.99.0-i486.pet
Description 
pet

 Download 
Filename  fbreader-0.99.0-i486.pet 
Filesize  599.14 KB 
Downloaded  418 Time(s) 

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
sheldonisaac

Joined: 21 Jun 2009
Posts: 395
Location: Philadelphia, PA

PostPosted: Sun 30 Sep 2012, 11:44    Post subject:
Subject description: FBReader versions
 

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
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4292

PostPosted: Mon 01 Oct 2012, 07:08    Post subject:
Subject description: FBReader versions
 

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/

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 4 of 5 [74 Posts]   Goto page: Previous 1, 2, 3, 4, 5 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Documents
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0845s ][ Queries: 13 (0.0063s) ][ GZIP on ]