Coder Social home page Coder Social logo

djvu2.el's Introduction

djvu2.el

A newer djvu3 package is available here. This djvu2 package requires the external Imagemagick program, while the djvu3 package uses Emacs native svg rendering capabilities.

Except for dark=mode, djvu3 provides all features of djvu2. Additionally it is capable of drawing all kinds of annotation shapes. (Although shapes other than rectangle must be set in the annotation buffer. See M-x man djvused for djvu annotation syntax.)

Read and annotate djvu with Emacs

The original djvu.el is a great package for annotating djvu files, but it only offers basic functionality to show/read djvu files.[fn:its docstring mentions that it relies on djview for that] The djvu.el in this package extends the original djvu.el with the following functions, all heavily inspired by the pdf-tools package:

  • smooth scrolling [fn:Has been implemented in the original djvu.el in the meantime]
  • show various types of annotations (as shown in the demo below)
  • simple (not asynchronous as in pdf-tools, but still fast) djvu occur function (djvu-occur)
  • show color inverted document, i.e. somewhat equivalent to pdf-tools its midnight-minor-mode (djvu-invert)

All extended functionality is implemented in a very basic straightforward way and most of the code can be much improved/better integrated (you are welcome to ;), but everything works very fine.

WARNING!! You should use C-x C-s for saving annotations (before you close/save a file). Do not rely on the usual way to save files, you can easily end up with some invalid file.

Install

Install with quelpa using the follow lines

(quelpa '(djvu :fetcher git :url "[email protected]:dalanicolai/djvu2.el.git"))
(require 'djvu)

Spacemacs

For Spacemacs there is a djvu layer available.

Usage

Instructions for usage are found in the preliminary comments in the djvu.el file itself. Keybindings can be looked up by typing C-h m when djvu-read-mode is active (i.e. when visiting a djvu-file).

Demo

annots-demo.gif

The annotations are somewhat customizable. It is quite straightforward to extend the functionality with Emacs lisp.

djvu2.el's People

Contributors

dalanicolai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.