From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Re: Djvu mode Date: Thu, 29 Sep 2011 23:34:33 +0200 Message-ID: References: <871uv17nar.fsf@gmail.com> <874nzwvjgi.fsf@maguirefamily.org> <87wrcr983w.fsf@niu.edu> <20100.49629.638365.504606@gargle.gargle.HOWL> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1317332090 29657 80.91.229.12 (29 Sep 2011 21:34:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 29 Sep 2011 21:34:50 +0000 (UTC) Cc: Camm Maguire , emacs-devel@gnu.org To: "Roland Winkler" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 29 23:34:45 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R9OFg-0007gI-Ux for ged-emacs-devel@m.gmane.org; Thu, 29 Sep 2011 23:34:45 +0200 Original-Received: from localhost ([::1]:44028 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9OFg-0003km-Cs for ged-emacs-devel@m.gmane.org; Thu, 29 Sep 2011 17:34:44 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:35327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9OFd-0003ke-9s for emacs-devel@gnu.org; Thu, 29 Sep 2011 17:34:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R9OFb-0005QW-GJ for emacs-devel@gnu.org; Thu, 29 Sep 2011 17:34:40 -0400 Original-Received: from iwfs.imcode.com ([82.115.149.64]:43114 helo=gate.verona.se) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9OFY-0005Q1-Gp; Thu, 29 Sep 2011 17:34:36 -0400 Original-Received: from chopper.vpn.verona.se (IDENT:1005@localhost [127.0.0.1]) by gate.verona.se (8.13.4/8.11.4) with ESMTP id p8TLYXwg031923; Thu, 29 Sep 2011 23:34:34 +0200 In-Reply-To: <20100.49629.638365.504606@gargle.gargle.HOWL> (Roland Winkler's message of "Thu, 29 Sep 2011 14:07:09 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 82.115.149.64 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:144485 Archived-At: "Roland Winkler" writes: > On Thu Sep 29 2011 joakim@verona.se wrote: >> I wrote the ImageMagick support for Emacs 24 specifically so I could >> view djvu images. > > ...What is this supposed to do? I do not know much about image > support in emacs. How can this possibly handle djvu files? > >> Other than that I haven't made anything, so I'm very interested in >> your different djvu modes. I hope you can work together and >> include the code in Gnu ELPA. > > Right now I have no idea what kind of functionality one can possibly > get for viewing djvu files from ImageMagick in Emacs. I've never > dealt with that. > > Currently, my djvu mode is completely built around the djvu text > layer (via djvused). For simplicity it uses djview as an external > viewer, though this could be changed. How does ImageMagick handle > highlighting in djvu pages? I don't know so much about these advanced features of djvu. The ImageMagick support works like any other image support in Emacs. If you've configured it to be used you can for example open an image in a buffer from dired. Emacs image functions also support opening a particular image in a djvm container but because of limitations in imagemagick it doesn't work too well. My usecase is scanning a lot of pages and converting each page to djvu, and then to the djvm container. I have an emacs package called "emsane" on github for this. I've been meaning to implement ocr with ocropus and somehow create the djvu text layer that way but I haven't gotten around to it. Can you explain what you mean with highlighting? There are lots of things you can do in Emacs. For instance I have a trivial example called dragbox.el on github which makes it possible to interactively create a rectangular overlay on an image. The region can then be extracted and ocr:ed. > > Roland -- Joakim Verona