Giter Site home page Giter Site logo

nanometer6475 / epub-quicklook Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jaketmp/epub-quicklook

0.0 0.0 0.0 15.32 MB

ePub quicklook and spotlight plugins for Mac OS X.

License: BSD 3-Clause "New" or "Revised" License

Objective-C 44.66% Objective-C++ 2.20% C 51.40% CSS 1.47% HTML 0.27%

epub-quicklook's Introduction

An EPUB QuickLook generator and Spotlight importer for Mac OS X

The epub.qlgenerator plugin is designed to extract the cover images from EPUB files to use as the file icon, and present a nice overview of the EPUB in QuickLook.

The epub.mdimporter plugin is designed to extract information from EPUB files (metadata as well as text content) and index it so that Spotlight can search it.

These plugins read the various information directly from the EPUB contents - so will work on books that haven't been imported into iTunes.

Note: When used on DRM protected files (Adobe, iBooks, Kobo, Barnes & Noble), metadata will only be read from the unencrypted part of the EPUB. Typically this means no cover image will be shown. Spotlight is also unable to index the text in DRM protected files, though it can still search the metadata in DRM protected files.

Installation

After downloading and extracting the zip files from the Releases tab above, drag each of the plugins to the folder indicated. This will install the plugins for all users (you may need to enter the password for an administrator). If you lack administrator privileges or only wish to install for one user, follow the instructions below.

Place the epub.qlgenerator file into /Library/QuickLook (for all users) or ~/Library/QuickLook (for the current user only).

The Mac should notice the plugin appearing and start using it automatically. If it doesn't seem to, try logging out and in again, or run Terminal.app and enter this command:

qlmanage -r

and press return.

Place the epub.mdimporter file into /Library/Spotlight (for all users) or ~/Library/Spotlight (for the current user only).

To use the new Spotlight plugin you have to first make it index your EPUB files. This can be tricky. One way is to run Terminal.app and enter this command:

mdimport -r /Library/Spotlight/epub.mdimporter

or:

mdimport -r ~/Library/Spotlight/epub.mdimporter

if you installed it for the current user only) and press return. There are other ways to run mdimport which might also help - see its man page for more details.

Spotlight will begin indexing your EPUB files in the background.

Conflict with other QuickLook generators

Under some circumstances, epub.qlgenerator can conflict with other QuickLook generators (notably BetterZipQL under OS X 10.6 and earlier). To fix this, rename epub.qlgenerator to come before the conflicting plugin alphabetically (for example AA_epub.qlgenerator should work).

epub-quicklook's People

Contributors

jaketmp avatar chrisridd avatar maddthesane avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.