Quote:
Originally Posted by davidfor
The point of using a template is that you can add code. My examples were just that, examples. Simple things that I used to test. I understand enough about the calibre templates, that I didn't need to do more.
As to what is wrong, you need to tell us. There is an error the template for the Lower estimate, but, I don't know if that is the actual issue or not. This has an extra parenthesis in it. If you used the Template editor it would show an error and try to tell you where it is. But, the correct template should be:
Code:
if ($$#words > 6000) then round($$#words / 12000) - 1 else 0 fi
Looking at these, I don't know what you are trying to do. The value for the estimates is supposed to be minutes. Which the device displays a hours. I am pretty sure that zero and one will be displayed as zero by the device or not display anything.
|
Everything is fine now.
If i use Steven's template, the estimates always start at 0 to whatever figure the words divided by 12000 is.
So i used 12000 for lower estimate 9000 for upper estimate and i get decent numbers now. When the words are less than 9000 i get an estimate of 0 to 1 hour reading.
Thank you to everyone that helped.