Quote:
Originally Posted by Starson17
Your ln, fn tweak is the only "tweak" I've actually heard about. Is the "tweak" option flexible enough to add new buttons the way he seems to want?
|
Yes, its a simple matter of programming.
Kovid added 'tweaks' to introduce options that he didn't think needed to be settable in the GUI. There are currently two of them, stored in the personalization file tweaks.py (for me on windows 7 in C:\Users\charles\AppData\Roaming\calibre). The tweaks are:
# The algorithm used to assign a new book in an existing series a series number.
# Possible values are:
# next - Next available number
# const - Assign the number 1 always
series_index_auto_increment = 'next'
# The algorithm used to copy author to author_sort
# Possible values are:
# invert: use "fn ln" -> "ln, fn" (the original algorithm)
# copy : copy author to author_sort without modification
# comma : use 'copy' if there is a ',' in the name, otherwise use 'invert'
author_sort_copy_method = 'comma'
The tweaks could help control generation of alternate GUIs, but I think that such a use wouldn't be wise. The code would be full of if/then choosing which widgets to create, making maintenance a nightmare.
Quote:
I use your exact search option a lot (I didn't know you wrote that one.) Did you also write the regex search option?
|
Thanks. And yes, the regexp is mine; it seemed like a natural extension and was easy to add. I am glad that someone is using it -- must mean that it works.