Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 09-28-2011, 03:17 AM   #1261
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Quote:
Originally Posted by Nyssa View Post
I may be missing something. It created all of the series collections but did not create any of the author collections that did not have series.
It should work. Custom column is certainly the way to go here.

In the plugin, only set your Custom Column to "Create", and set Author/Author Sort/Series to blank.

Create your custom column (probably comma separated like tags) using the template {series:'ifempty($, field('author'))'} which says if the series column is empty use the author column's data, otherwise use the data from the series column (or use 'author_sort' instead of 'author' to do last name first).

Look on the first post under Calibre tips: Custom Column for more variations.
meme is offline  
Old 09-28-2011, 03:21 AM   #1262
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Quote:
Originally Posted by inpariswithyou View Post
Luckily, I have three degrees, so I was able to wrap my head around the section. What I don't understand, though, is why the plug-in apparently disregards the Kindle sorting order... since my collections before the plug-in sorted exactly as intended, with those special characters marked as ignored. Is there no way around this?
Sorting isn't documented anywhere, so the only way to figure out how the Kindle is sorting was through trial and error. There are some characters that the Kindle will just sort however it wants to - it may sort them one way for a while, but then if something changes it may sort them differently. Its best to only use prefix characters that have a definite sort order so that you can control the sort order.
meme is offline  
Old 09-28-2011, 10:57 AM   #1263
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 6,180
Karma: 167189477
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle Paperwhite (2nd Gen)
Quote:
Originally Posted by meme View Post
It should work. Custom column is certainly the way to go here.

In the plugin, only set your Custom Column to "Create", and set Author/Author Sort/Series to blank.

Create your custom column (probably comma separated like tags) using the template {series:'ifempty($, field('author'))'} which says if the series column is empty use the author column's data, otherwise use the data from the series column (or use 'author_sort' instead of 'author' to do last name first).

Look on the first post under Calibre tips: Custom Column for more variations.
Thank you, Meme. I'll give it another go when I'm back on my feet.
Do I need to tell Calibre to delete the previous collections or just switch them to "blank"?
Nyssa is offline  
Old 09-28-2011, 11:56 AM   #1264
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Quote:
Originally Posted by Nyssa View Post
Thank you, Meme. I'll give it another go when I'm back on my feet.
Do I need to tell Calibre to delete the previous collections or just switch them to "blank"?
If you have preserve Kindle-only collections set to true, then you'll have to delete them first.
meme is offline  
Old 09-28-2011, 04:55 PM   #1265
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 6,180
Karma: 167189477
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle Paperwhite (2nd Gen)
Quote:
Originally Posted by meme View Post
If you have preserve Kindle-only collections set to true, then you'll have to delete them first.
Thank you again! That worked, but I have one more question, please: Is there any way, using the template ,to group the authors together and the series together, like we can using prefixes & suffixes the regular way?
Nyssa is offline  
Old 09-28-2011, 05:26 PM   #1266
Vaesse
Zealot
Vaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolate
 
Vaesse's Avatar
 
Posts: 107
Karma: 33020
Join Date: May 2011
Device: Kindle Paperwhite
Never mind, missed that it went to next page. There is probably a way to add the prefixes but it would be in the column not in the collections if you want different for series and authors. But that's beyond me (my brother helps with the template stuff).

Last edited by Vaesse; 09-28-2011 at 05:33 PM.
Vaesse is offline  
Old 09-28-2011, 05:39 PM   #1267
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 6,180
Karma: 167189477
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle Paperwhite (2nd Gen)
Quote:
Originally Posted by Vaesse View Post
Did you set Kindle collection plugin to use your new column instead if authors or series? Also, can you glance through some books in Calibre to see that the value you expect is in the custom column?
I'm sorry for being daft, but I don't understand the question.

The template is working, however, the authors and series are now mixed together:

The Adventures of Kid Combat
Alcott, Louisa May
Anne of Green Gables
Arenson, Daniel
Assiti Shards
Bandworld



Where as before (through the use of prefixes) I was able to keep all of the series together in alphabetical order and then have all of the authors together in alphabetical order.

The Adventures of Kid Combat
Anne of Green Gables
Assiti Shards
Bandworld


Alcott, Louisa May
Arenson, Daniel


