![]() |
#1 |
Member
![]() Posts: 11
Karma: 10
Join Date: Nov 2012
Device: iPad
|
Troubleshooting a Save Template.
I have two questions about a save template I am using.
The template is: {#read}/{author_sort:re(&.*,)}/{series}/{series} {series_index:0>3s| | - }{title}/{title} and it seems to be working fairly well. But when author has initials for a first name, e.g., J.K. Rowling then the path name becomes Rowling, J.K_ as opposed to Rowling, J.K. Is there anyway to fix that? Question the second... Am I going to run into major issues with having periods and commas in my path? I am mainly using this on PC and an iPad. If so, is there a way to make it "LAST First" instead of "Last, First" and remove the periods but only when I save to disk? Thanks so much! Last edited by Illyrie; 11-24-2012 at 01:36 AM. |
![]() |
![]() |
![]() |
#2 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,339
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
Code:
{#read}/{author_sort:re(\,|&.*,)}/{series}/{series} {series_index:0>3s| | - }{title}/{title} |
||
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 11
Karma: 10
Join Date: Nov 2012
Device: iPad
|
Wonderful. Thanks so much.
![]() I did some testing with my devices and they really don't seem to mind the comma, so I've decided to leave it in but strip the periods in the initials. The final (for the moment) template came out to be: Code:
{#read}/{author_sort:re(\.|&.*,)}/{series:||/}{series|| }{series_index:0>3s| | - }{title}/{title} Code:
{series|| }{series_index:0>3s| | - }{title}/ For example, I have quite a few books that are parts of series that I only have one book in. I don't need the extra level of "/Series 01- Title/" I don't know python, but I assume we could do something like a loop through a {series} counting the {series_index} and if the count is greater than 1, include "{series|| }{series_index:0>3s| | - }{title}/" else leave it blank? |
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: May 2005
Device: Pocket Loox 710
|
For example, I have quite a few books that are parts of series that I only have one book in. I don't need the extra level of "/Series 01- Title/"
Have you found out how to make this? |
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
I do not think that this will be at all easy. As far as I know the Save template only has access to information about the current book.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,913
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:
![]() Only 1 is a common occurrence in my Library. Sometimes it is the first book of a series that did not fly ![]() Sometimes it is the last book that is the only one in e-edition, but I usually have 'Empty books' for the ones in my paper library. Sometimes I did not flag a book belonging to a series because IT WAS NOT LISTED at the time of purchase. (just happened to me with: Carousel Tides) |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Save template problem | antoon | Library Management | 12 | 08-17-2012 12:47 PM |
Need help on a Save to Disk template | fidvo | Library Management | 2 | 08-12-2012 03:34 PM |
[Old Thread] Save Template not working | TGinAZ | Calibre | 7 | 01-18-2012 01:03 AM |
A little help with a save template...? | Belfaborac | Library Management | 2 | 02-04-2011 09:47 PM |
save to disk template | speakingtohe | Calibre | 9 | 05-29-2010 06:02 AM |