Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-23-2014, 06:48 AM   #1
SpudArmstrong
Junior Member
SpudArmstrong began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2014
Device: none
Book Size

Is there any way to set the size column to display in KB not MB?
I'm new to Calibre and this forum, so apologies if this is in the wrong place.
SpudArmstrong is offline   Reply With Quote
Old 07-23-2014, 11:46 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by SpudArmstrong View Post
Is there any way to set the size column to display in KB not MB?
I'm new to Calibre and this forum, so apologies if this is in the wrong place.
No
What you see is what you See
theducks is offline   Reply With Quote
Advert
Old 07-23-2014, 11:55 AM   #3
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: 45,342
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You can use the template language to create a custom column that displays the size value however you like, see the booksize() function

http://manual.calibre-ebook.com/template_lang.html
kovidgoyal is offline   Reply With Quote
Old 07-24-2014, 04:52 AM   #4
SpudArmstrong
Junior Member
SpudArmstrong began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2014
Device: none
Quote:
Originally Posted by kovidgoyal View Post
You can use the template language to create a custom column that displays the size value however you like, see the booksize() function

http://manual.calibre-ebook.com/template_lang.html
The reason for this request is that I have some very small files that display as 0.0MB. I have tried without success to try and display the size column in kb using custom column. As a newbie to this, I would be really really grateful if you could please walk me through the exact process.
SpudArmstrong is offline   Reply With Quote
Old 07-24-2014, 06:02 AM   #5
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,443
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by SpudArmstrong View Post
The reason for this request is that I have some very small files that display as 0.0MB. I have tried without success to try and display the size column in kb using custom column. As a newbie to this, I would be really really grateful if you could please walk me through the exact process.
1) Create a custom column "built from other columns".
2) Change the "sort/search column" to "Number"
3) Paste the following into the template box.
Code:
program: format_number(divide(booksize(), 1024), '{0:,.1f}KB')
chaley is offline   Reply With Quote
Advert
Old 07-24-2014, 09:58 AM   #6
SpudArmstrong
Junior Member
SpudArmstrong began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2014
Device: none
Thumbs up


You made it look so simple. From all the research that I did yesterday, I can see that I am not the only person looking for this. Calibre is really awesome and the support is wonderful. Thanks again!
SpudArmstrong is offline   Reply With Quote
Old 07-28-2014, 06:06 PM   #7
Katsunami
Grand Sorcerer
Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.
 
Katsunami's Avatar
 
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
Quote:
Originally Posted by chaley View Post
1) Create a custom column "built from other columns".
2) Change the "sort/search column" to "Number"
3) Paste the following into the template box.
Code:
program: format_number(divide(booksize(), 1024), '{0:,.1f}KB')
While this does seem to work for calculating the size, the sorting is not working. It still sorts as if the column is text. Also, is it possible to use the dot as a thousand delimiter and remove the decimal?

I've tried some formatting options, but sometimes I get a very long number (probably the number of bytes the book has), or nothing at all.
Katsunami is offline   Reply With Quote
Old 07-28-2014, 06:26 PM   #8
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,443
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Katsunami View Post
While this does seem to work for calculating the size, the sorting is not working. It still sorts as if the column is text.
Works file for me. The column sorts by number. See the attachment.
Quote:
Also, is it possible to use the dot as a thousand delimiter
Don't know. I doubt it. I never have been able to make the 'n' formatting character (the locale-sensitive integer format) do anything useful.
Quote:
and remove the decimal?
Make the template .0f instead of .1f.
Attached Thumbnails
Click image for larger version

Name:	Clipboard01.png
Views:	150
Size:	15.8 KB
ID:	126083  
chaley is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Font Size Per Book ethanbeyer Kobo Reader 6 11-14-2013 04:33 AM
Book Size Waylander General Discussions 19 10-21-2013 02:02 PM
Full size photo size v. Screensaver size? FF2 Amazon Kindle 5 12-19-2010 11:02 PM
Is there a maximum book size? fishman69 Sony Reader 12 12-14-2008 06:40 PM
Font Size of Sony 505 Proprietary Books Vary From Book to Book! crusader666 Sony Reader 14 01-13-2008 07:47 PM


All times are GMT -4. The time now is 07:32 PM.


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