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

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 08-26-2018, 12:56 AM   #1
nqk
Addict
nqk has learned how to buy an e-book online
 
Posts: 272
Karma: 92
Join Date: Feb 2012
Device: Samsung Galaxy Tab 8.9
Snippet and Metadata

Dear Kovid,

Is it possible to insert metadata using snippet? Sometimes, I'd like to change the Jacket or to insert Goodreads link at the end of the file so that I can quickly go there to rate and comment, before I forget.

Now I only use $1 and $2 to jump around. Maybe I have missed some good functions.
nqk is offline   Reply With Quote
Old 08-26-2018, 01:00 AM   #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: 33,608
Karma: 10209526
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, snippets do not have access to any data about the book. They only know about the text in their templates. Someday I will add a more general macro system to the editor for which it would be possible to define your own arbitrary python code to do things. But not for a while
kovidgoyal is online now   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
Code snippet misses line numbers and messes indentation up dom9 Conversion 3 10-09-2017 12:09 AM
Pre-formatted code snippet renders badly CBSA Editor 19 02-25-2017 01:47 PM
Snippet Mania Thom* Editor 2 01-27-2017 10:45 AM
Regarding using metadata objects in identify method of metadata download plugin api aprekates Development 1 07-06-2014 04:35 AM
What is the little snippet in the front of a paperback called? bfollowell Writers' Corner 9 06-24-2011 05:09 AM


All times are GMT -4. The time now is 09:47 PM.


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