Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
doc-view.el --- View PDF/PostStript/DVI files in Emacs
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 26 - 50 of 77 - Collapse all  -  Translate all to Translated (View all originals) < Older  Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Joost Kremers  
View profile  
 More options Aug 29 2007, 8:14 pm
Newsgroups: gnu.emacs.help
From: Joost Kremers <joostkrem...@yahoo.com>
Date: 30 Aug 2007 00:14:53 GMT
Local: Wed, Aug 29 2007 8:14 pm
Subject: Re: doc-view.el --- View PDF/PostStript/DVI files in Emacs

Xavier Maillard wrote:
> Hi Tassilo,

>    --8<---------------cut here---------------start------------->8---
>    (defmacro defparameter (symbol &optional initvalue docstring)
>      "Common Lisps defparameter."
>      `(progn
>    (defvar ,symbol nil ,docstring)
>    (setq   ,symbol ,initvalue)))
>    --8<---------------cut here---------------end--------------->8---

>    But that was just a typo.  Please update, I removed it.

> I do not see what the typo you are talking about is. Where is the
> error in this code snipet ?

the code snippet does not have a typo, it's tassilo's reply to my question
how to get defparameter in elisp. the typo is the fact that there was a
defparamater in his code.

--
Joost Kremers                                      joostkrem...@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tassilo Horn  
View profile  
 More options Aug 30 2007, 3:09 am
Newsgroups: gnu.emacs.help
From: Tassilo Horn <tass...@member.fsf.org>
Date: Thu, 30 Aug 2007 09:09:55 +0200
Local: Thurs, Aug 30 2007 3:09 am
Subject: Re: doc-view.el --- View PDF/PostStript/DVI files in Emacs

Bill Clementson <billc...@gmail.com> writes:

Hi Bill,

> Looks like a defparameter snuck into that last commit. You should
> change it to a defvar.

Done so.  I think I have to create a function that changes to
defparameter, evaluates the sexp and changes back to defvar...

Thanks,
Tassilo
--
      "DRM manages rights in the same way a jail manages freedom"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tassilo Horn  
View profile  
 More options Aug 30 2007, 3:14 am
Newsgroups: gnu.emacs.help
From: Tassilo Horn <tass...@member.fsf.org>
Date: Thu, 30 Aug 2007 09:14:54 +0200
Local: Thurs, Aug 30 2007 3:14 am
Subject: Re: doc-view.el --- View PDF/PostStript/DVI files in Emacs

Joost Kremers <joostkrem...@yahoo.com> writes:

Hi Joost,

>> You can still slice with:

> yes, i saw that function. however, the thing is, the text itself is
> simply too large to fit on my screen. ;-) telling doc-view to create
> smaller images wouldn't work either, because then the text becomes too
> small to read.

But you should be able to scroll with C-v/M-v or the arrow keys, aren't
you?

Yes, I know.  Emacs' image scrolling capabilities are somewhat poor.

> btw, defparameter is back again, and you've made a typo:
> doc-view-scroll-dows-or-previous-page (twice)
> ...................^

Thanks, I've fixed both.

Bye,
Tassilo
--
Chuck Norris CAN believe it's not butter.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tassilo Horn  
View profile  
 More options Aug 30 2007, 3:16 am
Newsgroups: gnu.emacs.help
From: Tassilo Horn <tass...@member.fsf.org>
Date: Thu, 30 Aug 2007 09:16:33 +0200
Local: Thurs, Aug 30 2007 3:16 am
Subject: Re: doc-view.el --- View PDF/PostStript/DVI files in Emacs

Xavier Maillard <x...@gnu.org> writes:

Hi Xavier,

>    I can see that Tassilo might want to keep his bindings as he also
>    has the characters "n" and "p" bound to the "next/previous PDF
>    page" functions; however, I think that (if he keeps the existing
>    bindings) the "M-p" binding should be changed to "C-p".

> I agree with that statement.

Me, too.  And I changed the binding to C-p some days ago. :-)

Bye,
Tassilo
--
Chuck Norris is not Irish. His hair is soaked in the blood of his victims.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tassilo Horn  
View profile  
 More options Aug 30 2007, 3:51 am
Newsgroups: gnu.emacs.help
From: Tassilo Horn <tass...@member.fsf.org>
Date: Thu, 30 Aug 2007 09:51:55 +0200
Local: Thurs, Aug 30 2007 3:51 am
Subject: Re: doc-view.el --- View PDF/PostStript/DVI files in Emacs

Tassilo Horn <tass...@member.fsf.org> writes:
> I think I have to create a function that changes to defparameter,
> evaluates the sexp and changes back to defvar...

Done!

--8<---------------cut here---------------start------------->8---
(defun th-eval-last-defvar-as-defparameter (ARG)
  "Eval the `defvar' before point as if it was a `defparameter'."
  (interactive "P")
  (save-excursion
    (let ((sexp (buffer-substring-no-properties
                 (point)
                 (progn
                   (backward-sexp)
                   (point)))))
      (with-temp-buffer
        (insert sexp)
        (goto-char (point-min))
        (condition-case nil
            (progn
              (search-forward "(defvar ")
              (replace-match "(defparameter ")
              (goto-char (point-max))
              (eval-last-sexp ARG))
          (error (message "The sexp before point must be a defvar
          form!")))))))
--8<---------------cut here---------------end--------------->8---

Now it's bound to `C-x C-v'.  Hopefully this was my last defparameter
checkin.

Bye,
Tassilo
--
People say that  if you play Microsoft CD's  backwards, you hear satanic
things,  but that's  nothing, because  if you  play them  forwards, they
install Windows.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joost Kremers  
View profile  
 More options Aug 30 2007, 5:37 am
Newsgroups: gnu.emacs.help
From: Joost Kremers <joostkrem...@yahoo.com>
Date: 30 Aug 2007 09:37:23 GMT
Local: Thurs, Aug 30 2007 5:37 am
Subject: Re: doc-view.el --- View PDF/PostStript/DVI files in Emacs

Tassilo Horn wrote:
> But you should be able to scroll with C-v/M-v or the arrow keys, aren't
> you?

yes, certainly.

> Thanks, I've fixed both.

thank *you* for writing doc-view.el. ;-)

--
Joost Kremers                                      joostkrem...@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "doc-view.el now allows searching (was: doc-view.el --- View PDF/PostStript/DVI files in Emacs)" by Tassilo Horn
Tassilo Horn  
View profile  
 More options Aug 30 2007, 7:52 am
Newsgroups: gnu.emacs.help
From: Tassilo Horn <tass...@member.fsf.org>
Date: Thu, 30 Aug 2007 13:52:51 +0200
Local: Thurs, Aug 30 2007 7:52 am
Subject: doc-view.el now allows searching (was: doc-view.el --- View PDF/PostStript/DVI files in Emacs)

Joost Kremers <joostkrem...@yahoo.com> writes:

Hi Joost,

>> Thanks, I've fixed both.

> thank *you* for writing doc-view.el. ;-)

Hey, it's a whole bunch of fun.  I've just finished implementing a new
feature: Now you can REGEXP-SEARCH in documents.  Please git-pull and
give it a try.  The commentary explains how to use it.

I tested it a bit and it seems to work for me, but certainly I added
some new bugs, too.

Bye,
Tassilo
--
     My software never has bugs. It just develops random features.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "doc-view.el --- View PDF/PostStript/DVI files in Emacs" by Daniel Jensen
Daniel Jensen  
View profile  
 More options Aug 30 2007, 1:15 pm
Newsgroups: gnu.emacs.help
From: dan...@bigwalter.net (Daniel Jensen)
Date: Thu, 30 Aug 2007 19:15:59 +0200
Local: Thurs, Aug 30 2007 1:15 pm
Subject: Re: doc-view.el --- View PDF/PostStript/DVI files in Emacs

Tassilo Horn <tass...@member.fsf.org> writes:
>     I think I have to create a function that changes to
> defparameter, evaluates the sexp and changes back to defvar...

Why not use C-M-x (eval-defun)?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "doc-view.el now allows searching (was: doc-view.el --- View PDF/PostStript/DVI files in Emacs)" by Bill Clementson
Bill Clementson  
View profile  
 More options Aug 30 2007, 1:25 pm
Newsgroups: gnu.emacs.help
From: Bill Clementson <billc...@gmail.com>
Date: Thu, 30 Aug 2007 10:25:02 -0700
Local: Thurs, Aug 30 2007 1:25 pm
Subject: Re: doc-view.el now allows searching (was: doc-view.el --- View PDF/PostStript/DVI files in Emacs)
Hi Tassilo,

Tassilo Horn <tass...@member.fsf.org> writes:
> Hey, it's a whole bunch of fun.  I've just finished implementing a new
> feature: Now you can REGEXP-SEARCH in documents.  Please git-pull and
> give it a try.  The commentary explains how to use it.

Hey, what a coincidence - I was just about to write a note saying
something along the lines of "now that the speed issue has been
addressed, the biggest remaining shortfall is..." and you went and
addressed it before I finished writing the post! ;-)

It would be nice if there was some way of highlighting the matching
terms in the document; however, I can't see how you would be able to
do that. Alternatively, as each matching page is displayed with
"C-S-n", perhaps you could display at the bottom of the page the
matches on that page with a certain amount of context - (e.g. - 10
words on either side of each match). That would let the reader find
the matches more easily on that page.

- Bill


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "doc-view.el --- View PDF/PostStript/DVI files in Emacs" by Tassilo Horn
Tassilo Horn  
View profile  
 More options Aug 30 2007, 1:34 pm
Newsgroups: gnu.emacs.help
From: Tassilo Horn <tass...@member.fsf.org>
Date: Thu, 30 Aug 2007 19:34:33 +0200
Local: Thurs, Aug 30 2007 1:34 pm
Subject: Re: doc-view.el --- View PDF/PostStript/DVI files in Emacs

dan...@bigwalter.net (Daniel Jensen) writes:

Hi Daniel,

>>     I think I have to create a function that changes to
>> defparameter, evaluates the sexp and changes back to defvar...

> Why not use C-M-x (eval-defun)?

Hey, cool.  I didn't know this command.

Thanks a lot,
Tassilo
--
      "DRM manages rights in the same way a jail manages freedom"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "doc-view.el blog posting" by Bill Clementson
Bill Clementson  
View profile  
 More options Aug 30 2007, 6:02 pm
Newsgroups: gnu.emacs.help
From: Bill Clementson <billc...@gmail.com>
Date: Thu, 30 Aug 2007 15:02:13 -0700
Local: Thurs, Aug 30 2007 6:02 pm
Subject: doc-view.el blog posting
Hi Tassilo,

FYI - I just posted about doc-view.el on my blog:
http://bc.tech.coop/blog/070830.html

Hopefully, my post is fairly accurate! ;-)

- Bill


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "doc-view.el now allows searching (was: doc-view.el --- View PDF/PostStript/DVI files in Emacs)" by Xavier Maillard
Xavier Maillard  
View profile  
 More options Aug 30 2007, 9:00 pm
Newsgroups: gnu.emacs.help
From: Xavier Maillard <x...@gnu.org>
Date: Fri, 31 Aug 2007 03:00:34 +0200
Local: Thurs, Aug 30 2007 9:00 pm
Subject: Re: doc-view.el now allows searching (was: doc-view.el --- View PDF/PostStript/DVI files in Emacs)
Hi Tassilo,

   Hey, it's a whole bunch of fun.  I've just finished implementing a new
   feature: Now you can REGEXP-SEARCH in documents.  Please git-pull and
   give it a try.  The commentary explains how to use it.

I tried to git-pull but I got an error:

Cannot get the repository state from http://www.tsdh.de/repos/git/doc-view.git

Is there something I am doing wrong or what ?

Regards,

        Xavier
--
http://www.gnu.org
http://www.april.org
http://www.lolica.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "doc-view.el --- View PDF/PostStript/DVI files in Emacs" by Xavier Maillard
Xavier Maillard  
View profile  
 More options Aug 30 2007, 9:00 pm
Newsgroups: gnu.emacs.help
From: Xavier Maillard <x...@gnu.org>
Date: Fri, 31 Aug 2007 03:00:29 +0200
Local: Thurs, Aug 30 2007 9:00 pm
Subject: Re: doc-view.el --- View PDF/PostStript/DVI files in Emacs

   the code snippet does not have a typo, it's tassilo's reply to my question
   how to get defparameter in elisp. the typo is the fact that there was a
   defparamater in his code.

Oops sorry :)

        Xavier
--
http://www.gnu.org
http://www.april.org
http://www.lolica.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "doc-view.el now allows searching" by Tassilo Horn
Tassilo Horn  
View profile  
 More options Aug 31 2007, 3:55 am
Newsgroups: gnu.emacs.help
From: Tassilo Horn <tass...@member.fsf.org>
Date: Fri, 31 Aug 2007 09:55:23 +0200
Local: Fri, Aug 31 2007 3:55 am
Subject: Re: doc-view.el now allows searching

Bill Clementson <billc...@gmail.com> writes:

Hi Bill,

> Tassilo Horn <tass...@member.fsf.org> writes:
>> Hey, it's a whole bunch of fun.  I've just finished implementing a
>> new feature: Now you can REGEXP-SEARCH in documents.  Please git-pull
>> and give it a try.  The commentary explains how to use it.

> Hey, what a coincidence - I was just about to write a note saying
> something along the lines of "now that the speed issue has been
> addressed, the biggest remaining shortfall is..." and you went and
> addressed it before I finished writing the post! ;-)

Something in my head whispered: "Bill wants to search documents...
search documents... uooouuuhhh!"

> It would be nice if there was some way of highlighting the matching
> terms in the document;

Haha, this one was nice! :-)

