PPub - A light ePub reader made with pygtk

Hello everyone,
I got my hands on some epub files two days ago but I didn't find any reader I liked so I decided to write my own. And here it is:
Screenshot
Git Repository
PKGBUILD
Dependencies:
-python2
-unzip
-gobject-introspection
-python2-gobject
-gtk3
-libwebkit3
Bookmarks are matched with the MD5 hash of each book so they are valid even if you rename or move your books.
In case you have a book that is not working, please extract your epub file like a zip and send me any .opf and .ncx files it has inside. I will do my best to fix the problem then.
So far it's perfectly usable but it could use more features, so please post your ideas here.
Thanks for trying!
Changelog:
21 Nov:
-Now using python's zipfile instead of unzip.
-Updated PKGBUILD for new dependencies.
19 Nov:
-Better error handling.
7 Nov:
-Added icons and a .desktop file.
-Updated PKGBUILD.
6 Nov:
-Added content menu listing all chapters.
-Fixed some minor bugs.
3 Nov:
-Added config validation.
-Added night mode.
-Added User CSS support.
2 Nov:
-Fixed PKGBUILD
-Replaced most menu items with stock ones (for icons)
-Added the ability to enable/disable javascript.
-Fixed menu separators.
1 Nov:
-Switch to GI dynamic bindings and gtk3 support (by Laurent Bigonville)
-Now it cleans the cache on exit.
-Added limit to zoom level.
-The default cache path includes user's name (so multiple users can use it on the same time)
-Changed permissions for cache (700)
-Updated PKGBUILD (new dependencies)
31 Oct:
-Fixed license (by Psycojoker)
-Fixed a bug that prevented ppub from running when using an older version of webkit (by Psycojoker)
29 Oct:
-Added zoom controls
-Added caret mode
-Changed keyboard shortcuts for chapter navigation:
--Next chapter: Right instead of Control+Right
--Previous chapter: Left instead of Control+Left
-Minor bugfix (with .css)
-Disabled more useless webkit features
28 Oct:
-Fixed PKGBUILD
-Added support for non-standard .opf paths
-Fixed opening files containing 'bad' characters in their filenames.
-Disabled some browser-related features webkit was loading.
Known bugs:
-Cover pages don't work.
-Links inside book pages work but they mess up the current chapter value. The chapter changes but the application is unaware of it, so it changes back later.
Last edited by sakisds (2011-11-21 14:01:10)