I was wondering if I'd be able to add prefixes to the template allowing it to do the same thing.
Nyssa is offline  
Old 09-28-2011, 06:05 PM   #1268
Vaesse
Zealot
Vaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolate
 
Vaesse's Avatar
 
Posts: 107
Karma: 33020
Join Date: May 2011
Device: Kindle Paperwhite
It is I who was daft, which is why I edited my post. I missed the change of page. I believe you CAN add author and series prefixes, but in the custom column instead of in Kindle collections. The doing of that is beyond me, though. Tomorrow's my 10th anniversary, and so I'm having a tech free day, but if you get no answers before I get back I'll have my brother work on something for you. Just in case, what did you want for series and what for authors?
Vaesse is offline  
Old 09-28-2011, 06:36 PM   #1269
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 6,180
Karma: 167189477
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle Paperwhite (2nd Gen)
Quote:
Originally Posted by Vaesse View Post
It is I who was daft, which is why I edited my post. I missed the change of page. I believe you CAN add author and series prefixes, but in the custom column instead of in Kindle collections. The doing of that is beyond me, though. Tomorrow's my 10th anniversary, and so I'm having a tech free day, but if you get no answers before I get back I'll have my brother work on something for you. Just in case, what did you want for series and what for authors?
First off: A very Happy Anniversary to you and yours! Wishing you many more.

Secondly: Thank you so much for your offer. How incredibly kind of you!

  • "[" & "]" (prefix and suffix) for series
  • ">{" & "}" (prefix & sufix) for authors

Thank you (and your brother) again.

Have a fabulous Anniversary!
Nyssa is offline  
Old 09-29-2011, 04:48 AM   #1270
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Quote:
Originally Posted by Nyssa View Post
  • "[" & "]" (prefix and suffix) for series
  • ">{" & "}" (prefix & sufix) for authors
Well, if you are willing to use "()" instead of "{}" then you can use the template:

{series:'test($, strcat("[",field('series'),"]"), strcat(">(",field('author'),")"))'}

or if you want author lastname, firstname:

{series:'test($, strcat("[",field('series'),"]"), strcat(">(",field('author_sort'),")"))'}

If you want to use {} then you can use:

program: test(field('series'), strcat("[",field('series'),"]"), strcat(">{",field('author_sort'),"}"))


and if you want you can try listing author followed by series if there is one:

{series:'test($, strcat("[",field('author_sort')," - ",field('series'),"]"), strcat("[",field('author_sort'),"]"))'}

or if you want to use the special characters {} and your original format (although this defeats the purpose of grouping author's books together):

program: test(field('series'), strcat("[",field('author_sort')," - ",field('series'),"]"), strcat(">{",field('author_sort'),"}"))

Last edited by meme; 09-29-2011 at 09:16 AM. Reason: Added missing { to first two entries
meme is offline  
Old 09-29-2011, 08:17 AM   #1271
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 6,180
Karma: 167189477
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle Paperwhite (2nd Gen)
Quote:
Originally Posted by meme View Post
Well, if you are willing to use "()" instead of "{}" then you can use the template:

series:'test($, strcat("[",field('series'),"]"), strcat(">(",field('author'),")"))'}

or if you want author lastname, firstname:

series:'test($, strcat("[",field('series'),"]"), strcat(">(",field('author_sort'),")"))'}

If you want to use {} then you can use:

program: test(field('series'), strcat("[",field('series'),"]"), strcat(">{",field('author_sort'),"}"))


and if you want you can try listing author followed by series if there is one:

{series:'test($, strcat("[",field('author_sort')," - ",field('series'),"]"), strcat("[",field('author_sort'),"]"))'}

