[Xapian-tickets] [Xapian] #570: omindex --filter option for comands that don't take input file as last argument

Xapian nobody at xapian.org
Wed Oct 12 13:45:27 BST 2011


#570: omindex --filter option for comands that don't take input file as last
argument
-------------------------+--------------------------------------------------
 Reporter:  catkin       |       Owner:  olly 
     Type:  enhancement  |      Status:  new  
 Priority:  normal       |   Milestone:       
Component:  Omega        |     Version:  1.2.5
 Severity:  normal       |    Keywords:       
Blockedby:               |    Platform:  All  
 Blocking:               |  
-------------------------+--------------------------------------------------
 Could the omindex --filter option be modified to service commands that do
 not take the input file as the last argument?

 An example (not a good one because omindex uses it by default if
 available) is pdftotext.  From the pdftotext man page:
 {{{
 SYNOPSIS
 pdftotext [options] [PDF-file [text-file]]

 DESCRIPTION
 Pdftotext converts Portable Document Format (PDF) files to plain text.

 Pdftotext reads the PDF file, PDF-file, and writes a text file,
 text-file. If text-file is not specified, pdftotext converts
 file.pdf to file.txt.  If text-file is '-', the text is sent to
 stdout.
 }}}

 One way to implement this would be to accept %f as a token for the input
 file name.  In case a literal %f was required in the command it could be
 escaped as \%f.

 For the pdftotext example the full option would be:

 {{{
 --filter 'application/pdf:pdftotext %f -'
 }}}

-- 
Ticket URL: <http://trac.xapian.org/ticket/570>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list