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-22-2010, 06:26 PM   #1
kgn
Groupie
kgn has learned how to buy an e-book online
 
Posts: 171
Karma: 94
Join Date: May 2010
Location: Brisbane, Australia
Device: Pocketbook 302
feature request - switch templates

I have a couple of Save to Device templates that I use

1. for books that are not in a Series
2. for books that are in a Series

This is because I want to number the book filename with the Series number. This works well - except for books that are not in a Series - it puts a '00' at the front of the file name. So I have two templates that I can switch in the Preferences screen.

This works ok, except it would be nice if the program could do it. ie for any book that has an entry int he Series field, use Template X, otherwise use Template Y.
kgn is offline   Reply With Quote
Old 07-22-2010, 07:17 PM   #2
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Hi kgn,

Another forum member posted this neat trick which will allow you to use the same template for both your cases above.

Set the save template to:
{series} {series_index:>2s} {title} - {authors}

If a book is not in a series then both {series} and {series_index:>2s} are blank. Then, because they are at the beginning of the filename they are trimmed as leading spaces.

(Many thanks to the original poster)
jackie_w is offline   Reply With Quote
Advert
Old 07-22-2010, 07:27 PM   #3
kgn
Groupie
kgn has learned how to buy an e-book online
 
Posts: 171
Karma: 94
Join Date: May 2010
Location: Brisbane, Australia
Device: Pocketbook 302
Quote:
Originally Posted by jackie_w View Post
Hi kgn,

Another forum member posted this neat trick which will allow you to use the same template for both your cases above.
Yeah - I tried that - but in my case it does not work. I also create a folder for each series.

{author_sort[0]}/{author_sort}/{series}/{series_index:0>2s} {title} - {authors}

or

{author_sort[0]}/{author_sort}/{title} - {authors}

I think the real problem is that I pad the series_index with a '0' not a space. This has to be done otherwise the series do not sort correctly for anything over 9.
kgn is offline   Reply With Quote
Old 07-22-2010, 07:57 PM   #4
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by kgn View Post
I think the real problem is that I pad the series_index with a '0' not a space. This has to be done otherwise the series do not sort correctly for anything over 9.
It works for me. Padding with space rather than zero with a 10-book series sorts correctly book1 is first and book10 is last when viewing 'show names as' Filenames rather than book titles.
jackie_w is offline   Reply With Quote
Old 07-22-2010, 08:24 PM   #5
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by jackie_w View Post
It works for me. Padding with space rather than zero with a 10-book series sorts correctly book1 is first and book10 is last when viewing 'show names as' Filenames rather than book titles.
That is the problem, it is limited to 10 books before things stop sorting correctly.
DoctorOhh is offline   Reply With Quote
Advert
Old 07-22-2010, 08:25 PM   #6
kgn
Groupie
kgn has learned how to buy an e-book online
 
Posts: 171
Karma: 94
Join Date: May 2010
Location: Brisbane, Australia
Device: Pocketbook 302
Quote:
Originally Posted by jackie_w View Post
It works for me. Padding with space rather than zero with a 10-book series sorts correctly book1 is first and book10 is last when viewing 'show names as' Filenames rather than book titles.
Well, it might in your special case - but not generally ie

1 book
2 book
3 book
...
9 book
10 book
11 book

would be shown as
1 book
10 book
11 book
2 book
3 book
...
9 book

The way to fix this is to add the leading 0
01 book
02 book
03 book
...
09 book
10 book
11 book

And the real problem is not what is shown in Calibre - it is how the books come up in the eReader.
kgn is offline   Reply With Quote
Old 07-22-2010, 11:36 PM   #7
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
I'm not sure why you are so determined not to believe me so I have done a screencap from my very own PocketBook 360 displaying 14 books - Book 5 to Book 18 - of a test series sent from Calibre using the template I originally proposed.

Unless my eyes deceive me, they are all in the correct order are they not?

Edit: Then as a further test I renumbered Book 5 as Book 1 and resent to the PB360. It was still sorted correctly, at the top of the list, before Book 6.
Attached Thumbnails
Click image for larger version

Name:	series_seq.jpg
Views:	179
Size:	111.5 KB
ID:	55586  

Last edited by jackie_w; 07-22-2010 at 11:50 PM. Reason: Extra test
jackie_w is offline   Reply With Quote
Old 07-23-2010, 12:10 AM   #8
kgn
Groupie
kgn has learned how to buy an e-book online
 
Posts: 171
Karma: 94
Join Date: May 2010
Location: Brisbane, Australia
Device: Pocketbook 302
Quote:
Originally Posted by jackie_w View Post
I'm not sure why you are so determined not to believe me so I have done a screencap from my very own PocketBook 360 displaying 14 books - Book 5 to Book 18 - of a test series sent from Calibre using the template I originally proposed.
I do believe you! As I said (in my earlier response) - in your special case you are correct. Try putting the series_index at the front though - it won't work. Calibre will strip off your leading space. This is why I pad with a '0', it will work in any position.

In my case, I do not want the series name in the file name - I put each series into a separate folder. So adding the series_index after any other text is not as neat. Interestingly though, while not as neat as I would like, it might get around my current problem, so I appreciate the hint.

Last edited by kgn; 07-23-2010 at 12:13 AM.
kgn is offline   Reply With Quote
Old 07-23-2010, 09:17 AM   #9
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Sorry if we were at cross purposes

I'll admit that including the series_name does make the filenames rather long, however, the versatility of the PocketBook firmware does mean you could tinker with the PB Theme to reduce font-size or change layout of book list views to improve their appearance. There's "hours of fun" to be had there!
jackie_w is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Feature Request? Sydney's Mom Calibre 6 07-22-2010 12:32 PM
Feature request AprilHare EPUBReader 2 11-22-2009 05:15 AM
Feature request mrmikel EPUBReader 4 11-20-2009 11:49 AM
Feature request AprilHare Calibre 4 04-22-2009 04:23 AM
Feature request AprilHare Calibre 0 11-22-2008 05:42 AM


All times are GMT -4. The time now is 06:50 PM.


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