From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: doc-view.el now allows searching Date: Fri, 31 Aug 2007 21:06:17 +0200 Message-ID: References: <87wsvnfoyp.fsf@baldur.tsdh.de> <87d4xcoxyn.fsf@baldur.tsdh.de> <878x7ylhdk.fsf@baldur.tsdh.de> <87fy26gn55.fsf@baldur.tsdh.de> <874pil8f2m.fsf@baldur.tsdh.de> <87odgsjef5.fsf@baldur.tsdh.de> <87absbg53e.fsf@baldur.tsdh.de> <878x7ujfov.fsf@baldur.tsdh.de> <87odgptrwx.fsf@baldur.tsdh.de> <877indtf1o.fsf_-_@baldur.tsdh.de> <87zm075022.fsf@baldur.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1188587560 3030 80.91.229.12 (31 Aug 2007 19:12:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 31 Aug 2007 19:12:40 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Bill Clementson Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 31 21:12:37 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IRBuy-0001ZA-Hw for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Aug 2007 21:12:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IRBuw-0003o3-6c for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Aug 2007 15:12:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IRBuh-0003mf-BJ for help-gnu-emacs@gnu.org; Fri, 31 Aug 2007 15:12:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IRBuf-0003m4-LJ for help-gnu-emacs@gnu.org; Fri, 31 Aug 2007 15:12:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IRBuf-0003ly-Df for help-gnu-emacs@gnu.org; Fri, 31 Aug 2007 15:12:13 -0400 Original-Received: from fmmailgate03.web.de ([217.72.192.234]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IRBuf-00049j-0f for help-gnu-emacs@gnu.org; Fri, 31 Aug 2007 15:12:13 -0400 Original-Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate03.web.de (Postfix) with ESMTP id 3379E9714EF7; Fri, 31 Aug 2007 21:06:21 +0200 (CEST) Original-Received: from [62.134.230.220] (helo=[192.168.1.2]) by smtp05.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.108 #197) id 1IRBox-0003lY-00; Fri, 31 Aug 2007 21:06:19 +0200 In-Reply-To: X-Mailer: Apple Mail (2.752.2) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1/xSCUNoG0F5Uhv35+0Y2senn0L9QIKjhuhGpHN CXObCV2EAfT/LX4KVifw6r9uF98X4nKSQojcIXUJuXfrSCzEuh uZhSwpzeGT+rFt4d2xtA== X-Detected-Kernel: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:47039 Archived-At: Am 31.08.2007 um 18:38 schrieb Bill Clementson: > > First, I thought it might have something to do with the size of the > pdf file or blank pages not being counted; however, searches of the > sicp.pdf book all seemed to produce correct results, so I'm not sure > why the search functionality doesn't work properly in some instances. The reason is probably that pdftotext is used with the -raw option, =20 which deletes all empty lines leading white space. There is another =20 option: -layout. I think doc-view should check the number of pages first (pdfinfo =20 | grep -i pages | awk '{print $NF}'). If the number is greater =20= 1 than -layout should be more appropriate ... BTW, -layout is bit faster! -- Mit friedvollen Gr=FC=DFen Pete Irgendwer sollte den Kugelschreiber mit einem Kleiderb=FCgel kreuzen, =20= dass die Kulis sich vermehren, statt stets nur zu verschwinden!