> however, I can't see how you would be able to do that. Alternatively,
> as each matching page is displayed with "C-S-n", perhaps you could
> display at the bottom of the page the matches on that page with a
> certain amount of context - (e.g. - 10 words on either side of each
> match).

I'll address this later today.

> That would let the reader find the matches more easily on that page.

Yes, when I tested the searching functionality I always thought: "Why's
that page a match, I cannot find that damn "foo" anywhere!" (Till some
minutes later I found that little "football" somewhere.)

Bye,
Tassilo
--
Chuck Norris ordered a Big Mac at Burger King, and got one.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "doc-view.el blog posting" by Tassilo Horn
Tassilo Horn  
View profile  
 More options Aug 31 2007, 3:47 am
Newsgroups: gnu.emacs.help
From: Tassilo Horn <tass...@member.fsf.org>
Date: Fri, 31 Aug 2007 09:47:03 +0200
Local: Fri, Aug 31 2007 3:47 am
Subject: Re: doc-view.el blog posting

Bill Clementson <billc...@gmail.com> writes:

Hi Bill,

> FYI - I just posted about doc-view.el on my blog:
> http://bc.tech.coop/blog/070830.html

> Hopefully, my post is fairly accurate! ;-)

Hey, it's very nice.  I'm grabbing the video right now.  I'm very
curious how doc-view looks in action. :-P

