Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 05-29-2011, 02:26 PM   #1
captpete
Member
captpete began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Aug 2010
Location: Florida
Device: Samsung Galaxy Tab A 8" (2017)
Exclamation Send To ... directory creating-nameing problem

I have Calibre 0.8.3 and the Ectaco JetBook 5" eReader. I have created a custom column for Genre as outlined in the Tutorial. Genre is in hierarcical format, i.e. "Genre.sub-genre" as per the Tutorial. The JetBook recognizes FB2 books as "author lastname, firstname_title". My current Save templete looks like this: "{#genre:subitems(0,1)||/}/{series}/{author_sort}_{series}{series_index:>3s} {title}". So Far - So Good, But there are 2 problems:

first, Calibre saves books to the Genre directory, creates the sub-grenre directory and then saves the book in a series directory in the Genre directory - not in the sub-genre directory;

second, if there is no series the filename saved has a space in front of the title which I don't want.

Any solution to this?
captpete is offline   Reply With Quote
Old 05-29-2011, 04:32 PM   #2
Manichean
Wizard
Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Manichean's Avatar
 
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
Quote:
Originally Posted by captpete View Post
second, if there is no series the filename saved has a space in front of the title which I don't want.
Looking at your template, I see a space between your series info and the title. That space will, of course, still be there when the series info is not set. Try using
Code:
{#genre:subitems(0,1)||/}/{series}/{author_sort}_{series}{series_index:>3s|| }{title}
Manichean is offline   Reply With Quote
Advert
Old 05-29-2011, 05:20 PM   #3
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: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by captpete View Post
first, Calibre saves books to the Genre directory, creates the sub-grenre directory and then saves the book in a series directory in the Genre directory - not in the sub-genre directory;
Nice to see someone trying to use subitems. I wasn't sure that anyone cared.

Your template says to create a directory named by the genre, then create a directory named by the series inside that directory. Your text implies that you want a directory named by genre, then another directory named by subgenre, then the series.

To do what I think your text says (combined with Manichean's suggestion), try
Code:
{#genre:subitems(0,1)||/}{#genre:subitems(1,2)||/}{series}/{author_sort}_{series}{series_index:>3s|| }{title}
This template should create a directory for the top-level genre if it exists, create a second level for a second-level genre if it exists, then the series if it exists, and so on.

FYI: the template editor in the next release shows a preview of the value produced by the template for the current book (the book selected before editing the template).

One way to play with templates with far less pain is to create a 'play' composite column (column made from other columns), then use F2 to edit the template for this column. No send-to-device or restarts are required, and you see the results immediately on the library view. F2 opens the template editor. Once you are happy, delete the column or (what I do) hide it.
chaley is offline   Reply With Quote
Old 05-29-2011, 05:26 PM   #4
captpete
Member
captpete began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Aug 2010
Location: Florida
Device: Samsung Galaxy Tab A 8" (2017)
Thanks Guys, it works great now - appreciate the quick response.
captpete is offline   Reply With Quote
Reply

Tags
directory creation, fb2, genre, send to


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with creating the development environment rozen Calibre 6 05-29-2011 11:38 PM
Problem - Sony 650 send to device junkml Calibre 4 01-18-2011 04:55 PM
send book to device - ignores directory jom Calibre 1 11-27-2010 05:56 PM
Problem with 'Send to Device' Rolando Calibre 9 10-28-2010 01:14 PM
Problem in V6 with send to device - Kindle2 tbergman Calibre 1 07-25-2009 04:29 PM


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


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