emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Tim O'Callaghan" <timo@dspsrv.com>
To: Karl Maihofer <ignoramus@gmx.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Searching inside of attachments (pdf, odt)?
Date: Tue, 13 Oct 2009 16:31:05 +0200	[thread overview]
Message-ID: <3d6808890910130731w4fe96200k97a59f82de6200e5@mail.gmail.com> (raw)
In-Reply-To: <20091013100924.147106zsin75yyt0@webmail.df.eu>

FWIW

I think this might be handled easier if all that happened would be a
grep on the attachments, or directories.

The usual grep interface can be used and then it becomes a fast
general purpose data mining extension.

I can see it being used to search a codebase or website for a text string.

I guess it could be further refined with some kind of dispatcher -
like the file dispatcher that invokes a specific tool to view an
attachment, except it uses an attachment specific search or defaults
to grep if its not an emacs editable file.

Possibly an extension fo the current "file:<text-file>::<in buffer
search >", but uses this grep or whatever if it comes up against
something un-emacs-editable.

An added bonus of a search dispatcher type approach: it would give
users the chance to extend the search into whatever tool(s)/file
format(s) they are using without having to become core to org.

Just my 2eurocents worth:

Tim.
2009/10/13 Karl Maihofer <ignoramus@gmx.de>:
> Hi Samuel,
>
> Samuel Wales <samologist@gmail.com> schrieb:
>>
>> My idea is to use ordinary agenda search like this:
>>  1) agenda search displays the headline that has the
>>     attachment.
>>  2) org uses an alist to determine the correct textifier
>>     according to extension.  e.g. '((".pdf" . "pdf2text")).
>>  3) agenda searches normally (as if the contents of the
>>     attachment were body text).
>
> correct me if i'm wrong, but your approach is to search inside (an)
> already identified attachment(s)?
>
> I'd like to find attachments by searching inside the whole set of
> attachments. I do have many articles (pdf-files) to deal with. When i
> write a report on a special topic i have to find articles that are
> relevant to the topic i'm working on at the moment.
>
> If we use the standard textifiers the procedure will probably get very
> slow if there are many attachments. I think using an index would be a
> good idea.
>
> To describe what i'm looking for:
> My first step is to create an entry for each article, define tags
> (describing the content) and add some notes.
>
> * Title of the article                           :tag:tag:tag:
>  :PROPERTIES:
>  :Attachments: article.pdf
>  :ID: 387HJGJD78-758GZFHF87-JKHKJ57dfd9
>  :END:
>  - Very good explanation of X.
>  - New view on Y.
>
> But it would be much more powerful to be able not only to find an
> entry by searching for tags but to search inside the attachments.
>
> I'm not a programmer, so sorry if my ideas are stupid. ;-) But i thing
> the following questions have to be answered:
>
> 1) Is there a tool like Lucene that can index pdf-files as they are
>   stored by orgmode (directory structure)?
> 2) Is it possible to send a query to this tool from within emacs?
> 3) Is it possible to "import" the answer of the tool into emacs and
>   combine it with orgmode so that the result looks somehow like this:
>   "Search string 'XX' found in file 'article.pdf' attached to task
>   'Title of the article'". A click on the name of the attachment
>   should open the pdf-file in the pdf-reader; a click on the task
>   name should show the task in the org-buffer.
>
> Karl
>
>
>
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

  reply	other threads:[~2009-10-13 14:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-12 13:40 Searching inside of attachments (pdf, odt)? Karl Maihofer
2009-10-12 22:59 ` Samuel Wales
2009-10-13  8:09   ` Karl Maihofer
2009-10-13 14:31     ` Tim O'Callaghan [this message]
2009-10-13 17:09     ` Samuel Wales
2009-10-14 16:47       ` Karl Maihofer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3d6808890910130731w4fe96200k97a59f82de6200e5@mail.gmail.com \
    --to=timo@dspsrv.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=ignoramus@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).