Bye,
Tassilo
--
Fighting patents one by one  will never eliminate the danger of software
patents,  any  more than  swatting  mosquitoes  will eliminate  malaria.
(Richard M. Stallman)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "doc-view.el now allows searching" by Tassilo Horn
Tassilo Horn  
View profile  
 More options Aug 31 2007, 3:42 am
Newsgroups: gnu.emacs.help
From: Tassilo Horn <tass...@member.fsf.org>
Date: Fri, 31 Aug 2007 09:42:55 +0200
Local: Fri, Aug 31 2007 3:42 am
Subject: Re: doc-view.el now allows searching

Xavier Maillard <x...@gnu.org> writes:

Hi Xavier,

> I tried to git-pull but I got an error:

> Cannot get the repository state from
> http://www.tsdh.de/repos/git/doc-view.git

> Is there something I am doing wrong or what ?

No, but sometimes the server is down for some minutes.  Please try
again.

Bye,
Tassilo
--
182,000 Americans die from Chuck Norris-related accidents every year.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "doc-view.el now allows searching (was: doc-view.el --- View PDF/PostStript/DVI files in Emacs)" by Joost Kremers
Joost Kremers  
View profile  
 More options Aug 31 2007, 7:55 am
Newsgroups: gnu.emacs.help
From: Joost Kremers <joostkrem...@yahoo.com>
Date: 31 Aug 2007 11:55:34 GMT
Local: Fri, Aug 31 2007 7:55 am
Subject: Re: doc-view.el now allows searching (was: doc-view.el --- View PDF/PostStript/DVI files in Emacs)

