View Single Post
Old 04-08-2011, 09:04 PM   #8
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,230
Karma: 1345754
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
v1.3 Released

Changes in this release
  • Rewrite config UI to support any number of regex file patterns, rather than previous limitation of just four.
  • Optional pairing of "swap author names" setting with each regex pattern

The second feature above may take some explaining. The "Swap author names" checkbox is traditionally set completely independently of your regular expression for the filename matching. However now that there is no limit on the number of items, users might find it more convenient to actually change both their regex and this setting in one click.

Say for instance I am importing batches of books which have variations in filenames like this:
Code:
Title - FN LN
Title - LN, FN
FN LN - Title
LN, FN - Title
To import those names I will have two unique regular expressions - one to handle "Title - Author" and the other to handle "Author - Title" (I'm avoiding mentioning series, it is irrelevant to this discussion as the same applies).

The default behaviour of the plugin is the same as it always was of treating the author first name and last name setting as independent of the file pattern. So your menu items will look like this:
Code:
Title - Author    Swap Names: Unspecified
Author - Title    Swap Names: Unspecified
You will need to take responsibility for changing both the filename pattern selected and the "swap author names" setting each time you import books with a different combination.

However you now have the option of specifying the swap author name setting for your menu items. So I could create four menu items that look something like this:
Code:
Title - FN LN     Swap Names: False
Title - LN, FN    Swap Names: True
FN LN - Title     Swap Names: False
LN, FN - Title    Swap Names: True
Entirely optional feature, and if your names are always FN LN or vice versa then not likely to be of interest.
kiwidude is offline   Reply With Quote