From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Roland Winkler" Newsgroups: gmane.emacs.devel Subject: Re: Djvu mode Date: Mon, 3 Oct 2011 13:23:27 -0500 Message-ID: <20105.64927.931187.909507@gargle.gargle.HOWL> References: <871uv17nar.fsf@gmail.com> <874nzwvjgi.fsf@maguirefamily.org> <82bou4y5kz.fsf@gmail.com> <87d3ejtjrb.fsf_-_@niu.edu> <87r52zl29j.fsf_-_@maguirefamily.org> <20100.46983.768447.889306@gargle.gargle.HOWL> <87d3ejgmmz.fsf@maguirefamily.org> <20103.17789.10053.53615@gargle.gargle.HOWL> <878vp49g56.fsf@maguirefamily.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1317699941 5952 80.91.229.12 (4 Oct 2011 03:45:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 Oct 2011 03:45:41 +0000 (UTC) Cc: joakim@verona.se, emacs-devel@gnu.org To: Camm Maguire Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 04 05:45:37 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 1RAvwk-0004tH-Lh for ged-emacs-devel@m.gmane.org; Tue, 04 Oct 2011 05:45:34 +0200 Original-Received: from localhost ([::1]:50626 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAvwk-00021N-3z for ged-emacs-devel@m.gmane.org; Mon, 03 Oct 2011 23:45:34 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:42935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAnB7-0002V8-PX for emacs-devel@gnu.org; Mon, 03 Oct 2011 14:23:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RAnB6-0004T1-IH for emacs-devel@gnu.org; Mon, 03 Oct 2011 14:23:49 -0400 Original-Received: from tfkpsv.physik.uni-erlangen.de ([131.188.164.197]:14759) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAnB6-0004Rr-40 for emacs-devel@gnu.org; Mon, 03 Oct 2011 14:23:48 -0400 Original-Received: from regnitz (82.Red-80-32-229.staticIP.rima-tde.net [80.32.229.82]) by tfkpsv.physik.uni-erlangen.de (Postfix) with ESMTP id 0A69523ACD; Mon, 3 Oct 2011 20:23:37 +0200 (CEST) In-Reply-To: <878vp49g56.fsf@maguirefamily.org> X-Mailer: VM 8.2 trial under 24.0.50.1 (x86_64-unknown-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 131.188.164.197 X-Mailman-Approved-At: Mon, 03 Oct 2011 23:45:32 -0400 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:144563 Archived-At: On Sun Oct 2 2011 Camm Maguire wrote: > Currently the code ignores but preserves non-djvm-mode produced > annotations, but this should be easy to add. I am sorry, I am confused! What kind of annotations are then added to the file? Are they incompatible with the standard djvu format? Why that? > Me too. This is the main point. I am currently using it for this > with success. I'm not really sure though whether text notes are best > placed in the file, as you have to click on the box to see them (in > emacs djvm mode or djview), Depending on how you set up the annotations. djview displays them immediately - at least for me (with DjVuLibre DjView 4.5 under GNU linux). > > nicely displays these annotations including any text layers they > > might have. > > Emacs with this mode does too, but just for the annotations it writes > itself at the moment. It labels these with a "djvm" comment. Why "djvm"? Why being incompatible? > This is a somewhat common indication of a poorly constructed text > layer by an early ocr engine. I've always cleared this by a fresh > ocrodjvu --in-place foo.djvu. Boxes then line up perfectly. I think > the ocr code has only very recently matured. Again I am confused. Take the djvu file I attached earlier in this thread (produced with pdf2djvu-0.7.7). If I search a word via djview, it highlights the matches such that the boxes are perfectly aligned with the text. So I assume that the djvu file is OK. Yet with your mode the highlighting is shifted relative to what it is supposed to match. Something is misaligned here. (My emacs is GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 2011-09-19.) What am I missing here? Roland