Tassilo Horn wrote:
> Joost Kremers <joostkrem...@yahoo.com> writes:

> Hi Joost,

>>> Thanks, I've fixed both.

>> thank *you* for writing doc-view.el. ;-)

> Hey, it's a whole bunch of fun.  I've just finished implementing a new
> feature: Now you can REGEXP-SEARCH in documents.  Please git-pull and
> give it a try.  The commentary explains how to use it.

it works fine, i haven't found any real bugs (yet ;-).

one thing though: the first time you press C-s, the document gets converted
to txt, but once this is done, you're not asked for a search string and no
searching is done. you have to press C-s again to do this. is this
intentional? if so, i must admit it's not very intuitive.

and another thing: would it be possible to inform the user about the
dimensions of the image when slicing with `s s'?

TIA

joost

--
Joost Kremers                                      joostkrem...@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "doc-view.el now allows searching" by Tassilo Horn
Tassilo Horn  
View profile  
 More options Aug 31 2007, 9:02 am
Newsgroups: gnu.emacs.help
From: Tassilo Horn <tass...@member.fsf.org>
Date: Fri, 31 Aug 2007 15:02:45 +0200
Local: Fri, Aug 31 2007 9:02 am
Subject: Re: doc-view.el now allows searching

Bill Clementson <billc...@gmail.com> writes:

Hi Bill,

> Alternatively, as each matching page is displayed with "C-S-n",
> perhaps you could display at the bottom of the page the matches on
> that page with a certain amount of context - (e.g. - 10 words on
> either side of each match).

Now I display the line containing the match at the bottom.  It's
possible that you have to delete the TXT files from the cache, because
this required a new option to pdftotext, so that the lines in the PDF
match the lines in the TXT file.

Bye,
Tassilo
--
Chuck  Norris is responsible  for China's  over-population. He  hosted a
Karate tournament  in Beijing  and all women  within 1,000  miles became
pregnant instantly.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tassilo Horn  
View profile  
 More options Aug 31 2007, 10:42 am
Newsgroups: gnu.emacs.help
From: Tassilo Horn <tass...@member.fsf.org>
Date: Fri, 31 Aug 2007 16:42:13 +0200
Local: Fri, Aug 31 2007 10:42 am
Subject: Re: doc-view.el now allows searching

Joost Kremers <joostkrem...@yahoo.com> writes:

Hi Joost,

>> Hey, it's a whole bunch of fun.  I've just finished implementing a
>> new feature: Now you can REGEXP-SEARCH in documents.  Please git-pull
>> and give it a try.  The commentary explains how to use it.

> it works fine, i haven't found any real bugs (yet ;-).

Because I don't make any faults. :-)

> one thing though: the first time you press C-s, the document gets
> converted to txt, but once this is done, you're not asked for a search
> string and no searching is done. you have to press C-s again to do
> this. is this intentional?

Yes, because the process may take several seconds on slow machines and
big documents.

> if so, i must admit it's not very intuitive.

Yeah, now it's don this way: If the process finishes and the user didn't
switch to another buffer, the user will be queried for a regexp.  If he
switched away, he won't be bothered.

> and another thing: would it be possible to inform the user about the
> dimensions of the image when slicing with `s s'?

