diff --git a/src/calibre/gui2/preferences/search.ui b/src/calibre/gui2/preferences/search.ui index 7e41b9e40f..8e8ea35199 100644 --- a/src/calibre/gui2/preferences/search.ui +++ b/src/calibre/gui2/preferences/search.ui @@ -7,7 +7,7 @@ 0 0 670 - 556 + 663 @@ -21,26 +21,21 @@ - + + + + Unaccented characters match accented characters + + + + &Highlight search results instead of restricting the book list to the results - - - - Base characters match accented characters - - - Characters typed in the search box will match their -accented versions, using language rules. For example, in -English, searching for e will match é and è. - - - - + What to search by default @@ -89,17 +84,7 @@ English, searching for e will match é and è. - - - - Clear search histories from all over calibre. Including the book list, e-book viewer, fetch news dialog, etc. - - - Clear search &histories - - - - + Grouped Search Terms @@ -119,12 +104,6 @@ English, searching for e will match é and è. - - true - - - 10 - Contains the names of the currently-defined group search terms. Create a new name by entering it into the empty box, then @@ -132,6 +111,12 @@ pressing Save. Rename a search term by selecting it then changing the name and pressing Save. Change the value of a search term by changing the value box then pressing Save. + + true + + + 10 + @@ -213,7 +198,17 @@ to be shown as user categories - + + + + Clear search histories from all over calibre. Including the book list, e-book viewer, fetch news dialog, etc. + + + Clear search &histories + + + + What to search when searching similar books @@ -223,7 +218,7 @@ to be shown as user categories <p>When you search for similar books by right clicking the - book and selecting "Similar books...", + book and selecting "Similar books...", calibre constructs a search using the column lookup names specified below. By changing the lookup name to a grouped search term you can search multiple columns at once.</p> @@ -251,8 +246,7 @@ to be shown as user categories - - + @@ -272,8 +266,7 @@ to be shown as user categories - - + @@ -283,12 +276,10 @@ to be shown as user categories - - + - - + @@ -298,12 +289,10 @@ to be shown as user categories - - + - - + diff --git a/src/calibre/library/caches.py b/src/calibre/library/caches.py index aa286f4735..d18a10dbfd 100644 --- a/src/calibre/library/caches.py +++ b/src/calibre/library/caches.py @@ -118,7 +118,9 @@ class MetadataBackup(Thread): # {{{ # }}} + ### Global utility function for get_match here and in gui2/library.py +# This is a global for performance pref_use_primary_find_in_search = False def set_use_primary_find_in_search(toWhat): diff --git a/src/calibre/utils/config_base.py b/src/calibre/utils/config_base.py index 7a4e15753e..a50d0fd153 100644 --- a/src/calibre/utils/config_base.py +++ b/src/calibre/utils/config_base.py @@ -424,8 +424,10 @@ def _prefs(): 'to limit search columns above.')) c.add_opt('use_primary_find_in_search', default=True, help=_('Characters typed in the search box will match their ' - 'accented versions, using language rules. For example, in ' - ' English, searching for e will match é and è.')) + 'accented versions, based on the language you have chosen ' + 'for the calibre interface. For example, in ' + u' English, searching for n will match ñ and n, but if ' + 'your language is Spanish it will only match n.')) c.add_opt('migrated', default=False, help='For Internal use. Don\'t modify.') return c