Quote:
Originally Posted by nqk
I have a custom column of #pages and the values vary between about 100 and 2500. Most of them are between 200 - 500. None of them have negative values,  . Others' values should differ.
So I think you will find it hard to entertain users by giving a fixed set of values. I personally only care for: Short, Medium, Long or Very Short, Short, Medium, Long, Very Long. If you can provide something like that and let user define by themselves the ranges of words or pages under each category, it would be nice.
And if I could achieve this in Calibre, I wouldn't need this feature added because it would show up anyway.
|
You can do this in calibre in one of two ways
- Use a column built from other columns (a composite column). The template would generate whatever text you want for whatever number range you want. It would a General Program Mode template that would use "first_non_empty" and "cmp". This has the advantage that it is in calibre proper. It has the disadvantage that the values wouldn't be visible in books fetched over the cloud connection until their metadata had been updated via the wireless device connection.
- Use a calibre python script to fill in a custom column with the right values. You would run the script (automatically) every time calibre exits. This has the advantage that the values would be seen by the cloud connection. It has the disadvantage that it requires a real python program. That said, the program is small. I could give you some samples.