It doesn't seem to work at all, at least with the ones I tried. Now, a screen comes up, but it's blank and none of the navigation commands seem to do anything.
Here's an epub I created that has embedded fonts. (The work is public domain.) I made this by hand by hand-writing the XHTML and XML files and hand-zipping them up (in the appropriate way for the epub spec.) It passes epubcheck, so should work:
tlp.epub
Here's another one I made, but not by hand, but instead by converting through calibre (another public domain title). This one doesn't have embedded fonts, and doesn't pass epubcheck. (I don't think calibre's ever do, though... still, you'll want to support them.)
imp.epub
When I try to open that one, it says "Error opening file: No such file or directory" in the ppub window.
(I'm actually mostly interested in your viewer to make sure that epubs I make are compatible with it.)
I also tried it with the NET bible epub, with no luck. (No, before you ask, I'm not religious... I just figured that was probably a fairly standard book people will want it to work with.) It has embedded fonts, and passes epubcheck.
Last edited by frabjous (2011-10-28 14:04:26)

Similar Messages

  • How to I get Adobe Reader XI to accept links made with Adobe Acrobat XI without asking each time?

    How to I get Adobe Reader XI to accept links made with Adobe Acrobat XI without asking each time?

    Asking for what, exactly?

  • Can Mac read a dcr file made with win?

    Hello,
    Can Mac read a dcr file made with win?
    Thanks in advance.

    Thanks Sean,
    I posted the question because of some problem of user to read the web page with dcr.
    You assumed right, it is e dcr hosted in a browser page and viewed via shockwave with safari.
    I don't know the nature of the problem but the user get an error.
    Maybe I must decide to buy a mac and do some test.
    Thank you again.

  • Read binary file made with VB

    Hi there,
    Here is something I never did, so a little help is welcome
    I have a binary file made with VB and I want to read it with LabVIEW 8.5.
    I know the structure of the records in the file, it's something like: 
        str1      As String * 5
        str2      As String * 6
        str3     As String * 2
        date      As Date
        str4     As String * 20
        str5   As String * 20
        int1       As Integer  
        flt1    As Single 
        flt2     As Single
        flt3      As Single
    and so on.
    Further on there's even a 2D array: 3 rows, 400 cols of singles.
    The total length of one record is 5120 bytes.
    I can pick up whatever record from the file using the "Set file positions" & "Read from binary file" vi's but how do I convert those 5120 bytes in the correct structure?
    I was thinking of a cluster but how do I define a fix string length in LV?
    Also, is a cluster the right way to go?
    So, like I said any help is welcome
    Thanks

    Alain S wrote:
    I was thinking of a cluster but how do I define a fix string length in LV?
    Also, is a cluster the right way to go?
    So, like I said any help is welcome
    Thanks
    Defining a fixed sized string officially not possible, and even the non official way will get you bugs, so let's do the official route.
    First open up the file with a hex editor, I normally use the Total Commander's built in F3, and then hit '3' to get a hex view. In that view I check wheter the lenght of the string is prepended to the string (Pascal and LabVIEW style) or ended with a Null (C style).
    If none of them is happening, I would use a cluster of 5 U8's to get the string, convert this cluster to an array, and convert that to a string.
    I have no idea what a 'Date' representation is in VB.
    A cluster is very suitable for this task, however I do not get the info about the 2D array, if you could add a data file that would be very helpfull.
    Ton
    Message Edited by TonP on 28-08-2009 08:44 PM
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Heading issue with the ePub file on Mozilla browser (add in - Epub Reader)

    Hi,
    I am not able to get the specified font size of headings in the Mozilla browser (add in - Epub Reader) as compare to Adobe digital edition application. Could someone please help me find the way to get the same heading size for the same EPub file in Mozilla browser (add in - Epub Reader). I would also like to inform you that I created a CSS to generate EPUB from InDesign version 6 file,
    Please find the relevant screen-shots attached.
    Regards,
    Arvind

    Hi,
    I am not able to get the specified font size of headings in the Mozilla browser (add in - Epub Reader) as compare to Adobe digital edition application. Could someone please help me find the way to get the same heading size for the same EPub file in Mozilla browser (add in - Epub Reader). I would also like to inform you that I created a CSS to generate EPUB from InDesign version 6 file,
    Please find the relevant screen-shots attached.
    Regards,
    Arvind

  • How do I print a pdf file that is printing too light to read??

    I have a pdf that I must print to buy a home.  It will not print as is. I shot screen shots, brought them into Photoshop, made them jpgs and adjusted the gamma to make them very black and white. 
    It helped but the pages cannot be read. There is plenty of ink in the printer.
    I need to send this paperwork tomorrow with a check...
    WHAT TO DO?

    I have this problem as well, prints come too light out of my Brother5370DW and consulted several channels on internet. Printing from pc was never a problem, only from mac: jpgs, tifs, txt, from Preview, Safari, Firefox, Photoshop, Acrobat etc whenever the document it was not full b/w. Especially screenshots from Google maps were just illegible. I just tried to print a pdf with dark grey text, very light as well. Then it ocurred to me to change the color matching profile in the printer's dialogue window: instead of automatic (which is Adobe RGB (1998) by default, I choose Black & White, and finally it prints fine: black what is supposed to be black, idem for dark greys, light greys.

  • How to fix faux subscripts/superscripts made with baseline shifts

    Hello all.
    There is a script on the forums used to convert locally formatted styles to character styles – Preserve Local Formatting script and CS4
    It is a brilliant script, but as I have unexpectedly found out (and would have found out if I read the post in more detail) is that any "faked" sub/superscripts created with baseline shifts won't work. To quote the other thread:
    The script searches for attributes such as "superscript", "subscript", "small capitals". If small caps are faked in the document with capitals in a smaller font, the script will not find them. If superscript or subscript are faked in the document with a smaller font size and some baseline shift, the script will not find them.
    Initially I didn't think this would ever be a problem... I thought "who the hell would make a subscript or superscript like that? wouldn't they just click the subscript or superscript buttons?"... unfortunately, no!
    I thought a solution would be to make a GREP that could be added to a findchangebylist script that ships with InDesign. First thing to do would be to create a GREP to look for any positive baseline shift and change it to superscript; and a GREP to search for any negative baseline shift and change it to a subscript. Sounds simple... until I tried to implement it, as the dialog won't take a + or - by itself... it has to be a proper value.
    Has anyone else faced this issue, and if so, what was the solution/outcome?
    Colin

    @Rob: Perhaps I should have given some background for what I was trying to do.
    I have a client who is importing dozens of pages of simple chemical equations from microsoft word and it is in the word file that the baseline shift method of creating subs/supers was done. What my client wanted to do was import the text without losing important appearance details such as this, and bolds/italics, but then be able to assign his own paragraph styles without faux sub/supers returning to a regular style. My procedure to the client was to:
    Import said word file into indesign file that contains appropriate paragraph/character styles to be applied;
    Run the default "findchangebylist.jsx" to remove any double spaces, tabs etc.
    Run a modification of Jongware's "preptext" script that will apply to all text frames rather than the current text frame.
    This was working well until we both noticed H2SO4 did not have the numbers as subs, even though the word file clearly did. Closer inspection on the word file showed that the subscript button was not toggled, but the baseline shift had been, hence why the preptext script had missed a key piece of formatting.
    With the preptext script, items that had subscript and superscript locally applied to the text would now be assigned "Sub" and "Super" character styles, and from there I agree - the more discerning typesetter could to into the character style and make the apperance of the said subs/supers more appealing. I believe a way of using the opentype subs/supers would be to replace the words SUBSCRIPT and SUPERSCRIPT in the said script to be OT_SUBSCRIPT or OT_SUPERSCRIPT respectively, provided an opentype font was being used for the formatting.
    So in this instance, this script serves a rather specific purpose of fixing this particular document, rather than being applicable on a wider scale.
    It is also important for anyone working with epubs to note that subs/supers made with baseline shifts (whether applied as character styles or not) will not appear in the resulting epub. Subs/supers made with the subscript/superscript buttons (again, whether applied as a character style or not) will appear in a resulting epub, so this is another consideration (I don't know if this is true if a customised CSS has been applied, but for straight export to epub from InDesign, it appears to be the case). This can be said for other forms of faux styles, such as skewing type to make a faux italic.
    @Peter: I agree, there isn't a perfect solution, but for the situation that I have, the script does what it is intended to do.
    It should be noted for readers of this post that this script is specifically purpose-driven, and that I would not use this script if a document contained:
    fractions made using baseline shifts;
    character or paragraph formatting that used baseline shifts;

  • Why is it that when I connect my iPhone 5S to my Windows Vista computer, the photos made with my iPhone are all of very low quality and most of them are turned upside down?

    Why is it that when I connect my iPhone 5S to my Windows Vista computer, the photos made with my iPhone are all of very low quality and most of them are turned upside down?
    On another note, the iPhone tells me that it's ''busy'' when opening a photo on the computer.
    (I tried restarting my PC, connecting via another USB port, importing using PhotoStream, etc...)

    Are you using the front or rear camera? When you say they are low quality, are you referring to file/pixel size, or how the picture looks? As far as upside down, how are you holding the phone? Older versions of Windows have issues reading the Metadata from the pictures and will not display the same.

  • How to import and edit a 3D video made with Sony HDR-TD10E camcorder, with .MVC file?

    How to import and edit a 3D video made with Sony HDR-TD10E camcorder, with .MVC file?
    I have PremierePro-CS5 installed.
    This stereo 3D camcorder (Sony HDR-TD10E), output an .MVC (MultiViewCoding) file, coded in H.264 format.
    This format is already compatible with Bluray3D stereoscopic format.
    1) But, how to edit the .MVC in Premiere?
    2) What plugin should I use (if exists) for PremiereProCS5?
    3) Cineform Neo3D, can manage the .MVC format? Can convert it to Cineform format file, for import it into Premiere?
    4) What software should I use to convert an .MVC video to an AVCHD H.264 file, and import it into PremierePro CS5 or CS5.5 for editing?
    Thanks!
    Horsepower0171.

    Sorry, I am Italian, it is very difficult for me to understand what he says!
    I can just read the english text, or follow the actions of a videotutorial!
    Thus my question is the same:
    -What software can do that?
    -Sony Vegas 10 do the Bluray3D authoring?
    -For MVC editing, should I wait for Adobe CS6? Or is it planned an update for CS5.5?

  • I have made with iweb a website on my macbook, now i want to change it, through my imac, how can I get in the program , which is on the mac book. On both computer I have Lion

    i have made with iweb a website on my macbook, now i want to change it, through my imac, how can I get in the program , which is on the mac book. On both computer I have Lion

    You need to transfer your domain.sites file from your MacBook to your iMac.  This is the file where iWeb stores all info and can be found under User/Library/Application Support/iWeb/domain.sites.
    Transfer this file from your MacBook to the same place on your iMac and double click the domain.sites file and iWeb will open it on your iMac and you can update your site from there too.

  • How can I get the iBook app on my Mac to backup ePubs I created with Pages on my iPad? Only seems to want to work with purchased from the ibook store.

    How can I get the iBook app on my Mac to backup ePubs I created with Pages on my iPad? Only seems to want to work with purchased books from the ibook store. The problem is, once I create a document in Pages and turn it into an ePub to be opened in iBooks, I delete the document in Pages, because I don't need two copies taking up space on my iPad. Before Maverick, iTunes would backup everything in my iBook app on my iPad. If something ever happened to my iPad, all of my created ePubs would be lost and I would be screwed. I suppose I could keep everything on Pages and go to iCloud and download my documents to my Mac, but that is a lot of steps. I may have to do that if there is no other way, but I am hoping someone will have the answer for me. Pretty disappointed in iBooks app for Mac at this point.

    iBooks only syncs purchased books. Others must be synced in iTunes.

  • How can I avoid losing purchases made with an old Apple ID when I authorize my MacBook Pro under my current Apple ID?

    I am very confused!!  When I first used iTunes, I did not own any Apple products.  When I purchased my MacBook Pro and a Mobile Me subscription a few years ago, my email address @me.com became my new Apple ID.  I subsequently purchased an iPhone 3 and eventually an iPhone 4.  Apparently over this time, I have used both Apple IDs at various times.  Sometimes when I upgrade apps, the old ID will already be filled in and other times the new one will be instead.  I always use whichever one is there with the appropriate password.  This was probably a mistake.  I just realized that my MBPro is authorized under the original Apple ID and not the current one.  I tried to authorize it under the current Apple ID, but couldn't, so I was going to deauthorize it from the old one, but got a message about losing any purchases made with the original Apple ID.  I don't want that to happen.  Synching my iPhone in iTunes with my computer has been much more confusing since I got my newer iPhone. However, I don't remember anything about the process I went through to associate it with my iTunes account.  Any helpful suggestions are appreciated.

    Log into the store using the old Apple ID to re-download them, however, you can not switch them into your current Apple ID except by re-purchasing. You can contact Apple support and see if they are able to help you.
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Contacting Apple for support and service - this includes
    international calling numbers..
    For Mac App Store: Apple - Support - Mac App Store.
    For iTunes: Apple - Support - iTunes.

  • I can't update the purchases I made with the old Apple I.D. How can I sync my old Apple I.D. with new one?

    I can't update the purchases I made with the old Apple I.D;
    how can I sync my old Apple I.D. with new one?

    Only the Apple ID used to buy an app can update an app. Apple does not merge Apple IDs and Apple does not transfer content biught with one ID to another ID.

  • HT4993 my first iphone; how do I sync my iCal from entries made with my ipod touch to my iphone 5.

    my first iphone; how do I sync my iCal from entries made with my ipod touch to my iphone 5.

    In iTunes 11 go to View>Show Sidebar.  You can then view you phone as you could with previous versions.  To register your phone go to https://register.apple.com/cgi-bin/WebObjects/GlobaliReg.woa.

  • Is there a way to open/edit files made with Microsoft Publisher on my new Mac?

    I recently upgraded to a Mac from a Dell and I have documents that I made with Microsoft Word and Publisher that I still need to be able to use with my Mac but I can't figure out how to open them with it. Is there a program that I need to download?

    Word documents from your PC will open directly in Word for the Mac. If you have the ability to save your Publisher documents from the PC in PDF format, they can be converted from PDF to Word format and emailed back to you by this web site, free of charge:
    http://www.pdftoword.com/
    Note that not all features of the resulting Word files will be as completely editable as they were in Publisher, but they should look pretty much the same and open easily on the Mac.

Maybe you are looking for

  • Report using SOP

    dear can i configre a report using SOP and not run mrp only for running report and these are the fields which i require These are the parameters required in that report 1. sales forecast(this is done annually with the monthly break up) 2. sales forec

  • Connecting Chromebook to HP 3520 Deskjet Printer

    Hello, can someone PLEASE help me by advising how to connect my chromebook to the HP 3520 wireless printer using wifi. Sorry but I am not the most computer literate and so need pretty basis instructions please

  • Need some info regarding BWA1 transaction in CRM

    Hi,   I am trying to understand few things for the BWA1 transaction. Looks like we need to explore the BWA1 transaction for data source enhancement before trying the classical Data source enhancement method (Append structure in the Data source ) in R

  • What is the best way to follow the scenario for Out look integration with share point using SAP Gateway?

    1)what is the best way to follow the scenario for Out look integration with share point using SAP Gateway? 2)workflow concepts for Purchase order? 3)Email triggering from out look for an approval process of PO? how these scenario can be best implemen

  • Dialing direct from PDF

    Hi guys, We have just switched our fleet from iOS devices to Android devices and we are having a real issue with sending PDF's with phone numbers contained in them.  With iOS, basically any number that fit the format would be recognised as a phone nu