View Single Post
Old 10-15-2021, 01:17 PM   #1
DyckBook
Morlock
DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.
 
DyckBook's Avatar
 
Posts: 34
Karma: 2734796
Join Date: Oct 2021
Device: Kindle Paperwhite
BuiltinAdd template language function

Does anyone have an example of using the BuiltinAdd template language function in a search and replace? It looks like this in the manual...

add(x [, y]*)
class calibre.utils.formatter_functions.BuiltinAdd

I don't know enough about Python or Regex to build my own, but might be able to modify whatever help you can give to meet my need. That need is that I have an e-book where the note references are out of sync between the chapters and the notes page. I looks like this function might be able to add a few digits to every chapter reference to make them agree, instead of having to make 286 changes manually.

Thanks in advance for any help you can give. In case you're tempted to tell me to just buckle down and learn this, I agree. But, I'm well into my seventies and my calcified brain learns new things so slowly now that I fear I'll be dead before I can figure this out on my own.
DyckBook is offline   Reply With Quote