Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-17-2019, 01:15 PM   #1
Bhuvanesh
Junior Member
Bhuvanesh began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2019
Device: Android phone (Samsung Galaxy S9+), MacOSX
Populating a custom Yes/No field based on results from bash command executed on file

I would like to mark PDF files in Calibre as searchable/not-searchable (I guess the former would be text+images and the latter would be un-OCR'ed images). I would like to try populating this custom Yes/No field based on results from a command executed in bash on the file, e.g. whether
strings `file` | grep -c FontName
gives an integer greater than 0.

Is this possible, and if so, how do I do it?
Bhuvanesh is offline   Reply With Quote
Old 05-17-2019, 09:20 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 34,407
Karma: 10323934
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://manual.calibre-ebook.com/gen...calibredb.html
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically populating metadata for PDF files based on filename Bhuvanesh Library Management 4 01-15-2019 01:39 AM
Question about populating custom field jmricker Plugins 3 08-09-2014 02:10 PM
Show tags searched results only in library field Scottrow Library Management 3 11-09-2013 09:04 PM
Automatically populating metadata "tags" field from directory structure battaglia01 Calibre 1 12-13-2012 09:23 PM
Touch Script: Creating and populating shelves based on calibre tags Krytes Kobo Reader 7 10-02-2012 01:57 PM


All times are GMT -4. The time now is 08:03 PM.


MobileRead.com is a privately owned, operated and funded community.