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-25-2018, 11:56 PM   #1
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 513
Karma: 32106
Join Date: Feb 2012
Device: Onyx Boox Leaf
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, 12: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: 43,776
Karma: 22666666
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 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
Code snippet misses line numbers and messes indentation up dom9 Conversion 3 10-08-2017 11:09 PM
Pre-formatted code snippet renders badly CBSA Editor 19 02-25-2017 12:47 PM
Snippet Mania Thom* Editor 2 01-27-2017 09:45 AM
Regarding using metadata objects in identify method of metadata download plugin api aprekates Development 1 07-06-2014 03:35 AM
What is the little snippet in the front of a paperback called? bfollowell Writers' Corner 9 06-24-2011 04:09 AM


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


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