or if you want to use the special characters {} and your original format (although this defeats the purpose of grouping author's books together):

program: test(field('series'), strcat("[",field('author_sort')," - ",field('series'),"]"), strcat(">{",field('author_sort'),"}"))
You are brilliant! Thank you! I like the Author - Series option.

Two things I've noticed, however, for later consideration:

1. It doesn't seem to like multiple authors. I have a handful of collaborations, and they are skipped when creating collections:
(i.e. - There is a series by Eric Flint called Assiti Shards. The 2nd book was co authored bu David Weber, but the book was left out of the collection until I removed Weber's name).

2. I can not find a way to get certain series or authors ignored while using the template.

Despite those annoyances I do like that option.

Thank you so much for your help!

Oh, I was originally going to try the first option:

series:'test($, strcat("[",field('series'),"]"), strcat(">(",field('author'),")"))'}
and noticed that you have to add the "{" before series: to get it to work.

Thank you, again.
Nyssa is offline  
Old 09-29-2011, 11:18 AM   #1272
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Quote:
Originally Posted by Nyssa View Post
Two things I've noticed, however, for later consideration:

1. It doesn't seem to like multiple authors. I have a handful of collaborations, and they are skipped when creating collections:
(i.e. - There is a series by Eric Flint called Assiti Shards. The 2nd book was co authored bu David Weber, but the book was left out of the collection until I removed Weber's name)
It has no way of knowing that these 2 authors are really the same for your collection name.

If you want full control over your author and series names for your collection names without modifying the original author/series names then you can do this:
  1. Create a custom column, type text, called "Short Author Sort" with lookup name "short_author_sort"
  2. Add short/modified author names, to this column only if you want it to be different than the Author Sort column (e.g. make it 'Flint, Eric and friends' for all the books in a series he sometimes works with other authors)
  3. Create a custom column, type text, called "Short Series" with lookup name "short_series"
  4. Add short/modified series names to this column only if you want it to be different than the Series column (e.g. Poirot instead of Hercule Poirot]
  5. Create a custom column, type from other columns, called "Collections" with lookup name collections
  6. Enter this as the template - copy all 4 lines and paste into the template field:

    program:
    author = test(field('#short_author_sort'), field('#short_author_sort'), field('author_sort'));
    series = test(field('#short_series'), field('#short_series'), field('series'));
    strcat("[", test(series, strcat(author, " -- ", series), author), "]");

  7. In the Kindle Collections plugin Customize screen set 'Create' for the custom field 'Collections'

Quote:
2. I can not find a way to get certain series or authors ignored while using the template.
This should be a simple matter of putting ".*SERIESNAME.*" without the quotes into the Ignore field for your custom column.

Quote:
Oh, I was originally going to try the first option:

series:'test($, strcat("[",field('series'),"]"), strcat(">(",field('author'),")"))'}
and noticed that you have to add the "{" before series: to get it to work.
Thanks - I've updated my post.

Quote:
Thank you, again.
You're welcome.
meme is offline  
Old 09-29-2011, 12:17 PM   #1273
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 6,180
Karma: 167189477
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle Paperwhite (2nd Gen)
Wow! The author sort situation is quite complicated. Thank you so much for figuring that out.

As for the ignore list, It did not dawn on me to use the asterisks!
Nyssa is offline  
Old 09-29-2011, 12:25 PM   #1274
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Quote:
Originally Posted by Nyssa View Post
Wow! The author sort situation is quite complicated.
Well, it depends on what you want - the more restrictions the more complicated the workaround is. If you just want to update the Author Sort field so there is only ever one author then you don't need a separate short author sort field. Same with series. But some people might want the main author/series fields to contain the 'official' information while still being able to tweak it to how they want it to show up on the Kindle as collection names. (A similar extra column approach can be used to change the author/series information in a title when using a plugboard to set the title of a book on the device).
meme is offline  
Old 09-29-2011, 12:59 PM   #1275
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 6,180
Karma: 167189477
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle Paperwhite (2nd Gen)
Understandable.

I will have to think on whether or not I want to go that far. I was okay with removing Weber's name on the one, but I'm not sure what I want to do with the others.

Now I'm going to go find those tweaks I used months ago to add the series initials to the front of the books. With this template I don't need those anymore.

Thank you for all of your help the last two days. Its made my home page look nicer, less crowded, and more organized.
Nyssa is offline  
Closed Thread


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Kindle Collections (Update) NiLuJe Plugins 475 05-23-2025 08:22 AM
Kindle Collections plugin JosephWebber Plugins 1 08-21-2017 11:44 AM
[GUI Plugin] WebOS Kindle-Import CranstD Plugins 0 01-24-2012 03:36 PM
Finding and using Kindle Collections Plugin djchapple Plugins 2 08-03-2011 10:06 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 12:47 PM.


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