Yes, now it always displays the valid range.

Bye,
Tassilo
--
GNU Emacs is a text editor for Über-Geeks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joost Kremers  
View profile  
 More options Aug 31 2007, 11:27 am
Newsgroups: gnu.emacs.help
From: Joost Kremers <joostkrem...@yahoo.com>
Date: 31 Aug 2007 15:27:22 GMT
Local: Fri, Aug 31 2007 11:27 am
Subject: Re: doc-view.el now allows searching

Tassilo Horn wrote:
> Joost Kremers <joostkrem...@yahoo.com> writes:

> Hi Joost,

>>> Hey, it's a whole bunch of fun.  I've just finished implementing a
>>> new feature: Now you can REGEXP-SEARCH in documents.  Please git-pull
>>> and give it a try.  The commentary explains how to use it.

>> it works fine, i haven't found any real bugs (yet ;-).

> Because I don't make any faults. :-)

heh, i wish i could say the same about me. ;-)

> Yeah, now it's don this way: If the process finishes and the user didn't
> switch to another buffer,

ah, i hadn't though of that possibility... true of course, that must be
taken into account.

> the user will be queried for a regexp.  If he
> switched away, he won't be bothered.

sounds perfect.

>> and another thing: would it be possible to inform the user about the
>> dimensions of the image when slicing with `s s'?

> Yes, now it always displays the valid range.

great!

--
Joost Kremers                                      joostkrem...@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joost Kremers  
View profile  
 More options Aug 31 2007, 11:38 am
Newsgroups: gnu.emacs.help
From: Joost Kremers <joostkrem...@yahoo.com>
Date: 31 Aug 2007 15:38:23 GMT
Local: Fri, Aug 31 2007 11:38 am
Subject: Re: doc-view.el now allows searching
[doc-view]

hi tassilo,

one more thing: i added (require 'cl) to the source to keep the compiler
from complaining about remove-if.

--
Joost Kremers                                      joostkrem...@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bill Clementson  
View profile  
 More options Aug 31 2007, 12:38 pm
Newsgroups: gnu.emacs.help
From: Bill Clementson <billc...@gmail.com>
Date: Fri, 31 Aug 2007 09:38:59 -0700
Local: Fri, Aug 31 2007 12:38 pm
Subject: Re: doc-view.el now allows searching
Hi Tassilo,

Tassilo Horn <tass...@member.fsf.org> writes:
> Bill Clementson <billc...@gmail.com> writes:
>> Alternatively, as each matching page is displayed with "C-S-n",
>> perhaps you could display at the bottom of the page the matches on
>> that page with a certain amount of context - (e.g. - 10 words on
>> either side of each match).

> Now I display the line containing the match at the bottom.  It's
> possible that you have to delete the TXT files from the cache, because
> this required a new option to pdftotext, so that the lines in the PDF
> match the lines in the TXT file.

Great - that looks really nice.

I tried some searches on a number of different files and they almost
all worked fine. However, when I tried searching Peter Seibel's
Practical Common Lisp PDF book (free download from Apress:
http://www.apress.com/free/index.html), there were mismatches between
the page that was displayed and the matching text. The page number
corresponded to the page number that was displayed; however, the
search term wasn't on the page. The line containing the match was
displayed correctly; however, it was for a page later in the
document. This seemed to happen for any searches I did of the PCL pdf
file.

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.

- Bill


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bill Clementson  
View profile  
 More options Aug 31 2007, 12:44 pm
Newsgroups: gnu.emacs.help
From: Bill Clementson <billc...@gmail.com>
Date: Fri, 31 Aug 2007 09:44:11 -0700
Local: Fri, Aug 31 2007 12:44 pm
Subject: Re: doc-view.el now allows searching
Hi Tassilo,

Tassilo Horn <tass...@member.fsf.org> writes:
> Bill Clementson <billc...@gmail.com> writes:
>> Tassilo Horn <tass...@member.fsf.org> writes:
>>> Hey, it's a whole bunch of fun.  I've just finished implementing a
>>> new feature: Now you can REGEXP-SEARCH in documents.  Please git-pull
>>> and give it a try.  The commentary explains how to use it.

>> Hey, what a coincidence - I was just about to write a note saying
>> something along the lines of "now that the speed issue has been
>> addressed, the biggest remaining shortfall is..." and you went and
>> addressed it before I finished writing the post! ;-)

> Something in my head whispered: "Bill wants to search documents...
> search documents... uooouuuhhh!"

Good to hear that my telepathic, DWIW utility is working properly. It
also is slated to appear in CVS Emacs shortly. ;-)

>> It would be nice if there was some way of highlighting the matching
>> terms in the document;

> Haha, this one was nice! :-)

I thought you would find that amusing. ;-)

>> however, I can't see how you would be able to do that. Alternatively,
>> as each matching page is displayed with "C-S-n", perhaps you could
>> display at the bottom of the page the matches on that page with a
>> certain amount of context - (e.g. - 10 words on either side of each
>> match).

> I'll address this later today.

Great - I see you've already done it and I have a few comments in a
separate reply.

>> That would let the reader find the matches more easily on that page.

> Yes, when I tested the searching functionality I always thought: "Why's
> that page a match, I cannot find that damn "foo" anywhere!" (Till some
> minutes later I found that little "football" somewhere.)

I have the same problem - if I don't have the phrase pointed out to
me, I can spend ages trying to find it on the page.

- Bill


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tassilo Horn  
View profile  
 More options Aug 31 2007, 1:15 pm
Newsgroups: gnu.emacs.help
From: Tassilo Horn <tass...@member.fsf.org>
Date: Fri, 31 Aug 2007 19:15:23 +0200
Local: Fri, Aug 31 2007 1:15 pm
Subject: Re: doc-view.el now allows searching

Joost Kremers <joostkrem...@yahoo.com> writes:

Hi Joost,

> one more thing: i added (require 'cl) to the source to keep the
> compiler from complaining about remove-if.

Oh, indeed.  I added it.

Bye,
Tassilo
--
People sometimes  ask me if it  is a sin in  the Church of  Emacs to use
vi. Using a free  version of vi is not a sin; it  is a penance. So happy
hacking. (Richard M. Stallman)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tassilo Horn  
View profile  
 More options Aug 31 2007, 1:46 pm
Newsgroups: gnu.emacs.help
From: Tassilo Horn <tass...@member.fsf.org>
Date: Fri, 31 Aug 2007 19:46:37 +0200
Local: Fri, Aug 31 2007 1:46 pm
Subject: Re: doc-view.el now allows searching

Bill Clementson <billc...@gmail.com> writes:

Hi Bill,

>> Now I display the line containing the match at the bottom.  It's
>> possible that you have to delete the TXT files from the cache,
>> because this required a new option to pdftotext, so that the lines in
>> the PDF match the lines in the TXT file.

> Great - that looks really nice.

Yippie!

And it's even getting better: the search matches are now displayed in
the help-echo, too.

> I tried some searches on a number of different files and they almost
> all worked fine. However, when I tried searching Peter Seibel's
> Practical Common Lisp PDF book (free download from Apress:
> http://www.apress.com/free/index.html), there were mismatches between
> the page that was displayed and the matching text. The page number
> corresponded to the page number that was displayed; however, the
> search term wasn't on the page. The line containing the match was
> displayed correctly; however, it was for a page later in the
> document. This seemed to happen for any searches I did of the PCL pdf
> file.

I have that PDF and it works for me.  Could you please delete the
doc.txt in the cache and try again?

If it still doesn't work, please post your search regexp.

Bye,
Tassilo
--
When in a bar, you can order a drink called a "Chuck Norris". It is also
known as a "Bloody Mary", if your name happens to be Mary.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 26 - 50 of 77 < Older  Newer >
« Back to Discussions « Newer topic     Older topic »