View Single Post
Old 06-20-2020, 10:37 AM   #879
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Carmelocotonto View Post
Thanks. Something like...
epub:save_to_disk = ([{#words} - {comments}] -> comments)

But I don't see what happens. Where will the new 'comments' be?

I have created custom columns but I have never used templates. Any help will help me.

This is what I want (I have modified this one by hand):
Attachment 180021

And then, polish epub.
What you have would work. But, it would be pretty ugly on the device. What I use is:

Code:
{comments}{:'raw_field("tags")'|<p><b>Tags:</b> |</p>}{rating:rating_as_stars()|<p><b>Rating:</b> |</p>}{#kobo_last_read:|<p><b>Last Read:</b> |</p>}{:'test(field('#words'),'<p>',test(field('#pages'),'<p>',''))'}{#words:|<b>Word count:</b> |}{:'test(field('#words'),test(field('#pages'),' ',''),'')'}{#pages:|<b>Page count:</b> |}{:'test(field('#words'),'</p>',test(field('#pages'),'</p>',''))'}
That produces something like:
Quote:
This is the book comment.

Tags: Science Fiction, Space Opera
Pages: 200 Words: 123450
The complications in the plugboard is in case any of the values are missing.

Another was posted in the Kobo forum in the last couple of days. That one puts the details first. And the post has some screenshots of what it looks like on a Kobo device.
davidfor is offline   Reply With Quote